|
4#

楼主 |
发表于 2020-8-21 10:40:29
|
只看该作者
本帖最后由 Doreen 于 2020-8-21 11:07 编辑
第四讲
1. 请问这里RAW 和WAR是不是 写反了?
答:这里没有写反呢,WAR就是第一条指令还没来得及读,该寄存器就被第二条指令写入了新值所导致的冒险。RAW是第一条指令还没来得及写,该寄存器就被第二条指令给读了,此时读的是寄存器旧值,而它本应该读取第一条指令写入的新值的。
2. 为啥经典流水线第五级没有流水线寄存器呢?
答:是的,经典五级流水线第五级没有流水线寄存器,而是直接在时序模块中。大家可以参阅David Patterson等人撰写的书籍《Computer Organization and Design RISC-V Edition》,里面正好有这样解释 “Notice that there is no pipeline register at the end of the writeback stage. All instructions must update some state in the processor—the register file, memory, or the PC—so a separate pipeline register is redundant to the state that is updated。”
3. 请问这里dret是什么?
答:dret 是调试造成的冲刷,dret 指令会触发处理器退出调试模式。
|
|