1.1.1 Architecture of CPU Flashcards
What is a CPU?
The CPU or Central processing unit is the ‘brains’ of a computer
What is the purpose of a CPU?
It’s main purpose is to carry out the FETCH-DECODE-EXECUTE cycle
Fetch information from main memory
Decode instructions - interprets
Executes instructions - performs the instructions
What arr the CPU components?
Cache, CU and ALU
What is the cache?
Memory that provides fast access to frequently used instructions and data without having to go back to the main memory (RAM)
What is the CU (Control Units?)
Decodes instructions and sends signals to control how data moves around CPU
What is the ALU ( Arithmetic Logic Unit)?
This is where all arithmetic (add, subtract, multiply, divide) and logical (AND,OR,NOT) operations are carried out
What is registers?
A small amount of memory each with their own function - introduced in the Von Nuemann Architecture
What are the 4 registers?
MAR,MDR,PC and ACC
What is the MAR (Memory Address Register)?
Stores the memory address where data is to be stored or fetched
What is the MDR (Memory Data Register)?
Holds data fetched from or to be written to the main memory
What is the PC (Program counter)?
Holds the addresses of the next instructions, increments (goes up) by 1
What is the ACC (Accumulator)?
Holds the results of calculations from ALU
What are examples of input, output and storage?
Input - keyboard, mouse, microphones, web cam, controller
Output - speakers, monitor, headphones
Storage - disc, hard drive, solid state drive (SSD)
What does FETCH do?
- The program counter is checked, as it holds the address of the next instruction to be executed
- The Memory Address Register (MAR) uses this address to fetch the required instruction from main memory (RAM) and bring it into the CPU
- The address in the program counter is incremented (its value is increased by one) to point at the next instruction
What does DECODE do?
- Now the instruction is in the CPU, the Control Unite (CU) decodes it - i.e, the CU works out what needs to be done