1.1.1 - Architecture of the CPU
No description yet. This curated deck is ready for daily study.
Card preview (12)
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. mark scheme bits: * Data/instructions are fetched from memory/RAM/primary storage * Data/instructions are stored using the registers // correct example of a register storing address/data * Data/instructions are decoded // Data/instructions are split into opcode and operand * Data/instructions are executed/processed * ALU performs the logical/arithmetic calculations
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. GREATER THE CACHE SIZE: data is transferred faster which makes a CPU more efficient, it is faster to transfer to and from cache than transferring to and from RAM.
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)
Stores the address of where data is to be fetched from or stored to.
MDR (Memory Data Register)
Stores any data fetched from memory, or is about to be written/stored to memory.
Program Counter (PC)
Stores the address of the next instruction to be fetched in memory. Is then incremented by one each time.
Accumulator (ACC)
Stores the result of calculations.