From 09afbbafdb7df683b3700a3d374914b713433402 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Thu, 8 Dec 2016 10:45:45 -0800 Subject: [PATCH] ahb: weaken RegisterRouter assertion As written I think it could potentially fail, but what I actually care about is something weaker that should be true. Assert: nothing lost. --- src/main/scala/uncore/ahb/RegisterRouter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/uncore/ahb/RegisterRouter.scala b/src/main/scala/uncore/ahb/RegisterRouter.scala index 204830f9..88528bf4 100644 --- a/src/main/scala/uncore/ahb/RegisterRouter.scala +++ b/src/main/scala/uncore/ahb/RegisterRouter.scala @@ -52,7 +52,7 @@ class AHBRegisterNode(address: AddressSet, concurrency: Int = 0, beatBytes: Int val request = ahb.htrans === AHBParameters.TRANS_NONSEQ || ahb.htrans === AHBParameters.TRANS_SEQ when (ahb.hready && ahb.hsel && request) { - assert (!d_phase || in.ready) + assert (!in.valid || in.ready) d_phase := Bool(true) d_taken := Bool(false) d_read := !ahb.hwrite