From ee0acc1d074c8334e582fb66af9fb7525af7ad8d Mon Sep 17 00:00:00 2001 From: Albert Ou Date: Mon, 23 May 2016 13:19:53 -0700 Subject: [PATCH] Fix BRAM assertion condition --- uncore/src/main/scala/bram.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncore/src/main/scala/bram.scala b/uncore/src/main/scala/bram.scala index 0176a6b6..f6dc7c74 100644 --- a/uncore/src/main/scala/bram.scala +++ b/uncore/src/main/scala/bram.scala @@ -38,7 +38,7 @@ class BRAMSlave(depth: Int)(implicit val p: Parameters) extends Module val rdata = bram.read(raddr, ren) val wdata = io.acquire.bits.data val wmask = io.acquire.bits.wmask() - assert(!io.acquire.valid || wmask === Fill(tlDataBytes, Bool(true)), + assert(!wen || (wmask === Fill(tlDataBytes, Bool(true))), "bram: subblock writes not supported") when (wen) { bram.write(s0_addr, wdata)