提交 043203e7 编写于 作者: J jinyue110

icacheMissQueue: fix resp valid when needflush bug

上级 b6f269e7
......@@ -3,7 +3,7 @@ NANOS_HOME ?= $(AM_HOME)/../nanos-lite
SINGLETEST = ALL=min3
B ?= 0
E ?= -1
E ?= 0
V ?= OFF
#V ?= OFF
EMU_ARGS = B=$(B) E=$(E) V=$(V)
......
......@@ -102,7 +102,6 @@ class IcacheMissEntry extends ICacheMissQueueModule
io.req.ready := state === s_idle
io.mem_acquire.valid := state === s_memReadReq
io.resp.valid := state === s_wait_resp
//flush register
val needFlush = RegInit(false.B)
......@@ -162,7 +161,8 @@ class IcacheMissEntry extends ICacheMissQueueModule
io.mem_acquire.bits.addr := req.addr
io.mem_acquire.bits.id := io.id
//resp to icache
io.resp.valid := (state === s_wait_resp) && !needFlush
XSDebug("[ICache MSHR %d] (req)valid:%d ready:%d req.addr:%x waymask:%b || Register: req:%x \n",io.id.asUInt,io.req.valid,io.req.ready,io.req.bits.addr,io.req.bits.waymask,req.asUInt)
XSDebug("[ICache MSHR %d] (Info)state:%d needFlush:%d\n",io.id.asUInt,state,needFlush)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册