The CPU Flashcards
What is the control bus?
The bidirectional bus used to carry control signals between the CPU and RAM
What is the address bus?
The unidirectional bus which the CPU uses to send a memory address to RAM. The RAM will then fetch the data stored at that address
What is the data bus?
The bidirectional bus that carries data around the CPU and to and from the RAM
What determines how much RAM is addressable?
The width of the address bus
What is a register?
Fast data storage used to store data temporarily
What is the stored program concept?
Programs which are currently being executed have their instructions and data stored in the RAM temporarily
What is the system clock?
Every time it clicks, an instruction is executed (in a single core)
What is the PC?
The program counter, which stores the address of the next instruction to be executed
What is the MAR?
(Memory address register) Holds the memory address of what needs to be fetched from RAM
What is the MBR?
(Memory buffer register) The memory register that temporarily stores data read from/to be written to memory
What is the CIR?
(Current instruction register) Holds the current instruction
What is the SR?
(Status register) Holds the bits output by the ALU’s calculation (e.g. overflow errors, carry values)
Describe the fetch-decode-execute cycle
- The memory address in the PC is copied to the MAR
- The contents of the MAR are sent to the RAM via the address bus, which returns the instruction stored at that address via the data bus
- The address in the PC is incremented by 1
- The instruction returned by the RAM is stored in the MBR
- The contents of the MBR are copied to the CIR
- The contents of the CIR are split into opcode and operand
- The control unit executes the instruction
How does changing the number of cores affect performance?
It means the CPU can execute multiple instructions per clock tick
[PPQ] Describe the fetch stage of the fetch-decode-execute cycle
- The memory address in the PC is copied to the MAR
- The contents of the MAR are sent to the RAM via the address bus, which returns the instruction stored at that address via the data bus
- The address in the PC is incremented by 1
- The instruction returned by the RAM is stored in the MBR
- The contents of the MBR are copied to the CIR