計算機組織與結構›Ch5 管線化(Pipeline)第 35 題/共 58 題
35. Branch Prediction、1-bit Predictor、2-bit Predictor
#CC-05-035中Branch Prediction1-bit Predictor2-bit Predictor
For the code sequence written in MIPS assembly, assume that the $s2, $t1 are initialized to 0x0, and 0x3, respectively. Which of following statements are correct for the execution of this code sequence?
Loop: addi $t2, $zero, 0x6
Loop2: addi $s2, $s2, 1
addi $t2, $t2, -1
bne $t2, $zero, Loop2 //branch1
addi $t1, $t1, -1
bne $t1, $zero, Loop //branch2
Done:
📄 交大111
▤完整推導請見《WH 資工筆記 · 計算機組織與結構》Ch5 管線化(Pipeline)