Structure of processor and its functions Flashcards
What are the 3 buses used within a PC?
- Control bus
- Data bus
- Address bus
What is used in order to process an instruction?
- Opcode
2. Operand
What is the Control Unit?
A control unit coordinates all of the activities of CPU. Shows flow of data between CPU and other components.
Accepts instruction, decodes it, handles execution, stores resulting data back in memory or registers.
What is the ALU?
The arithmetic logic unit (ALU) performs arithmetic or logic operations. Bitwise shifts, Boolean logic gates.
Often use general-purpose registers to temporarily hold results of calculations
What is the ACC?
The accumulator (ACC) stores data and control information. The more general-purpose registers a processor has, the faster it may operate. Results of calculations from ALU are stored here.
What is the MAR?
The memory address register (MAR) holds the address of the memory location of data yet to be fetched.
Sends these addresses to memory through the address bus.
What is the MDR?
The memory data register (MDR) temporarily stores data which is written to memory or read from memory.
All data to/from memory must travel down the data buss and pass through MDR.
What is the CIR?
Current instruction register (CIR) = Holds current instruction that’s being executed. Contents of MDR copied to CIR
if instructed to. Has opcode and operand.
What is the PC in a processor?
The program counter (PC) holds address of next instruction yet to be executed.
What is the DU?
The decode unit (DU) is a piece of logic that is presented with a sequence of bits that have been fetched from memory.
Prepares execution of instruction by looking up the binary operation code in its table so CPU knows what to do.
What do each of the busses do?
- Control bus = carries commands and control signals to and from every component of CPU
- Data bus = carries 1s and 0s that make up actual info being transmitted around CPU from RAM to CPU.
- Address bus = carries memory addresses that tell where data is read from/written to.