1.1 Structure/Function Of The Processor Flashcards

1
Q

What are the components of the CPU?

A

arithmetic logic unit
control unit
registers
cache memory

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

What is the purpose of the ALU?

A

Performs all of the arithmetic calculations and logical operations of the CPU. This includes +- AND/OR/NOT etc.

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

What is the purpose of the CU?

A
  • Controls and coordinates the activities of the CPU
  • Manages the flow of data between the CPU and memory
  • Accepts and decodes instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are registers?

A

Small memory cells that operate at very high speeds and temporarily store data.

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

What are the special purpose registers in the CPU?

A

Program Counter
Memory Address Register
Memory Data Register
Current Instruction Register
Accumulator

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

What does the PC do?

A

Stores the address of the next instruction to be executed, automatically increments by 1 unless told otherwise.

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

What does the MAR do?

A

Stores the address of the location in memory that is to be read from/written to.

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

What does the MDR do?

A

Stores data that has been read from or is going to be written to main memory.

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

What does the current instruction register do?

A

Stores 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
10
Q

What does the accumulator do?

A

Stores the result of the ALU’s calculations.

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

What is a bus?

A

A set of parallel wires that transfers data between CPU components as well as to/from external components such as memory.

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

What are the 3 buses in the CPU?

A

data bus
address bus
control bus

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

What does the data bus do?

A

Transports data/instructions between components bi-directionally.

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

What does the address bus do?

A

Transmits memory addresses specifying where data is to be read from or written to.

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

What does the control bus do?

A

Transmits control signals between components, this includes:
- bus request
- bus grant
- memory write
- memory read
- interrupt request
- clock signals to synchronise operations

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

What is the operand?

A

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

17
Q

What is the opcode?

A

The type of instruction to be executed.

18
Q

What is pipelining?

A

Fetching one instruction, while decoding another, and executing another in order to carry out 3 fde cycles simultaneously and stop CPU components from being idle.

19
Q

When can pipelining not be used?

A

When there is a branch instruction, the pipeline has to be flushed as the next instruction to fetch is not the next instruction in memory.

20
Q

What happens in the fetch phase?

A
  • PC address copied to MAR
  • PC contents increment by 1 unless instructed otherwise
  • data in memory at MAR address is copied to the MDR
  • contents of the MDR is copied to the CIR
21
Q

What happens in the decode phase?

A

The control unit splits the data in the CIR into opcode/operand.

22
Q

What 3 factors affect CPU performance?

A

clock speed
NO. cores
amount/type of cache memory

23
Q

How does clock speed impact CPU performance?

A

The system clock generates clock signals to synchronise the execution of instructions. The higher the clock speed, the more fde cycles that can be carried out per second.

24
Q

How does the number of cores impact CPU performance?

A

The CPU can carry out multiple fde cycles simultaneously if it contains multiple cores. However, most programs can’t make efficient use of all CPU cores so double the cores is not typically double the processing speed.

25
Q

What is a core?

A

An independent processing unit within the CPU that can carry out its own fde cycle.

26
Q

How does cache memory improve CPU performance?

A

Cache memory stores recently/commonly used instructions so that they can be fetched quicker if needed again. This speeds up the processing of instructions as cache memory is easier for the CPU to access than RAM but cache is much lower capacity.

27
Q

What are the types of cache from quickest to slowest?

A

L1 - quickest but smallest
L2
L3 - slowest but largest

28
Q

What are 2 types of computer architecture?

A

von neumann
harvard

29
Q

What are the features of von neumann architecture?

A
  • CPU contains registers, CU, ALU
  • A shared memory and data bus is used for both data/instructions
  • instructions are executed sequentially
30
Q

What are the features of harvard architecture?

A
  • separate memories used for data/instructions
  • instructions may be stored in ROM
  • separate buses used for transmitting data/instructions
31
Q

What are the advantages of von neumann architecture?

A
  • cheaper to develop as the control unit is easier to design
  • programs can be optimised in size
  • more simple/flexible
32
Q

What are the advantages of harvard architecture?

A
  • data and instructions can be fetched in parallel
  • memories can be different sizes to make more efficient use of space
33
Q

Which architecture do contemporary processors use?

A

A combination of both. Data and instructions are both stored in main memory but there is separate cache for data/instructions.