提交 4a2be901 编写于 作者: A Allen

ldu,stu,atomics: replay signal only valid

when dcahce misses and can not enter mshr.
上级 235debe5
...@@ -239,7 +239,7 @@ class AtomicsPipe extends DCacheModule ...@@ -239,7 +239,7 @@ class AtomicsPipe extends DCacheModule
// nemu use this to see whether lr sc counter is still valid // nemu use this to see whether lr sc counter is still valid
resp.bits.meta.id := lrsc_valid resp.bits.meta.id := lrsc_valid
resp.bits.miss := !s2_hit || s2_nack resp.bits.miss := !s2_hit || s2_nack
resp.bits.replay := !io.miss_req.fire() || s2_nack resp.bits.replay := resp.bits.miss && (!io.miss_req.fire() || s2_nack)
io.lsu.resp.valid := resp.valid io.lsu.resp.valid := resp.valid
io.lsu.resp.bits := resp.bits io.lsu.resp.bits := resp.bits
......
...@@ -181,7 +181,7 @@ class LoadPipe extends DCacheModule ...@@ -181,7 +181,7 @@ class LoadPipe extends DCacheModule
// upper level does not need to replay request // upper level does not need to replay request
// they can sit in load queue and wait for refill // they can sit in load queue and wait for refill
resp.bits.miss := !s2_hit || s2_nack resp.bits.miss := !s2_hit || s2_nack
resp.bits.replay := !io.miss_req.fire() || s2_nack resp.bits.replay := resp.bits.miss && (!io.miss_req.fire() || s2_nack)
io.lsu.resp.valid := resp.valid io.lsu.resp.valid := resp.valid
io.lsu.resp.bits := resp.bits io.lsu.resp.bits := resp.bits
......
...@@ -186,7 +186,7 @@ class StorePipe extends DCacheModule ...@@ -186,7 +186,7 @@ class StorePipe extends DCacheModule
resp.bits.data := DontCare resp.bits.data := DontCare
resp.bits.meta := s2_req.meta resp.bits.meta := s2_req.meta
resp.bits.miss := !s2_hit || s2_nack resp.bits.miss := !s2_hit || s2_nack
resp.bits.replay := !io.miss_req.fire() || s2_nack resp.bits.replay := resp.bits.miss && (!io.miss_req.fire() || s2_nack)
io.lsu.resp.valid := resp.valid io.lsu.resp.valid := resp.valid
io.lsu.resp.bits := resp.bits io.lsu.resp.bits := resp.bits
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册