提交 e4c56467 编写于 作者: J jinyue110

ICacheMIssQueue: add eccWrong signal from l1plus.

It may be report as exception
上级 95f310a8
......@@ -60,6 +60,7 @@ class IcacheMissReq extends ICacheBundle
class IcacheMissResp extends ICacheBundle
{
val data = UInt(blockBits.W)
val eccWrong = Bool()
val clientID = UInt(2.W)
}
......@@ -94,6 +95,7 @@ class IcacheMissEntry extends ICacheMissQueueModule
val readBeatCnt = Counter(refillCycles)
//val respDataReg = Reg(Vec(refillCycles,UInt(beatBits.W)))
val respDataReg = Reg(UInt(blockBits.W))
val eccWrongReg = RegInit(false.B)
//initial
io.resp.bits := DontCare
......@@ -129,6 +131,7 @@ class IcacheMissEntry extends ICacheMissQueueModule
is(s_memReadResp){
when (io.mem_grant.bits.id === io.id && io.mem_grant.fire()) {
respDataReg := io.mem_grant.bits.data
eccWrongReg := io.mem_grant.bits.eccWrong
state := Mux(needFlush || io.flush,s_wait_resp,s_write_back)
}
}
......@@ -142,6 +145,7 @@ class IcacheMissEntry extends ICacheMissQueueModule
is(s_wait_resp){
io.resp.bits.data := respDataReg.asUInt
io.resp.bits.eccWrong := eccWrongReg
io.resp.bits.clientID := req.clientID
when(io.resp.fire() || needFlush ){ state := s_idle }
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册