阿摩線上測驗 登入

申論題資訊

試卷:106年 - 106 國立中山大學_碩士班招生考試_電機系(己組):計算機結構#108290
科目:中山◆電機◆計算機結構
年份:106年
排序:0

題組內容

[Problem 5] (20%) Use the following code fragment: 
Loop:62a2e9aa75ede.jpg
Assume the initial value of R3 is R2+100. Use the five-stage instruction pipeline ( IF, DEC, EXE, MEM, WB) and assume all memory accesses are one cycle operation. Furthermore, branches are resolved in MEM stage.

申論題內容

(b) (10%) Assuming the five-stage instruction pipeline with a single-cycle delayed branch and normal forwarding and bypassing hardware, schedule the instructions in the loop including the branch-delay slot. You may reorder instructions and modify the individual instruction operands, but do not undertake other loop transformations that change the number of op- code of instructions in the loop. Show a pipeline timing diagram and compute the number of cycles needed to execute the entire loop.