CS Flashcards

(18 cards)

1
Q

What does CPU stand for?

A

Central Processing Unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of the CPU?

A

The CPU processes data and instructions by constantly repeating the fetch-decode-execute cycle.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 4 components of the CPU?

A

Cache, Registers, ALU, CU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe the purpose of the CU.

A

To decode instructions for the CPU to process in the DFE cycle and control data flow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe the purpose of the ALU.

A

To perform logical and arithmetic operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe the purpose of the registers.

A

To store data temporally for one instruction or address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe the purpose of the cache for the CPU.

A

To store frequently accessed data for the CPU temporarily.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What do the different levels in the CPU cache mean?

A

The lower the number the faster the data can be accessed but it holds less storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe the key feature of the Von Neumann Architecture.

A

Stores both program data and instructions in the same RAM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is data transferred between hardware and memory?

A

Buses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the PC register do?

A

A register that tracks the RAM address of the next instruction to be fetched.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the MAR register do?

A

A register that tracks the RAM address of the instruction that is to be fetched.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the MDR register do?

A

The MDR stores the instruction that has been transferred from RAM to the CPU.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the CIR register do?

A

A register that stores the instruction that has been fetched from RAM, and is about to be decoded or executed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the ACC register do?

A

Stores the result of an arithmetic or logical calculation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the each steps of the DFE cycle. [7]

A

The PC holds the instruction of the next address and copied to the MAR register then the PC register is increased by 1 to go to the next memory address after the CPU calculates the current one then the CPU checks the address in RAM which matches the address in MAR then the instruction is transferred to the MDR then the contents of the MDR is copied to the CIR register then the instruction in the CIR is decoded and executed the result is then stored in the accumulator and then the cycle repeats.

17
Q

What is cache memory?

A

Cache memory is temporary storage for frequently accessed data by the CPU.