structure and functions of processors Flashcards
CPU components
CU, buses, ALU, registers
control unit (CU)
coordinates the activity of all other components
bus
consists of a series of connectors that transfer signals between internal components
system bus
consists of the control,address and data bus
control bus
carries control signals
address bus
carries memory addresses
data bus
carries data
control signals (list)
memory read, memory write, bus request, bus grant, clock
memory read
causes data from the addressed location in RAM to be placed on the data bus
memory write
causes data on the data bus to be written into the address location in RAM
bus request
indicates that a device is requesting use of the data bus
bus grant
indicates that the CPU has granted access to the data bus
clock
used to synchronise operations
arithmetic logic unit (ALU)
performs arithmetic, logical and shift operations
accumulator (Acc)
stores the result of the operation done in the ALU
registers
small amounts of memory in the CPU (therefore fast access) that store a specific piece of information
program counter (PC)
holds the memory address of the next instruction to be executed
current instruction register (CIR)
holds the current instruction, split into opcode and operand
memory address register (MAR)
holds the address in memory where the processor is required to fetch/store data from/to
memory data register (MDR)
holds the data moving between the processor and main memory
accumulator (Acc)
holds the results of the operation executed by the ALU
fetch steps (fetch-execute cycle)
- the address of the next instruction copied for the PC to the MAR
- the instruction held at the address in the MAR in copied to the MDR and the contents of PC are incremented to point to the next instruction
- the contents of the MDR are copied to the CIR
decode steps (fetch-execute cycle)
- the instruction held in the CIR is decoded
- it is split into operand and opcode to determine the type of instruction, additional required data is fetched from memory if required
- and passed to the accumulator
execute steps (fetch-execute cycle)
- the instruction executed and the result is held in the Acc or stored in memory