STRUCTURE OF THE PROCESSOR Flashcards
What is the function of the control unit?
- coordinates all activities of CPU
- directs flow of data between CPU and other devices
- accepts next instruction, decodes it, handles its execution and stores resulting data back in memory/registers
- sends memory read and write requests to main memory on control bus as well as other commands and control signals (eg: bus requests, bus grants, etc.)
- coordinates and communicates with all parts of CPU
What is the function of the program counter (PC)?
holds address of next instruction to be executed (could be next instruction in a sequence of instructions/address to jump to if current instruction is a command to jump/branch
What is the function of the memory address register (MAR)?
- holds address of memory location from which data is to be fetched/to which data is to be written
- sends address to memory down address bus
What is the function of the memory data register (MDR)?
- used to temporarily store data which is read from/written to memory
- all data to and from memory must travel down data bus and pass through MDR
What is the function of the current instruction register (CIR)?
- holds current instruction being executed
- contents of MDR copied into CIR if its an instruction
- contains opcode and operand(s) of current instruction to be executed
- instruction = opcode + operand
What is the function of the arithmetic logic unit (ALU)?
- performs arithmetic (+) and logical (boolean) operations on data
- bitwise shift operators left and right ( x and ÷)
- often uses general purpose registers to temporarily hold results of calculations
What is the function of the accumulator (ACC)?
- general purpose register (CPU may have many for storing temporary data while instructions/calculations are being carried out. typically, the more general purpose registers in a CPU the faster it operates)
- often stores data/control info
- temporarily stores results of calculations carried out by ALU
What is the function of the address bus?
carries memory addresses that identify where data is being read from/written to
What is the function of the data bus?
carries binary 1s and 0s that make up actual info being transmitted around CPU/computer
What is the function of the control bus?
carries command and control signals to and from every other component of the CPU/computer