1.1.1 Structure & Function of the Processor Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are all the registers in a CPU?

A
Program Counter (PC)
Accumulator (ACC)
Memory Address Register (MAR)
Memory Data Register (MDR)
Current Instruction Register (CIR)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the PC do?

A

Holds the address of the next instruction to be executed.

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

What does the ACC do?

A

Stores results of calculations.

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

What does the MAR do?

A

Holds the address of the location that is to be read from or written to.

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

What does the MDR do?

A

Temporarily stores data that has been read from or needs to be written.

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

What does the CIR do?

A

Holds the current instruction being executed, divided into opcode and operand.

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

What does the Control Unit (CU) do?

A

Directs the operations of the CPU by sending control signals to areas of the CPU to coordinate the operations.

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

What does the Arithmetic & Logic Unit (ALU) do?

A

Arithmetic operations (e.g. +, -, /, *) and logical operations (e.g. AND, OR, NOT, XOR)

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

What does the data bus do?

A

Transports data and instructions between components. Bi-directional.

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

What does the address bus do?

A

Transmits the memory addresses that specify where data is to be sent or retrieved from. Uni-directional.

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

What does the control bus do?

A

Transmits control signals between internal and external components. Bi-directional.

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

What does the opcode and operand contain?

A

Opcode => The type of instruction to be executed

Operand => The data or address of the data upon which the operation is to be performed.

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

What is pipelining and how does it work?

A

Increases the efficiency of the CPU by reducing the amount of time it’s kept idle.

It does this by completing the FDE cycles of 3 separate instructions simultaneously.

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

What happens in the FDE cycle?

A

Fetch => The address of the next instruction is copied from the PC to the MAR. The instruction held at this address is copied from the MAR to the MDR via the data bus. Simultaneously, the PC is incremented by 1. The value held in the MDR is copied to the CIR.

Decode => The contents of the CIR are split into opcode and operand.

Execute => The instruction is executed and the ALU performs any necessary calculations. The result is stored in the ACC.

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

Why does doubling the amount of cores not necessarily double the speed of the CPU?

A

Not all programs are designed to make use of multiple cores efficiently.

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

What are the main features of Von Neumann architecture? What are its advantages?

A

Shared memory
Shared bus for data and instructions
Single CU and ALU
Special registers within the CPU.

Advantages => Processors are cheaper to develop as the CU is easier to design, programs can be optimised in size.

17
Q

What are the main features of Harvard architecture? What are its advantages?

A

Physically separate memories for data and instructions.
Used for embedded systems.

Advantages => Quicker execution as data & instructions are fetched in parallel, more space efficient as memories can be different sizes.

18
Q

What are the main features of Contemporary architecture? What are its advantages.

A

Combines Von Neumann & Harvard. Von Neumann used for main memory, Harvard used for the cache.

Advantages => Uses cache, has multiple cores, uses pipelining, 2 separate areas for memory which increases performance.