Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图9.11 PC时钟周期问题 #25

Closed
ruxiliang opened this issue Dec 21, 2021 · 1 comment
Closed

图9.11 PC时钟周期问题 #25

ruxiliang opened this issue Dec 21, 2021 · 1 comment

Comments

@ruxiliang
Copy link

image

如上图,在第六个时钟周期的时候,此时刚好等完I0指令写回寄存器,I1指令解除阻塞,R1端正式译码从寄存器堆中把数据读出来,然后I2取出地址。

问题在于,在第七个时钟周期的时候,I2和I3也存在RAW的依赖,所以I2指令也要阻塞。可此时I2的PC已经取出,第七个时钟周期按教材讲授以及图9.10均可发现第七个时钟周期,I3在执行PC指令,而9.11却显示第七个时钟周期是I2在执行PC,请问是不是图画错了?

@foxsen
Copy link
Owner

foxsen commented Dec 25, 2021

确实是图错了,应该是I3

@foxsen foxsen closed this as completed in e538149 Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants