1.1.1 Structure and function of the processor Flashcards

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

What are CPUs

A

Central processing units (CPUs) are general purpose processors that execute instructions in a computer system
through the fetch-decode-execute (FDE) cycle.

Each consists of :

An Arithmetic Logic Unit (ALU)

A Control Unit (CU)

Registers

Buses.

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

What is a bus?

A

A bus is a parallel group of communication channel wires able to transmit data in groups of bits together from one register to another in the processor.

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

What is the Address bus?

A

The Address bus carries the memory location address of the register where the data is being transmitted to or from.

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

What is the Data Bus?

A

The Data bus carries the data being transmitted from one register to another between areas of the processor and memory. IS BI-DIRECTIONAL

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

What is the Control Bus?

A

The Control bus transmits control signals from the CU to allow synchronisation of signals to the rest of the
processor.

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

What is the Arithmetic Logic Unit (ALU)?

A

Carries out arithmetic calculations and logical decisions.

Acts as a conduit through which all I/O to computer is done and a gateway to and from the processor.

The results of its calculations are stored in the Accumulator (ACC).

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

What is the Accumulator (ACC)?

A

Temporary storage of intermediate results in the ALU holds the data currently being processed during calculations. Deals with the I/O data in the processor and is used as a buffer. All arithmetic and logical operations use the ACC.

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

What is the Control Unit (CU)?

A

Decodes and manages the execution of instructions using control signals to coordinate movement of data
through the processor and other parts of the computer.

Sends out signals to coordinate how the processor works.

Synchronises actions using inbuilt clock.

Controls FDE cycle and buses.

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

What is the Current Instruction Unit (CIR)?

A

Holds the most recently fetched data/instructions to be decoded and executed into opcode and operand. Instruction contents are split into 2 component parts. Opcode is first part of instruction decoded so CU knows what to do and remainder of the instruction content is address of data to be used with the operation or actual data if immediate operand is used. Operand is coped to MAR if it is an address for accessing data to ACC or to MDR if it is data. Sends address to PC for jump instruction and determines the type of addressing to be used.

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

What is the Memory Address Register (MAR)?

A

Contains the address of the next instruction or of the next location to be accessed in memory copied from PC or the address of next data item to be used copied from operand part of instruction from CIR.

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

What is the Memory Data Register (MDR)?

A

Contains the instructions of the memory location address specified in the MAR when being transferred between memory and processor. Receives data currently being used by the processor from memory location in address part of ACC. Acts as a buffer and copies data/instructions to CIR.

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

What is the Program Counter (PC)?

A

It controls the sequence in which the instructions are retrieved and executed and stores the address of the next instruction to be processed. Value is then sent to the MAR and the PC is incremented by 1 each FDE cycle after being read and is changed to address held in CIR if the operation is a Jump.

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

What is the General Purpose Register (GPR)?

A

Used to temporarily store data being used rather than sending data to and from the comparatively much slower memory.

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

What happens in the ‘fetch’ stage in the fetch-decode-execute cycle?

A

The next instruction is fetched from the address held by PC in main memory into the processor.

PC passes this address to MAR which provides the location sent along the address bus.

PC is incremented in each cycle and the fetch signal is sent on the control bus.

The contents of the memory location are sent from memory to the processor on the data bus and stored in the
MDR.

The contents of the MDR and ACC are sent to the ALU and the result is stored back in the ACC.

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

What happens in the “decode” stage in the fetch-decode-execute cycle?

A

Load instruction from address in MAR pointed to MDR.

The instruction is copied from MDR to CIR.

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

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

What happens in the “execute” stage in the fetch-decode-execute cycle?

A

The appropriate instruction opcode is carried out on the operand by the processor.

17
Q

What are the three factors that affect the speed/performance of a CPU.

A

Clock speed, Number of cores, Cache Memory.

18
Q

What is clock speed?

A

The clock controls the process of executing instructions and fetching data.
- Processors have increasingly large clock speeds and can be overclocked to give more cycles per second so more instructions
can be executed per second so the program takes less time to run.
- Increased clock speed is limited to smaller problems. Even doubling the clock speed would only halve the time taken.

19
Q

What is a core?

A

Each core is a distinct processing unit on the CPU.
- Processors can have multiple cores to speed up smaller problems
- When multitasking, different cores can run different applications. Multiple cores can also work on the same
problem.

20
Q

What is cache memory?

A

This is small memory that works much faster than main memory.
- By anticipating the data/instructions that are likely to be regularly accessed , the overall speed at which the
processor operates can be increased.

21
Q

What levels of cache are there?

A

Level 1 cache is extremely fast but small (2-64kb)

Level 2 cache is fairly fast and medium (256kb-2mb)

Level 3 cache is slow but has more storage but is uncommon

22
Q

What is pipelining?

A

Pipelining would allow one instruction to be fetched as the previous one is being decoded and the one before that is being executed.
- Jump instructions do not pipeline well as they could be followed by one of many instructions determined at execution. This means the wrong one may be fetched or decoded so the pipeline would need to be flushed.

23
Q

What are three types of computer architectures?

A

Von Neumann Architecture
Harvard Architecture
Contemporary Processor Architecture

24
Q

What is the Von Nuemann Architecture?

A

Single processor CU manages program control.

Uses FDE cycle to execute one instruction at a time in a linear sequence.

Program and data stored together in same memory format.

Simple OS and easy to program but slow processing large sets of data.

25
Q

What is the Harvard Architecture?

A

Data/instructions are stored in separate memory units with separate buses.

So while data is being written to or read from the data memory, the next instruction can be read from the
instruction memory.

26
Q

What is the Contemporary Processor Architecture?

A

Modern high-performance CPU chips incorporate aspects of both architectures.