Architecture Of The CPU Flashcards

1
Q

What are the common components of the CPU

A

ALU (arithmetic logic unit)
CU (control unit)
Cache
Registers

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

Basic registers in the von neumann architecture

A

MAR (memory adress register)
MDR (memory data register)
Program counter
Accumulator

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

What is the basic purpose of the CPU

A

To process instructions (when you run a program, it is the CPU that does that)

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

What is the von neumann architechture?

A

Storing the program instructions as well as data in the memory.

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

What does it mean that the program instructions and the data are stored in the same memory?

A

The CPU accesses the same instructions and data from the same RAM

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

What is a register in the CPU?

A

A very fast memory location

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

What is the cache?

A

The cache is a temporary data location that is faster to access than RAM but slower than the registers

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

What is the Program counter?

A

The PC holds the adress of the next instruction to be executed.

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

What does the Memory Adress Register (MAR) do?

A

Holds the address of the current instruction that is to be fetched from memory, or the address in memory to which data is to be transferred

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

What does the memory data register (MDR) do?

A

Stores the data to be sent/received from memory.

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

What does the accumulator do?

A

Temporarily stores the result of arithmatic and logic calculations

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

What is the function of the Control Unit?

A

The CU coordinates and controls all of the activities taking place within the CPU. It, Decodes instructions and executes them, receives instructions from the system clock, directs and controls the timings of other parts of the CPU

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

What is the function of the Arithmetic Logic Unit (ALU)?

A

The ALU is where the actual arithmetic operations are done. It also carries out basic logical operations such as AND, OR and NOT.

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

What does the FETCH part of the cycle do?

A

Causes the instruction and any data involved to be fetched from memory.

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

What does the DECODE part of the cycle do?

A

Decodes the instruction

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

What does the EXECUTE part of the cycle do?

A

Executes the instruction.

17
Q

How do the MAR, MDR and PC work together in the FETCH stage of the cycle?

A

The adress of the instruction to be executed is copied from the program counter to the memory adress register. The instruction at that adress is fetched from memory and copied to the memory data register.

18
Q

How do the CU, MAR and MDR work together in the DECODE part of the cycle?

A

The control unit decodes the instruction and decides if the data needs to be fetched. If so, the MAR stores the adress of the data to be used in the instruction. The data is then fetched and copied to the MDR

19
Q

How do the MAR and MDR work together as a whole?

A

The MAR knows where to look for data in RAM, the MDR keeps hold of that data until its ready to be used by the CU.