提交 edc58999 编写于 作者: Z ZhangZifei

tlb: fix bug of waiting signal change logic:

上级 3f660157
......@@ -377,7 +377,7 @@ class TLB(Width: Int, isDtlb: Boolean) extends TlbModule with HasCSRConst{
val waiting = RegInit(false.B)
when (ptw.req.fire()) {
waiting := true.B
}.elsewhen (sfence.valid && ptw.resp.valid) {
}.elsewhen (sfence.valid || ptw.resp.valid) {
waiting := false.B
}
// ptw <> DontCare // TODO: need check it
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册