timing_log: Handle potentially missing net when reporting crit path (#1381)

This commit is contained in:
Rowan Goemans 2024-10-04 08:07:55 +02:00 committed by GitHub
parent 854549a5ab
commit 0e5b1348e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {