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

分支预测错误情况下的difftest调用 #14

Open
wangpengabc opened this issue Aug 16, 2021 · 1 comment
Open

分支预测错误情况下的difftest调用 #14

wangpengabc opened this issue Aug 16, 2021 · 1 comment

Comments

@wangpengabc
Copy link

遇到分支预测错误的情况,需要flush掉流水线,如何暂停difftest的指令提交,等到新的流水指令到来的时候再继续提交指令,以及difftest调用NEMU继续执行

@wangpengabc
Copy link
Author

已经找到解决办法,只需要将提交指令那一级流水的valid 位作为DifftestInstrCommit Bundle中的valid位的输入即可:

difftest.io.valid     := RegNext(io.in.valid)
difftest.io.pc        := RegNext(io.in.bits.mem_wb_memu_data.wb_commit_difftest.pc)
  difftest.io.instr     := RegNext(io.in.bits.mem_wb_memu_data.wb_commit_difftest.instr)

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

1 participant