我刚刚触及pipeline
理论几个小时。也许这是一个简单的问题,但我真的需要你的帮助。我们为什么要将NPC存储在管道注册表中?
我知道我们应该存储mem[pc]
到IF/ID
流水线寄存器中读取阶段,我们将在下一阶段对其进行解码,还应该更新获取阶段,我们将通过该更新PC
下一个周期feteh下一条指令PC
,但我真的不明白为什么我们也应该把NPC存入管道注册表。
是Computer Organization and Design
衍生的解释,我不明白这一点。
This incremented address is also saved in the IF/ID pipeline register in case it is needed later for an instruction, such as beq