計算機組織與結構›Ch5 管線化(Pipeline)
第 18 題/共 58 題
◀ CC 18/58
18. Pipeline、Datapath、Load-Use Hazard
#CC-05-018中PipelineDatapathLoad-Use Hazard
題組題幹(本題:第32題,共 4 小題)點擊展開

Consider the execution of the following code on a 5-stage pipelined processor, shown in the Figure below. Note that the processor includes both a hazard detection unit and a forwarding unit for data hazard, though these components are not shown in the figure. Assume the code sequence starts execution at clock cycle 1. Please answer the following questions.

ld  x31, 32(x5)
sub x30, x31, x5
ld  x31, 20(x30)
add x29, x29, x30
or  x5, x5, x30

What instruction is in the MEM stage at clock cycle 5?

題目附圖
📄 交大114
跳轉到第題
▤完整推導請見《WH 資工筆記 · 計算機組織與結構》Ch5 管線化(Pipeline)
本章題號 · 1–20 / 58