1.1.1 - structure and function of the processor Flashcards
1
control unit (CU)
- Controls and coordinates activities of CPU.
- Directs flow of data between CPU and other devices.
- Decodes instructions.
bus
A set of parallel wires connecting two or more components of a computer.
address bus
- Sends address of data from CPU to memory.
- Unidirectional
data bus
- Moves data between main memory and CPU.
- Bidirectional
control bus
- Sends control signals.
- Bidirectional
arithmetic logic unit (ALU)
Performs arithmetic and logical operations on data.
registers
Small, special memory cells that operate at very high speed. Very specific roles.
program counter (PC)
Holds the address of the next instruction to be executed.
current instruction register (CIR)
Holds the current instruction being executed.
memory address register (MAR)
Holds the address of the memory location from which data is to be fetched or written to.
memory data/buffer register (MDR)
Temporarily stores the data read from or written to memory.
Name the 2 parts of an instruction.
- opcode
- operand
stages of fetch stage
1- Address of next instruction copied from PC to the MAR.
2- Instruction held at that address is copied to MDR.
3- PC is incremented.
4- contents of MDR copied into CIR.
stages of decode phase
- Instruction in CIR is decoded.
- Opcode determines types of instruction and hardware
- Operand hold address of data or the actual data.
stages of execute stage
- Appropriate instruction/opcode is carried out on the operand.