[理工] 計組 data dependency
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
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 3 篇):