1.1.1 Structure and function of the processor Flashcards Preview

A-Level OCR Computer Science > 1.1.1 Structure and function of the processor > Flashcards

Flashcards in 1.1.1 Structure and function of the processor Deck (27)
Loading flashcards...
1

What components are within the CPU?

Control unit
Buses
Arithmetic/Logic unit
Dedicated registers

2

What is the function of the control unit?

To control and coordinate the activities of the CPU.

3

What is a bus?

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

4

What does the address bus do?

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.

5

What does the data bus do?

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

6

What does the control bus do?

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

7

What is the definition of a register?

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

8

What are the five registers?

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

9

What is the function of a program counter?

Holds the address of the next instruction to be executed.

10

What does the CIR do?

Holds the current instruction to be executed.

11

What does the MAR do?

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

12

What does the MDR do?

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

13

What does the ACC do?

Holds the results of ALU operations.

14

Explain the fetch phase.

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.

15

Explain the decode phase.

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

16

Explain the execute phase.

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

17

What are the three factors effecting CPU performance?

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

18

How does the clock speed effect CPU performance?

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

How does the number of cores effect CPU performance?

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

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

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

How many levels of cache are there?

Three

22

What is level 1 cache

Extremely fast with a small capacity between 2-64kb

23

What is level 2 cache

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

24

What is level 3 cache

Slower and bigger than the ones below.

25

Describe pipelining.

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

26

What is are two features unique to Von Neumann architecture?

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

What are two features unique to Harvard architecture?:

Data and instructions stored in different formats.
Separate buses for instructions and data to connect the CPU to the Memory and Peripherals.