Structure and Function of the Processor Flashcards

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

What is the function of the ALU (Arithmetic Logic Unit)

A

Performs all of the processor’s Logical and Arithmetic operations

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

Give examples of Logical Operations

A

AND, OR, NOT, NAND, NOR, XOR

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

Give examples of Arithmetic Operations

A

Addition or Subtraction on Fixed or Floating Point numbers

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

What is the function of the Control Unit?

A

Monitors communications between Hardware in the computer

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

What are the Control Unit’s jobs?

A

Decoding Instructions
Storing the resulting data back in memory
Accepting the next instruction

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

What are Registers?

A

Small memory cells that temporarily store data.
All arithmetic, logical and shift operations occur within registers

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

Give examples of the CPU’s registers

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

What is the function of the Program Counter (PC)?

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

What is the function of the Accumulator (ACC)?

A

Stores the results of ALU calculations

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

What is the function of the Memory Address Register (MAR)?

A

Holds the address of a location to be read from/written to

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

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

A

Temporarily stores the data that has been read/needs to be written to from the address in the MAR

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

What is the function of the Current Instruction Register (CIR)?

A

Holds the current instruction to be executed

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

What are Buses?

A

A set of parallel wires which connect two or more components in the CPU so that they can transfer data.
The number of bits that can be transferred simultaneously is to increase the Width of the wire.

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

What are the 3 buses inside the CPU?

A

Data, Address and Control

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

What is the function of the Data Bus?

A

Transports data and instructions between components.
Bi-directional

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

What is the function of the Address Bus?

A

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

17
Q

What is Assembly Code?

A

A simplified way of representing machine code using mnemonics. Structured using Opcode and Operand.
(i.e., ADD represents addition, LDA represents load)

18
Q

What is Opcode in Assembly Language?
(Operation Code)

A

Represents the type of instruction to be executed.
(ADD, LDA, STA, BRP, BRN, etc)

19
Q

What is Operand in Assembly Language?

A

Contains the address of the data that will have an operation performed

for example: ADD 5 (5 is the operand)

20
Q

What is the purpose of Addressing Mode in Assembly Language?

A

Specifies how the Operand is used

21
Q

What is Pipelining?

A

The process of completing the Fetch, Decode, Execute cycle of three separate instructions simultaneously, holding the appropriate data in a buffer in close proximity to the CPU until its needed.

Whilst one instruction is being executed, another is being decoded and another fetched.

22
Q

What is Instruction Pipelining?

A

Divides incoming instructions into a series of sequential steps performed by different processor units.
Different parts of instructions are processed in parallel

23
Q

Explain the Fetch, Decode, Execute cycle.

A

Address from PC is copied into MAR.
Instruction from address is copied into MDR by Data Bus.
PC increments by 1.
The value held in MDR copied into CIR.

Contents of CIR split into Opcode and Operand.

Decoded instruction is executed.

24
Q

What are the 3 main factors that affect CPU performance?

A

Clock Speed
Number of Cores
Amount and Type of Cache memory

25
Q

What is a CPU’s Clock Speed?

A

The time it takes for one clock cycle to complete (0 to 1)

Each CPU operation starts as the clock changes from 0 to 1. The higher the clock speed, the more operations per second (Hz).

26
Q

Why do Cores affect CPU performance?

A

A core is an independent processor that is able to run its own fetch-decode-execute cycle. This means that a computer with multiple cores can complete more than one F-E-D cycle at any given time.

A computer with 2x as many cores than another is theoretically 2x as fast, however not all programs are able to utilise multiple cores.

27
Q

Why does Cache size and type affect CPU performance?

A

Cache is the CPU’s onboard memory. Instructions fetched from main memory are copied to cache so that they can be accessed quicker if needed. As cache fills up, unused instructions are replaced.

28
Q

What are the properties of Level 1 Cache?

A

Very Fast
Small Capacity (2-64KB)

29
Q

What are the properties of Level 2 Cache?

A

Relatively fast
Medium Capacity (256KB-2MB)

30
Q

What are the properties of Level 3 Cache?

A

Slow compared to other levels
Large Capacity

31
Q

What is Von Neumann computer architecture?

A

Basic components and processor (control unit, registers and memory units)

Shared data and memory bus for both instructions and data.

32
Q

What is Harvard computer architecture?

A

Separate physical memory for instructions and data.

33
Q

What are the advantages of Von Neumann computer architecture?

A

Cheaper to develop
Control unit is easier to design
Programs can be optimised in size

34
Q

What are the advantages of Harvard computer architecture?

A

Quicker execution as data and instruction can be fetched in parallel
Memories can be different sizes - makes more efficient use of space.

35
Q

What is Contemporary Processing in computer architecture?

A

A combination of Harvard and Von Neumann.
Uses Von Neumann when working with data and instructions in main memory.
Uses Harvard to divide the cache into instruction cache and data cache.

36
Q

The 3 computer architectures

A

Von Neumann
Harvard
Contemporary