T1 - Architecture of the CPU/ Performance Flashcards
CPU
- The CPU processes instructions
Stored program concept
- In 1943-44, von Neumann had the idea of storing the program
instructions/data in memory
Von Neumann architecture
- Program instructions and data are both stored in the same memory
Control unit
- coordinates activities in CPU
-sends signals to control how data moves around
Receives signals from the system clock
Directs timing + controls other parts of the CPU
Arithmetic logic unit
- actual arithmetic operations are done
Carries out logical operations: AND, OR and NOT
Registers -
very fast memory location in the CPU
Cache
- it is slower to access than registers but faster than RAM
Types of Registers: Program Counter (PC)
- holds the address of the next instruction to be executed
Types of Registers: Memory Address Register (MAR) -
holds the memory address of the current instruction, so that these can be fetched from memory
Types of Registers: Memory Data Register (MDR)
holds the actual instruction, and data that has been fetched from memory
Types of Registers: Accumulator
- holds the result of an instruction before it is transferred to memory
-result if alu
FDE cycle
FETCH – fetches the next instruction + data involved to main memory
DECODE – decodes the instruction
EXECUTE – the instruction is executed
PC : role
holds the address of the next instruction to be executed
incremented (increased by 1) as soon as that instruction has been fetched = moves onto next instruction.
ACC : role
where arithmetic/ logic results are temporarily stored
MAR during FETCH stage:
address of the next instruction is copied from PC to MAR.