当前位置:   article > 正文

RAW WAW WAR Tomasulo方法消除冲突_waw冲突

waw冲突

A hazard is created whenever there is a dependence between instructions, and they are close enough that the overlap caused by pipelining would change the order of access to an operand.

Consider two instructions i and j, with i occurring before j. The possible data hazards are:

RAW (read after write) - j tries to read a source before i writes it, so j incorrectly gets the old value. This is the most common type of hazard and the kind that we use forwarding to overcome.数据相关

WAW (write after write) - j tries to write an operand before it is written by i. The writes end up being performed in the wrong order, leaving the value written by i rather than the value written by j in the destination.输出相关

WAR (write after read) - j tries to write a destination before it is read by i , so i incorrectly gets the new value.反相关

输出相关和反相关构成名相关。

RAW冲突,写操作预约,改寄存器状态表,使得操作数无法被读取。
WAW冲突,由于指令是按照顺序流出的,当有多条指令写同一个寄存器的时候&#x

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/281246
推荐阅读
相关标签
  

闽ICP备14008679号