Professional Documents
Culture Documents
Assignment 2
Assignment 2
Assignment 2
Assignment 2
Q1: (1 point) Execute the following assembly code on a MC FP MIPS pipeline and complete the
table with stall detection and with data forwarding. This version uses ROB, instruction queue, and
memory enhancement (i.e., only integer unit goes through memory stage). Observe the following
lengths of execution stage for different FUs.
Q2: (1 point) Execute the following assembly code on a MIPS with a scoreboard and complete the
table. Observe the following lengths for execution stage.
There are 2 MUL units, 1 FP DIV unit, 1 FP ADD unit, and 1 INT unit. L.D/S.D will be executed on INT
unit.
Q4 (1.5 points): Complete the following table for two iterations of a loop using Tomasulo’s algorithm.
Assume that there is no inter-loop dependence of instructions and we can do speculative execution
with ROB. Register all stalls in the comments column. Assume we have infinite no. of reservation
stations available with us. Observe the following lengths for execution stage.