From fe2e8ce4c90dace627eaa6005316897dda5c980f Mon Sep 17 00:00:00 2001 From: Rakanic Date: Sat, 13 Jun 2026 19:44:25 -0700 Subject: [PATCH] fix zext srcId --- src/main/scala/serdes/SourceAdjuster.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/serdes/SourceAdjuster.scala b/src/main/scala/serdes/SourceAdjuster.scala index 79b6b847..65d800df 100644 --- a/src/main/scala/serdes/SourceAdjuster.scala +++ b/src/main/scala/serdes/SourceAdjuster.scala @@ -41,13 +41,13 @@ class TLSourceAdjuster(maxClients: Int, maxInFlightPerClient: Int)(implicit p: P def incrementId(inId: UInt) = { val client_oh = edgeIn.client.masters.map(_.sourceId.contains(inId)) val offset = Mux1H(client_oh, idOffsets.map(_.S)) - (inId.asSInt + offset).asUInt + (inId.zext + offset).asUInt } def decrementId(outId: UInt) = { val client_oh = UIntToOH(outId >> log2Ceil(maxInFlightPerClient)) val offset = Mux1H(client_oh, idOffsets.map(_.S)) - (outId.asSInt - offset).asUInt + (outId.zext - offset).asUInt }