ShiftQueue: fix bug in !flow case
This commit is contained in:
parent
ed70b243bd
commit
3e3024c256
@ -26,7 +26,7 @@ class ShiftQueue[T <: Data](gen: T,
|
|||||||
val wdata = if (i == entries-1) io.enq.bits else Mux(valid(i+1), elts(i+1), io.enq.bits)
|
val wdata = if (i == entries-1) io.enq.bits else Mux(valid(i+1), elts(i+1), io.enq.bits)
|
||||||
val wen =
|
val wen =
|
||||||
Mux(io.deq.ready,
|
Mux(io.deq.ready,
|
||||||
paddedValid(i+1) || io.enq.fire() && valid(i),
|
paddedValid(i+1) || io.enq.fire() && (Bool(i == 0 && !flow) || valid(i)),
|
||||||
io.enq.fire() && paddedValid(i-1) && !valid(i))
|
io.enq.fire() && paddedValid(i-1) && !valid(i))
|
||||||
when (wen) { elts(i) := wdata }
|
when (wen) { elts(i) := wdata }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user