Computer Architecture Flashcards
What is Von Neumann architecture?
A computer whose programs and data it uses is stored in the same memory
Describe the fetch-execute cycle
An instruction is brought from the RAM.
It is then decoded by the CU to find out what to do with the instruction
The instruction is then carried out
What is the purpose of the CPU?
Central Processing Unit
To continuously process instructions and data that are inputted by repeatedly carrying-out the FE cycle
What is the function of the ALU?
Carries out the mathematical and logical operations (e.g. AND, OR, NOT) and compares values held in registers
What is the function of the CU?
- Coordinates all of the CPU’s actions in the FE cycle
- Decodes all instructions
- Sends and receives control signals to fetch and write data
What is the function of the clock?
It regulates the speed and timing of all signals and computer functions
What are the registers in the CPU?
PC
MAR
MDR
ACC
CIR
What is the purpose of the registers?
They are very small, fast memory locations that temporarily store memory addresses, instructions and data
What does the CIR do?
Holds the instruction currently being executed
What does the MDR do?
Holds data or a program instruction after it is stored/fetched from memory
What does the ACC do?
Where the ALU stores its results (from its operations)
What is the PC?
Holds the memory address of the next instruction to be executed
What are the seven steps in the FE cycle?
- The memory address held in the PC is copied into the MAR
- The PC is incremented. It now holds the address of the next instruction
- The processor sends a signal across the address bus to the memory address held in the MAR
- The instruction/data held in that memory address is sent along the data bus to the MDR
- The instruction/data in the MDR is copied into the CIR
- The instruction/date held in the CIR is decoded and then executed (results held in ACC)
- The process repeats
What three factors affect CPU performance?
Clock speed
Cache size
Number of cores
How does clock speed affect CPU performance?
One tick of the clock counts as one FE cycle.
So the faster the clock, the more ticks there are, the more FE cycles there are