1 - Processor Components Flashcards
What does CPU do
executes instructions and processes data by following fetch-decode-execute cycle
3 functions of CU (Control Unit)
- Controls and coordinates the activities of CPU
- Directs the flow of data between the CPU and other devices
- Decodes instructions in FDE cycle
What is a bus
Set of parallel wires connecting two or more components of a computer
What is system bus made up of
address bus, data bus and control bus
What does system bus do
Connect CPU to main memory
Address bus
- sends memory address that processor needs to access from CPU to RAM
- Unidirectional: CPU -> RAM
control bus
sends control signals from the control unit to coordinate use of address and data bus, ensuring it doesn’t lead to conflict
- Bi-directional
Data bus
- Carries data and instructions between processor and memory
- Bi-directional
ALU
performs arithmetic (e.g add/subtract) and logical (e.g AND, OR, NOT) operations
Accumulator
a register that temporarily stores intermediate results from ALU until they’re written to memory
Registers
Registers are small, very fast memory cells within the processor that temporarily store data
PC
holds memory address of the next instruction to be executed
CIR
holds current instruction being executed, divided into operand and opcode
MAR
holds memory address of the instruction or data to be accessed
MDR
holds the instruction or data that has been accessed from memory