Components Of A Computer - 1.1.2 Flashcards
What is a CPU?
The “brain” of the computer system
What does the CPU do?
Processes all the data and instructions for the system to work
What are the 3 main parts of a CPU?
CU ( Control Unit)
ALU ( Arithmetic Logic Unit)
Cache
Function of the CU?
Overall control of the CPU, manages the fetch-decode-execute cycle
Function of ALU? (4)
Does all the calculations
Performs logic operations (AND, OR, NOT)
Binary shifts
Contains the ACC
Function of Cache (5):
Very fast memory, stores regularly used data so the CPU can access it quickly
Very low capacity and expensive
Different levels of cache
Slower than registers but faster than RAM
If data is not in cache it’s stored in the RAM
What is the Von Neumann architecture?
Currently used data and software are stored in the RAM in memory addresses.
What does the program counter do? (2)
Holds the memory address of the next instruction in the cycle
Found in the CU
Function of the accumulator?
Stores the results of the calculations from the ALU
Found in the ALU
Function of the MAR?
Holds any memory address that the CPU will use
Can be for data or instructions
Function of an MDR?
Holds the actual data or instruction
Explain the fetch-decode-execute cycle (7 steps):
- PC starts at 1 and is copied to the MAR
- PC increases by 1 ready for the next instruction
- MAR fetches the data or instruction from that address in the RAM at and copies it to the MDR
- CU decodes the data or instruction
- The instruction is executed, e.g. loading data from memory, do a calculation in the ALU, change the PC address
- Then copied to the ACC
- Repeats.
What does CPU performance depend on (5)?
Clock speed
Number of cores
Cache size
More RAM
GPU’s
What is the Clock Speed (2)?
Number of instructions that can be carried out by a core per second (Hz)
Higher clock speed = greater number of instructions completed
How does the number of cores affect CPU performance ?
Each core can process data independently
More cores = more instructions completed at once
4 cores in smartphones and PC’s