1.1.1 - Architecture of the CPU Flashcards
What is the purpose of a CPU?
A Central Processing Unit (aka processor) has the purpose of fetch, decode and execute instructions.
What happens at each stage of the Fetch-Decode-Execute cycle?
Fetch - Instruction is fetched from main memory (RAM)
Decode - Instruction is decoded, to figure out what needs to be done.
Execute - Instruction is performed and carried out.
What does the CPU consist of?
Control Unit (CU),
Cache,
Arithmetic Logic Unit (ALU),
Registers.
Arithmetic Logic Unit (ALU)
Responsible for carrying out arithmetic calculations and making logical decisions.
Control Unit (CU)
Sends signals to control how much data moves around the CPU.
Cache
Small of very fast memory which provides fast access to frequently used data and instructions.
Registers
Tiny, super fast pieces of onboard memory inside the CPU, where each has a very specific purpose.
What are the 4 main registers in the Von Neumann architecture?
MAR (Memory Address Register),
MDR (Memory Data Register),
Program Counter (PC),
Accumulator.
MAR (Memory Address Register)
Holds the address of where data is to be fetched or stored.
MDR (Memory Data Register)
Holds any data fetched from memory, or is about to be written to memory.
Program Counter (PC)
Holds the address of the next instruction in memory.
Accumulator (ACC)
Holds the result of calculations.