From e163a235838d2f520f465b5768ddaa154ad99ab9 Mon Sep 17 00:00:00 2001 From: Howard Mao Date: Fri, 1 Jul 2016 16:24:48 -0700 Subject: [PATCH] fix another bug in Widener --- uncore/src/main/scala/converters/Tilelink.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uncore/src/main/scala/converters/Tilelink.scala b/uncore/src/main/scala/converters/Tilelink.scala index 3da4b07f..6605ab63 100644 --- a/uncore/src/main/scala/converters/Tilelink.scala +++ b/uncore/src/main/scala/converters/Tilelink.scala @@ -205,6 +205,7 @@ class TileLinkIOWidener(innerTLId: String, outerTLId: String) } val iacq = io.in.acquire.bits + val oacq = io.out.acquire.bits val ognt = io.out.grant.bits val ignt = io.in.grant.bits @@ -221,7 +222,7 @@ class TileLinkIOWidener(innerTLId: String, outerTLId: String) val put_data = Reg(Vec(factor, UInt(width = innerDataBits))) val put_wmask = Reg(Vec(factor, UInt(width = innerWriteMaskBits))) val put_allocate = Reg(Bool()) - val (put_beat, put_done) = Counter(io.out.acquire.fire() && iacq.hasMultibeatData(), outerDataBeats) + val (put_beat, put_done) = Counter(io.out.acquire.fire() && oacq.hasMultibeatData(), outerDataBeats) val (recv_idx, recv_done) = Counter(io.in.acquire.fire() && iacq.hasMultibeatData(), factor) val in_addr = iacq.full_addr()