[理工] 計組 99 100台大電機

看板Grad-ProbAsk作者 (呱)時間9年前 (2016/11/24 09:43), 9年前編輯推噓4(4011)
留言15則, 3人參與, 最新討論串1/1
大家好 ,手邊有兩題有點疑問 台大電機 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 --   有一個香錦囊,是從一個神話般的守軍的血屍頂上剝下的。那一次我們部隊遭受從未 有過的頑強抵抗,我們犧牲了三個艦隊,一個裝甲師和無以數計小組推進的敢死排,才摧 毀了那處隘口的碉堡。但是竟然發現,使我們遭受如此慘烈傷亡的守軍,總數只有一人。   士兵們起鬨地在他胸前發現這枚香袋,大家都相信這是一枚具有神奇力量的護身符。 我們把他的頭顱砍斷,取下香袋,剝開,   裡面一張被血浸紅的宣紙竟用漢字娟娟秀秀四個整齊的楷書寫著-「盼君早歸。」 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.224.3.107 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1479951786.A.5F9.html 100 (a): ID ※ 編輯: ken52011219 (36.224.3.107), 11/24/2016 10:22:39

11/24 10:45, , 1F
99(a)load-use是指在load後面的指令所需資源還沒好
11/24 10:45, 1F

11/24 10:46, , 2F
不是load所需資源還沒好
11/24 10:46, 2F
了解 感謝

11/24 10:50, , 3F
99(c)題目敘述應該是control hazard
11/24 10:50, 3F
最大的敵人果然是看不懂題目QQ

11/24 10:52, , 4F
99(b)不太確定,不過是從pipeline register取得資料
11/24 10:52, 4F

11/24 10:53, , 5F
不知道題目的internal buffer是指什麼
11/24 10:53, 5F
隔段時間再看題目,有些想法 這裡的internal buffer 是否是指 pipeline register

11/24 10:32, , 6F
100年b 因為是問degradation,所以要扣掉原本的
11/24 10:32, 6F

11/24 11:34, , 7F
100(b)應該說重點是due to data hazard
11/24 11:34, 7F
網路、紅算盤貌似沒有看到有degradation的介紹 , 所以大致上把它分量囉?? 只不過這選項感覺就講得不太清楚@@

11/24 12:12, , 8F
100 答案是abe e選項是選項全對?怎麼怪怪的0.0
11/24 12:12, 8F
XD.. 去年版本張凡的確寫 a,b,e 搜尋往年Prob-Ask版中,答案給 e 所以找到 a,b 錯就可以確定 e 應該是忘記刪吧 ※ 編輯: ken52011219 (36.224.3.107), 11/24/2016 12:34:38

11/24 18:10, , 9F
不過internal buffer如果是指pipeline register,
11/24 18:10, 9F

11/24 18:10, , 10F
那b選項不就是正確嗎?紅字那段的原文是課本寫的嗎
11/24 18:10, 10F
那是我翻譯的啦@@ 因為我把題目 external memory 跟 internal buffer 給對調了,看起來好像沒有錯(? ※ 編輯: ken52011219 (36.224.3.107), 11/24/2016 18:41:27

11/24 22:28, , 11F
100那題是問那些有錯,所以要選e。那年題目選項好幾題
11/24 22:28, 11F

11/24 22:28, , 12F
都這樣
11/24 22:28, 12F
對耶 , 才發現我打錯題目 感謝提醒 ※ 編輯: ken52011219 (36.224.3.107), 11/24/2016 22:35:22

11/25 00:47, , 13F
99b hitting要改missing by張凡課本,internal buffer是
11/25 00:47, 13F

11/25 00:47, , 14F
指pipeline register 應該沒錯,張凡有題中央100的解答
11/25 00:47, 14F

11/25 00:47, , 15F
有這寫法。
11/25 00:47, 15F
感謝解答! ※ 編輯: ken52011219 (36.224.3.107), 11/25/2016 10:04:19 ※ 編輯: ken52011219 (36.224.3.107), 11/26/2016 12:41:23
文章代碼(AID): #1ODaMgNv (Grad-ProbAsk)