依赖类型 - 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 R4Am 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更多推荐
发布评论