Wase 4
Wase 4
Organization &
Architecture
Purushotham BV
Asst. Prof.
Department of CSE
DSCE, Bangalore – 78
94489 19064
[email protected]
Processor Organization
Register Organization
Instruction Cycle
Instruction Pipelining
CPU must:
Fetch instructions
Interpret instructions
Fetch data
Process data
Write data
General Purpose
Data
Address
Condition Codes
Between 8 - 32
Fewer = more memory references
More does not reduce memory references
and takes up processor real estate
See also RISC
double int a;
long int a;
Program Counter
Instruction Decoding Register
Memory Address Register
Memory Buffer Register
A set of bits
Includes Condition Codes
Sign of last result
Zero
Carry
Equal
Overflow
Interrupt enable/disable
Supervisor
IR is examined
If indirect addressing, indirect cycle is
performed
Right most N bits of MBR transferred to MAR
Control unit requests memory read
Result (address of operand) moved to MBR
Simple
Predictable
Current PC saved to allow resumption after interrupt
Contents of PC copied to MBR
Special memory location (e.g. stack pointer) loaded to
MAR
MBR written to memory
PC loaded with address of interrupt handling routine
Next instruction (first of interrupt handler) can be
fetched
01/24/25 CPU Structure & Function 26
Data Flow (Interrupt
Diagram)
Multiple Streams
Prefetch Branch Target
Loop buffer
Branch prediction
Delayed branching