From 0e5b1348e6619caef48e0696ffc19075e615c907 Mon Sep 17 00:00:00 2001 From: Rowan Goemans Date: Fri, 4 Oct 2024 08:07:55 +0200 Subject: [PATCH] timing_log: Handle potentially missing net when reporting crit path (#1381) --- common/kernel/timing_log.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/kernel/timing_log.cc b/common/kernel/timing_log.cc index d0dd8986ba..8e6a3f3c0e 100644 --- a/common/kernel/timing_log.cc +++ b/common/kernel/timing_log.cc @@ -106,6 +106,10 @@ static void log_crit_paths(const Context *ctx, TimingResult &result) log_info(" Sink %s.%s\n", segment.to.first.c_str(ctx), segment.to.second.c_str(ctx)); + // CLK_TO_CLK has no net and CLK_SKEW might have a net + if (ctx->nets.count(segment.net) == 0) { + continue; + } const NetInfo *net = ctx->nets.at(segment.net).get(); if (ctx->verbose) {