1
0

Queue: silence some warnings

This commit is contained in:
Wesley W. Terpstra 2017-11-13 17:32:54 -08:00
parent 147fad6387
commit 7cfb69e2d5
2 changed files with 3 additions and 3 deletions

View File

@ -40,9 +40,9 @@ class AXI4Deinterleaver(maxReadBytes: Int)(implicit p: Parameters) extends LazyM
val qs = Seq.tabulate(endId) { i =>
val depth = edgeOut.master.masters.find(_.id.contains(i)).flatMap(_.maxFlight).getOrElse(0)
if (depth > 0) {
Module(new Queue(out.r.bits, beats)).io
Module(new Queue(out.r.bits.cloneType, beats)).io
} else {
Wire(new QueueIO(out.r.bits, beats))
Wire(new QueueIO(out.r.bits.cloneType, beats))
}
}

View File

@ -99,7 +99,7 @@ class DCacheModule(outer: DCache) extends HellaCacheModule(outer) {
val (tl_out_c, release_queue_empty) =
if (cacheParams.acquireBeforeRelease) {
val q = Module(new Queue(tl_out.c.bits, cacheDataBeats, flow = true))
val q = Module(new Queue(tl_out.c.bits.cloneType, cacheDataBeats, flow = true))
tl_out.c <> q.io.deq
(q.io.enq, q.io.count === 0)
} else {