From 48cb371d276928cc0feba9548d32273b2cb02736 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 12 Sep 2025 10:54:46 +0200 Subject: [PATCH] fix clock routing --- himbaechel/uarch/gatemate/route_clock.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/himbaechel/uarch/gatemate/route_clock.cc b/himbaechel/uarch/gatemate/route_clock.cc index 429bbcfc..96a18a1f 100644 --- a/himbaechel/uarch/gatemate/route_clock.cc +++ b/himbaechel/uarch/gatemate/route_clock.cc @@ -64,12 +64,12 @@ void GateMateImpl::route_clock() }; auto reserve = [&](WireId wire, NetInfo *net) { + for (auto pip : ctx->getPipsUphill(wire)) { + wire = ctx->getPipSrcWire(pip); + break; + } if (ctx->debug) { auto wire_name = "(uninitialized)"; - for (auto pip : ctx->getPipsUphill(wire)) { - wire = ctx->getPipSrcWire(pip); - break; - } if (wire != WireId()) wire_name = ctx->nameOfWire(wire); log_info(" reserving wire %s\n", wire_name);