Chapter 1 - Processor components Flashcards
Control unit
- Controls and coordinates activities of the CPU
- In charge of FDE cycle
Buses
- set of parallel wires connecting two or more components
- consists of 8, 16, 32 or 64 lines
- control and data buses are bi-directional (signals can be carried both ways)
- shared transmission medium, so only one device can transmit at any one time
Buses - Control bus
Ensures that access to and use of data and address buses does not lead to conflict; transmits command, timing and specific status information e.g.
- Memory write – data on the data bus is written into the addressed location
- Memory read – data from addressed location is read
- Clock – used to synchronise operations
Buses - Data bus
Provides path for moving data and instructions; largest operand possible is determined by the width of the data bus
Buses - Address bus
Transmits memory addresses of words, so that data can be retrieved; width of address bus determines the maximum possible memory capacity
- Words – a fixed size group of digits which memory is divided into; different types of processors have different word sizes; each has a specific memory address
ALU
Performs arithmetic and logical operations on data e.g. add, multiply, shift operations and boolean logic operations
- it is a type of register
Registers
Special memory cells that operate at very high speeds
There 16 general-purpose registers, but the accumulator (holds result of operation) takes the place all of them for simplicity
Registers - PC
Holds address of next instruction to be executed; could jump to another instruction/not go in a sequence
Registers - CIR
Holds current instruction being executed
Registers - MAR
Holds the address of the memory location from which data/instructions need to be fetched or written to
Registers - MDR
Used to temporarily store data from or to be written to memory
FDE cycle - Fetch
- Address of next instruction is copied from PC to MAR.
- Instruction held at that address is copied to MDR. Content of PC is incremented to hold the address of next instruction.
- Contents of MDR are copied to CIR
FDE cycle - Decode
- Instruction held in CIR is decoded. It is split into opcode (determines type of instruction in assembly language e.g. SUB, LDA, ADD) and operand (data to be operated one), holding either:
- Address of data to be used is copied to MAR
- Actual data is copied to MDR
- data passed in to ALU/ACC
FDE cycle - Execute
- Appropriate instruction/opcode is carried out on the operand.
Registers - ACC
Temporarily holds result of arithmetic or logic operation