依赖类型

编程入门 行业动态 更新时间:2024-10-28 01:18:55
依赖类型 - MIPS /流水线(Dependency Types - MIPS/Pipelining)

我需要确定以下指令块中的依赖关系类型。 不幸的是,我正在使用的这本书非常不清楚如何解决这个问题。 这就是我提出的:

SW R16, -100(R6) --> RAW on R16 LW R4, 8(R16) --> WAR on R16 ADD R5, R4, R4 --> RAW on R4

我是在正确的轨道上吗? 第一条指令是否具有Read-After-Write依赖类型,即使它是管道中的第一条指令?

I need to determine the dependency types present in the following block of instructions. Unfortunately, the book I'm using is extremely unclear as to how to go about this. This is what I came up with:

SW R16, -100(R6) --> RAW on R16 LW R4, 8(R16) --> WAR on R16 ADD R5, R4, R4 --> RAW on R4

Am I on the right track? Can the first instruction have a Read-After-Write dependency type even though it is the first instruction in the pipe?

最满意答案

SW R16, -100(R6) --> possible RAW on R6 and/or R16 LW R4, 8(R16) --> none: R16 was read in the previous instruction, so it can be read safely here ADD R5, R4, R4 --> RAW on R4 SW R16, -100(R6) --> possible RAW on R6 and/or R16 LW R4, 8(R16) --> none: R16 was read in the previous instruction, so it can be read safely here ADD R5, R4, R4 --> RAW on R4

更多推荐

本文发布于:2023-07-31 08:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1341950.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:类型

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!