1.1.1 - Structure And Function of the Processor Flashcards

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

Central Processing Unit (CPU)

A
  • 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 and Buses.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Arithmetic Logic Unit (ALU)

A
  • Carries out arithmetic calculations and logical decisions.
  • 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
3
Q

Control Unit (CU)

A
  • Decodes instructions
  • Manages the execution of instructions using control signals to coordinate movement of data through the processor and other parts of the computer.
  • Controls buses
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Register

A
  • Small piece of memory used for storing data within the processor
  • They provide faster access to data than RAM for specific purposes during FDE cycle when frequent access is needed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Program Counter (PC)

A

– Stores the address of the next instruction to be processed
– Value is then sent to the MAR
– After sending the value the PC is incremented / 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
6
Q

Accumulator (ACC)

A
  • Temporary storage for data being processed / during calculations
  • Deals with the I/O data in the processor and is used as a buffer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

Memory Address Register (MAR)

A

Contains the address of the next location to be accessed in memory copied from the PC

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

Memory Data Register (MDR)

A

Contains the data which has been accessed from the memory location referenced by the MAR when being transferred to the CIR

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

Current Instruction Register (CIR)

A

Holds the most recently fetched data/instructions to be decoded and executes into opcode and operand.

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

Bus

A

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

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

Data Bus

A

Carries the data being transmitted from one register to another.

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

Address Bus

A

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

Control Bus

A

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

Fetch - FDE Cycle

A
  • Data/address is copied from the PC to the MAR
  • PC is incremented by 1 in each cycle
  • Read signal is sent on the control bus.
  • RAM copies the data from the location specified by the address bus onto the data bus.
  • Data on the data bus is passed into the MDR
  • Data is copied from the MDR to the CIR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Decode - FDE 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.
17
Q

Execute - FDE Cycle

A

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

18
Q

Clock Speed

A
  • Number of instruction cycles per second a CPU can execute
  • Measured in Hz (1 GHz = 1 billion instructions per second)
19
Q

Effect of increased Clock Speed

A
  • Gives more cycles per second so more instructions can be executed per second
  • So the program takes less time to run
20
Q

Number of Cores

A
  • Each core is a distinct processing unit on the CPU; each with their own Registers, ALU, Accumulator, CU etc.
  • Processors can have multiple cores to speed up smaller problems or when multitasking, different cores can run different applications/programs at the same time.
21
Q

Cache

A
  • Small storage of data and instructions that are likely to be regularly accessed
22
Q

Effect of increased Cache Size

A
  • More space for data / instructions in cache memory so RAM needs to be accessed less
    frequently
  • Saves time as accessing cache is quicker than accessing the RAM
23
Q

Pipelining

A
  • 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, so the wrong one may be fetched/decoded
24
Q

Von Neumann Architecture

A
  • Uses shared memory space for instructions and data; these are stored in the same format.
  • Single set of buses
  • A single CU and processor uses FDE cycle to execute one instruction at a time in a linear sequence.
  • Simple OS and easy to program but slow processing large sets of data.
25
Q

Harvard Architecture

A
  • Data/instructions are stored with fixed memory sizes 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.
  • Used by RISC processors
26
Q

Contemporary Processor Architecture

A

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

27
Q

Why can Pipelining improve the performance of a processor?

A
  • Reduces/removes latency
  • CPU is not idle while waiting for next instruction
  • Next instruction is fetched while current one is decoded/executed
  • All parts of the processor can be used at any instance in time.