題組內容

4. Figure 1 gives the datapath of a pipelined processor with forwarding and hazard detection.

4.1 We have a program of 1000 instructions in the format of "Iw, add, 1w, add, .. ." The add instruction depends (and only depends) on the 1w instruction right before it. The 1w instruction also depends (and only depends) on the add instruction right before it. If the program is executed on the pipelined datapath of Figure 1, what would be the actual CPI?