From cbedb924fda2d386cc9344e4d48c00804b3394af Mon Sep 17 00:00:00 2001 From: Rowan Goemans Date: Fri, 4 Oct 2024 02:01:45 +0200 Subject: [PATCH] timing_log: Handle potentially missing net when reporting crit path --- 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) {