1.1.1 Structure and function of the processor Flashcards

(a) The Arithmetic and Logic Unit; ALU, Control Unit and Registers (Program Counter; PC, Accumulator; ACC, Memory Address Register; MAR, Memory Data Register; MDR, Current Instruction Register; CIR). Buses: data, address and control: how this relates to assembly language programs. (b) The Fetch-Decode-Execute Cycle; including its effects on registers. (c) The factors affecting the performance of the CPU: clock speed, number of cores, cache. (d) The use of pipelining in a processor to improve e

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

What components are within the CPU?

A

Control unit
Buses
Arithmetic/Logic unit
Dedicated registers

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

What is the function of the control unit?

A

To control and coordinate the activities of the CPU.

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

What is a bus?

A

A bus is a set parallel wires connecting two or more components.

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

What does the address bus do?

A

Sends information of where the data needs to go by sending the address to a memory. and is a signal direction bus from the CPU to the RAM.

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

What does the data bus do?

A

Sends data to the memory or receives data from the memory and is a bi directional bus.

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

What does the control bus do?

A

To transmit command, timing and specific status information between system components.

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

What is the definition of 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
8
Q

What are the five registers?

A

PC (Program counter), ACC (Accumulator), MAR (Memory address register), MDR (Memory data register), CIR (Current instruction register).

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

What is the function of a program counter?

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

What does the CIR do?

A

Holds the current instruction to be executed.

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

What does the MAR do?

A

Holds the address of the memory location where data needs to be fetched or written to.

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

What does the MDR do?

A

Used to temporarily hold the data read or written from memory and is also known as the memory buffer regisiter.

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

What does the ACC do?

A

Holds the results of ALU operations.

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

Explain the fetch phase.

A

The address of the next instruction is copied from the PC to the MAR, the MAR is then copied to the MDR and at the same time the PC is incremented. the contents of the MDR is copied to the CIR.

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

Explain the decode phase.

A

The instruction in the CIR is decoded and split into opcode and operand.

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

Explain the execute phase.

A

The appropriate instruction (opcode) is carried out on the operand.

17
Q

What are the three factors effecting CPU performance?

A

Clock speed
The number of cores
The amount and type of cache memory.

18
Q

How does the clock speed effect CPU performance?

A

Clock speed refers to clock cycles per second which is measured in Gigahertz which is a billion cycles per second. all processor activities begin on a clock pulse so the faster the speed the faster activities can be executed.

19
Q

How does the number of cores effect CPU performance?

A

Each core theoretically is able to process a different instruction at the same time with its own fetch-decode-execute cycle. so two cores in theory can make the processor twice as fast.

20
Q

How does amount and type of cache memory effect CPU performance?

A

When a instruction is fetched from main memory it is copied into the cache so if its needed soon after the fetch time is dramatically improved, therefore the faster the cache is and the bigger it is the more instructions it can store in order to speed up fetch times.

21
Q

How many levels of cache are there?

A

Three

22
Q

What is level 1 cache

A

Extremely fast with a small capacity between 2-64kb

23
Q

What is level 2 cache

A

Fairly fast with a medium capacity of 256kb - 2MB

24
Q

What is level 3 cache

A

Slower and bigger than the ones below.

25
Q

Describe pipelining.

A

Whilst an instruction is being executed the next can be decoded and the subsequent one fetched.

26
Q

What is are two features unique to Von Neumann architecture?

A

Data and instructions stored in the same format.

The same bus for instructions and data to connect the CPU to the Memory and Peripherals.

27
Q

What are two features unique to Harvard architecture?:

A

Data and instructions stored in different formats.

Separate buses for instructions and data to connect the CPU to the Memory and Peripherals.