[理工] 计组 99 100台大电机

楼主: ken52011219 (呱)   2016-11-24 09:43:02
大家好 ,手边有两题有点疑问
台大电机 100
(10)Forwarding is a common technique th eliminate data hazard occuring among
pipelining instruction.
  However,not all data hazard can be eliminate by forwarding.
Support on a particular machine,if an instruction following a load instr
-uction depends on the result of the load instruction,then a data hazard has
occured , and pipeline is stalled for one cycle
Which of following statements are not correct?
(a) In addition to data hazard,there can be control hazard in this
situation because we cannot determine the proper data to load
in the MEM pipeline stage.
应改为 ID pipeline stage
(b) Assume the percentage of load instruction is 20% in a program
, and half the time the instruction following a load needs
the result of the load instruction.
Then , the performance degradtion due to the data hazard is 1.1
1 + 0.2* (1/2)
Performance = ────── = 1.1
1
performance degradtion due to the data hazard = 1.1 - 1 = 0.1
(e) All of the above are correct.
Ans: a,b,e
台大电机 99
Which of the following statement are true ?
(a) If the data requested by a load instruction has not yet become
availble when it is requested , the load-use data hazard occur.
when its next and dependency instruction is requested
(b) Data hazard may be resolved with bypassing technique which
retrieve the hitting data element from internal buffers
rather than waitting for it to arrive from external memory
hitting 应改为 missing
(c) If the proper instruction cannot execute in proper clock cycle
because the instruction that was fetched is not that is needed
, the data hazard occurs .
control hazard
作者: gary19941208   2016-11-24 10:45:00
99(a)load-use是指在load后面的指令所需资源还没好不是load所需资源还没好99(c)题目叙述应该是control hazard99(b)不太确定,不过是从pipeline register取得资料不知道题目的internal buffer是指什么100年b 因为是问degradation,所以要扣掉原本的100(b)应该说重点是due to data hazard
作者: aa06697 (todo se andarà)   2016-11-24 12:12:00
100 答案是abe e选项是选项全对?怎么怪怪的0.0
作者: gary19941208   2016-11-24 18:10:00
不过internal buffer如果是指pipeline register,那b选项不就是正确吗?红字那段的原文是课本写的吗
作者: k2shouai (coding....)   2016-11-24 22:28:00
100那题是问那些有错,所以要选e。那年题目选项好几题都这样99b hitting要改missing by张凡课本,internal buffer是指pipeline register 应该没错,张凡有题中央100的解答有这写法。

Links booklink

Contact Us: admin [ a t ] ucptt.com