提交 82f81b9a 编写于 作者: L Lingrui98

BPU: stage1 ready when flush

上级 35ec2d7f
......@@ -175,7 +175,7 @@ class BPUStage1 extends BPUStage {
when (io.flush || inFire) { predValid := true.B }
.elsewhen(outFire) { predValid := false.B }
.otherwise { predValid := predValid }
io.in.ready := !predValid || io.out.fire() && io.pred.fire()
io.in.ready := !predValid || io.out.fire() && io.pred.fire() || io.flush
io.out.valid := predValid
// ubtb is accessed with inLatch pc in s1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册