What is the purpose of the cpu
Fetch decode and execute instructions
What does cpu stand for
Central processing unit
Von Neumann architecture
1.Data and instructions stored in the primary storage
2.Instructions are fetched from memory one at a time in order
3.the processor decor and executes and instruction before cycling round to get new instruction this repeats till no more instruction available
What does pc stand for
Program counter
What does the pc do
Holds the memory adress of the next instruction to be executed
What does Mar stand for
Memory adress register
What does the mar do
Holds the memory adress of where data is about to be fetched from or stored into
What does mdr stand for
Memory data register
What does the mdr do
Holds data that has been fetched from ram
What does the accumulator do
Holds result of calculations from alu
What does alu stand for
Arithmetic logic unit
What does the alu do
Performs calculations
What does cu stand for
Control unit
What does the cu do
Decodes instructions
What does the cache do
Allows for very quick access to frequently used data and instructions
By holding memory in or close to the processor
What happens during a fetch decode and execute cycle
fetch : address of next instruction to be processed copied from PC to the MAR
Pc is incremented to point next instruction when cycle restart . The instruction held by the MAR copied to MDR
2.DECODE - the CU decode the instructions and sends signals to around CPU to fetch or write
3.EXECUTE -the operation performed for example the ALU might add operations given the control unit