Assignment 1
Assignment 1
Assume that ALU operations (20% of total) require a value loaded in the immediately
preceding instruction, ALU operations (30% of total) require a value computed in the
immediately preceding ALU instruction, and store operations (80% of total) immediately
follow the ALU operation that computes the value to be stored. Further, assume that
conditional branches (60% of total) use a register that is computed in the immediately
preceding instruction. Running on the MIPS pipeline, calculate average CPI assuming
a. Forwarding is not available and branches are completed in the MEM stage?
b. Forwarding is available and branches are completed in the ID stage by assuming
branches are not taken? Also assume 25% of all conditional branches are not taken.
Please Note:
1. Hand written answer sheets will be collected after eid. (Do not copy)
2. Assignment marks are strictly proportional to the percentage of class performance.
CSE 305
Shahrear Iqbal