Structure and Function of Processor Flashcards

1
Q

What are the 4 functions of the Control Unit? (CU)

A

Coordinates all activities of the CPU.

Directs flow of data between CPU and other devices.

Decodes instructions

Sends read/write requests to main memory on the Control bus

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

What is the function of the PC?

A

Holds the address of the next instruction to be executed.

Can be changed to address in CIR if operation is a Jump.

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

What are the 2 functions of the Memory Address Register? (MAR)

A

Holds the address of the location in memory to be read from/written to.

Sends these addresses to RAM down the Address bus

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

What is the function of the Memory Data Register? (MDR)

A

Temporarily stores data which is read from/to be written

Sends/receives data down the Data Bus

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

What are the 3 functions of the Current Instruction Register? (CIR)

A

Holds the current instruction being executed

If contents of MDR are an instruction, it is copied to CIR

Contains the opcode and operand of the current instruction.

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

What are the 2 functions of the Arithmetic Logic Unit? (ALU)

A

Performs arithmetic and logical operations on data

Arithmetic -> +, -, *, /
Logical -> <, >, !=, ==
Boolean -> AND, OR, NOT, XOR

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

What is the 4 functions of the Accumulator? (ACC)

A

Holds all input/output

Temporarily stores calculations from ALU for quick retrieval.

Stores data from MDR and RAM

Checked for conditional branching (e.g. BRZ)

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

What is a register?

A

A small piece of memory used for storing data within the processor

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

What are buses?

A

Sets of wires that connect two components together so that they can communicate

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

What is the function of the Address Bus?

A

Carries memory addresses that identify where data is being read from/written to

Uni-Directional (1 way)

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

What is the function of the Data Bus?

A

Carries the binary 1s and 0s that make up the actual information being transmitted around the CPU

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

What is the function of the Control Bus?

A

Carries commands and control signals to and from every other component in the CPU.

e.g. Memory read or memory write

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

Explain the FETCH process of the FDE cycle

A

Address stored in PC is copied to MAR.

PC increments by 1.

That address is then sent along the address bus to RAM, where it waits for a signal form the control bus.

Then CU sends a READ signal along the control bus to RAM.

Now that RAM knows the contents need to be READ, it sends the data down the data bus to the MDR.

Data in MDR copied over to CIR

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

Explain the DECODE process of the FDE cycle.

A

Instruction in the CIR is decoded into Opcode and Operand.

Opcode: What to do
Operand: What/Where to do it to

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

Explain the EXECUTE process of the FDE cycle.

A

The Opcode and Operand are sent from the CIR to the ALU where the instruction is carried out.

Results stored in ALU

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

What are 3 factors affecting the performance of the CPU?

A

Clock Speed
Number of Cores
Cache

17
Q

What are the 3 buses in the CPU collectively known as?

A

The System Bus

18
Q

What is the function of the System Clock?

A

Synchronises the operation of the Processor.

19
Q

What is Clock Speed?

A

The max number of FDE cycles per second.
Usually measured in GHz

20
Q

What is a Core?

A

A separate processor that is able to run its own FDE Cycle

21
Q

Why does Number of Cores affect CPU performance?

A

A CPU with more cores can complete more FDE cycles at any given time.

In theory, a computer with dual cores can complete tasks 2x as fast a single core computer.

22
Q

What is the downside of Number of Cores?

A

Not all programs are able to utilise multiple cores efficiently as they have not designed to do so

23
Q

What is Cache?

A

Fast, small capacity set of memory that sits close to the processor

Stores the most frequently used instructions and data.

L1: Part of core circuitry - smallest and fastest
L2: Shared by cores
L3: On motherboard
L4: Near/on the processor - largest and slowest

24
Q

What is Pipelining?

A

Allows concurrent processing of multiple instructions!!!

Allows one instruction to be fetched as the previous one is being decoded, and the one before that being executed.

Meaning more instructions can be carried out in a set amount of time.

25
Q

What are the features of Von Neumann Architecture?

A

Uses the same memory for data and instructions
Single set of buses
Same bus for data and instructions

Single Control Unit
Single ALU

Follows FDE

26
Q

What are the features of Harvard Architecture

A

Keeps instruction and data in separate memories
Each memory can be a different size
Separate buses for each memory

Instructions and data can be fetched at the same time!

Used extensively in embedded systems

27
Q

What are the features of Contemporary Processors?

A

Use a combination of Von Neumann and Harvard

Von tends to be used with RAM
Harvard tends to be used with Cache