CPU Flashcards
Where does the CPU fetch instructions from?
RAM (Random Access Memory)
What does the CPU do?
The Fetch-Decode-Execute cycle. The CPU fetches instructions from memory (RAM), it decodes the instructions and then executes those instructions. The instructions are provided by a computer program.
What is the purpose of the CPU
To process data
What computer components does the CPU control?
Hard disk
DVD drive
Sound system
Graphics system
What are the 3 sections inside the CPU
Control Unit
Arithmetic Logic Unit (ALU)
Registers
What 3 jobs does the control unit do?
It controls the way data moves around the CPU
It executes the instructions provided by the program
It controls and monitors the flow of data between the CPU and other components such as input devices, memory, graphics card etc
What 2 jobs does the ALU do?
Arithmetic operation - it performs standard arithmetic operations such as addition, subtraction, multiplication etc
Logic operation - it deals with logic and comparisons such as ‘is this value greater than that value’ the answer is always either ‘true’ or ‘false’
What is a register?
A type of memory inside the CPU
What are registers used for?
Registers are used to hold temporary data while a software program is running. As the CPU processes the data, the software program will shift the data in and out of the registers
Which is faster to shift data to and from?
The registers are much faster than cache or RAM, speeding up the processing time
What are the 5 types of register?
Memory Address Register (MAR) Memory Data Register (MDR) Accumulator Program Counter Instruction Register
What are the MDR and the MAR used for?
To move data and instructions to and from main memory
What does the Accumulator do?
It’s where data is stored as calculations are underway
What does the Program Counter do?
Points to the next instruction
What does the Instruction Register contain?
The next instruction to be run