Tom Kelliher, CS 240
Apr. 8, 2002
Read 6.2.
Microprogramming.
Pipelined datapath.
Conceptually, how do interrupts work?

``Unplanned'' function calls setup by planned function calls (syscalls, etc.).
Why does the kernel initiate the I/O operation?
Components of an interrupt system:
The laundry analogy:

The five stage MIPS pipeline:
The consistent placement of the source registers permits this.
Assume:
Instruction class times:

Clock periods for the two implementations?
Execution example:

Note that pipelined register file reads are done during the second half of the clock cycle and writes are done during the first half. Why?
Consider the speedup:
Do we achieve that?
Consider the execution of 1,000 instructions and compute the actual speedup.
What happened? The cost of the pipeline registers.
Consider: