問題詳情

2. (6%) For the code sequence below, assume the two bne instructions are predicted as taken, but actuallythey are not taken. How many cycles does it take to complete the execution of the code by using the twoCPUs below, respectively? For each CPU, please also identify which cycle(s) will become bubble (i.e.,stall cycle) when executes the code (Note: the first instruction: "Iw $tO, $s1, $s2" starts from cycle 1). 

Express your answer as the following table:


【題組】(1) The pipelined CPU for which assume the forwarding mechanism has been designed and the branchoutcome is determined at MEM stage.

參考答案