Structure and Functions Flashcards
What is the CPU
Central Processing Unit
responsible for processing all the data within the computer
PC
Program Counter
Stores the address of the next instruction to be executed
ALU
Arithmetic Logic Unit
Does calculations and logic e.g. comparison
CU
Control Unit
Sends signals to coordinate how the processor works and controls how the data moves around the CPU and between the CPU and memory
MAR
Memory Address Register
Stores the address of the data or the instructions to be fetched from or sent to memory
ACC
Accumulator
Stores the result of calculations made up by the arithmetic logic unit
MDR
Memory Data Register
Stores the data that is to be sent or to be fetched from memory
CIR
Current Instruction Register
Stores the actual instruction that is being decoded and executed
What are the three buses in the CPU and what do they do
Address Bus
Data Bus
Control Bus
They are a set of parallel wires which connect two or more components inside the CPU, they are collectively called the system bus
What does each bus do?
Data Bus - It’s bi-directional so it can move data in both directions, used for transporting data and instructions between components, read/write
Address Bus - one directional, used to transmit the memory addresses specifying where data is to be sent to or retrieved from, read/write
Control Bus - bi-directional, used to transmit control signals between internal and external components, coordinates the use of the address and data buses and provides status information between system components, sends signals
What are registers?
Locations of very high speed computer memory within the processor
What are general-purpose registers
used to store the results of the intermediate calculations that are part of larger computations
What do dedicated or special-purpose registers do?
Have specific purpose within the fetch-decode-execute cycle
What are the registers?
PC, CIR, MAR, MDR, ACC and SR
What does the decode unit hold?
On the left, it has the opcode and operand which consists of 4 numbers each like “0000 0000” or a 4 number opcode and the word address as the operand like “0001 address”
On the right is the instructions like “add” and “end”