[理工] 計組 data dependency

看板Grad-ProbAsk作者 (codown)時間11年前 (2012/11/17 17:12), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
1.有三種RAW,WAR,WAW RAW(true dependency): it arises when the next instruction tries to read a source before the previous instruction writes to it. so, the next instruction gets the old value incorrectly. WAR:arises when the next instruction writes to a destination before the previous instruction reads it. in the case, the previous instruction gets a new value incorrectly. WAW:it is situation when the next instruction tries to write to a destination done in the wrong order. 這是老師給的英文答案,請問我該如何用中文把它表達出來!? 2.WAW是否是output dependency,WAR是anti dependency?? 都可以用register renaming去解決?? 那什麼又是name dependency呢?? 3.Given four instruction, how many unique comparisons(between register sources and destinations) are necessary to find all of the RAW,WAR,and WAW dependences. Answer for the case of four instructions, and then derive a general equation for N instructions. Assume that all instructions have one register destination and two register sources. ANS: For four instructions, te number of unique comparisions: (2(3)+2(2))+(2(3)+2(2)+2(1))+(3+2+1)=30 這題我看不懂題目在問什麼 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.43.62.183
文章代碼(AID): #1GfrJrrp (Grad-ProbAsk)
文章代碼(AID): #1GfrJrrp (Grad-ProbAsk)