1.1.1 Structure and Function of the Processor Flashcards
(39 cards)
What is the function of the CPU?
Executes instructions using the Fetch-Decode-Execute (FDE) cycle.
What are the components of the CPU?
Arithmetic Logic Unit (ALU), Control Unit (CU), Registers, Buses.
What does the ALU do?
Performs arithmetic and logical operations.
Where are the results of ALU calculations stored?
In the Accumulator (ACC).
What does the Control Unit (CU) do?
Directs CPU operations, manages data flow, decodes and executes instructions.
What synchronises CPU operations?
The clock.
What are registers in the CPU?
High-speed, small storage locations.
What is the function of the Program Counter (PC)?
Holds the address of the next instruction.
What is the function of the Accumulator (ACC)?
Temporarily stores results of ALU operations.
What is the function of the Memory Address Register (MAR)?
Stores the address to read/write from/to.
What is the function of the Memory Data Register (MDR)?
Temporarily stores data read from/written to memory.
What is the function of the Current Instruction Register (CIR)?
Holds the current instruction (opcode + operand).
What are General Purpose Registers (GPR)?
Temporarily store data during execution.
What are buses in a CPU?
Set of parallel wires that transfer data/signals.
What are the three types of system buses?
Data bus, address bus, control bus.
What does the data bus do?
Bi-directional. Carries data/instructions.
What does the address bus do?
Carries memory addresses (from MAR to RAM).
What does the control bus do?
Carries control signals like memory read/write, clock, interrupt.
What are the steps of the Fetch-Decode-Execute cycle?
Fetch, Decode, Execute.
What happens in the ‘Fetch’ step?
PC → MAR, instruction to MDR, PC incremented, MDR → CIR.
What happens in the ‘Decode’ step?
CIR is split into opcode and operand, decoded by CU.
What happens in the ‘Execute’ step?
Instruction is executed (e.g. via ALU or data transfer).
What affects CPU performance?
Clock speed, number of cores, cache memory, pipelining.
What does clock speed control?
Rate of instruction execution (Hz).