Lecture 9
Lecture 9
• CPU contains:
Registers
Internal processor memory
ALU
performs arithmetic and logic operations (processes data)
Operates only on data in registers
ALU with its inputs and outputs is termed as a data path
Control Unit
Decodes instructions, generates control signals to control
the processor
Internal Bus
Interconnects CPU parts
Types of registers
• User-visible registers
They can be directly accessed (read or written to) by
programmers (instructions)
Used to minimize memory reference
• Control registers
Used by control unit to control operation of the processor
• Status (flag) registers
Indicate the current state (status) of the processor
Load address of
[Fetch Data]
ISR on PC
• Instruction Pipelining