RAW WAW WAR Tomasulo方法消除冲突

Tomasulo方法用于解决CPU流水线中的数据相关性问题,如RAW、WAW和WAR冲突。RAW冲突通过数据转发克服,WAW冲突通过写预约处理,而WAR冲突则采用寄存器换名策略确保正确性。通过这些技术,Tomasulo方法能有效提升处理器效率。
摘要由CSDN通过智能技术生成

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值