Skip to content

Commit

Permalink
timing_log: Handle potentially missing net when reporting crit path (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanG077 authored Oct 4, 2024
1 parent 854549a commit 0e5b134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/kernel/timing_log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0e5b134

Please sign in to comment.