1
0

fix bug in ReorderQueue breaking TileLink Unwrapper

This commit is contained in:
Howard Mao 2015-10-22 15:51:40 -07:00
parent 4c2b0a9032
commit 6403f27fbe
2 changed files with 2 additions and 6 deletions

View File

@ -1295,11 +1295,6 @@ trait HasDataBeatCounters {
}
}
class ClientTileLinkIOUnwrapperInfo extends Bundle {
val voluntary = Bool()
val builtin = Bool()
}
class ClientTileLinkIOUnwrapper(implicit p: Parameters) extends TLModule()(p) {
val io = new Bundle {
val in = new ClientTileLinkIO().flip

View File

@ -131,7 +131,8 @@ class ReorderQueue[T <: Data](dType: T, tagWidth: Int, size: Int)
val roq_free = Reg(init = Vec.fill(size)(Bool(true)))
val roq_enq_addr = PriorityEncoder(roq_free)
val roq_matches = roq_tags.map(_ === io.deq.tag)
val roq_matches = roq_tags.zip(roq_free)
.map { case (tag, free) => tag === io.deq.tag && !free }
val roq_deq_addr = PriorityEncoder(roq_matches)
io.enq.ready := roq_free.reduce(_ || _)