From 091d69385e0740693556e2a4b3c0633e615205eb Mon Sep 17 00:00:00 2001 From: James Cherry Date: Mon, 6 Oct 2025 08:34:44 -0700 Subject: [PATCH] CheckCrpr::findCrpr resolves orfs1253 Signed-off-by: James Cherry --- search/Crpr.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/search/Crpr.cc b/search/Crpr.cc index 46b5917f..5420f720 100644 --- a/search/Crpr.cc +++ b/search/Crpr.cc @@ -221,18 +221,21 @@ CheckCrpr::findCrpr(const Path *src_clk_path, int level_diff = src_level - tgt_level; if (level_diff >= 0) { src_clk_path2 = src_clk_path2->prevPath(); - if (src_clk_path2 == nullptr) + if (src_clk_path2 == nullptr + || src_clk_path2->isNull()) break; src_level = src_clk_path2->vertex(this)->level(); } if (level_diff <= 0) { tgt_clk_path2 = tgt_clk_path2->prevPath(); - if (tgt_clk_path2 == nullptr) + if (tgt_clk_path2 == nullptr + || tgt_clk_path2->isNull()) break; tgt_level = tgt_clk_path2->vertex(this)->level(); } } - if (src_clk_path2 && tgt_clk_path2 + if (src_clk_path2 && !src_clk_path2->isNull() + && tgt_clk_path2 && !tgt_clk_path2->isNull() && (src_clk_path2->transition(this) == tgt_clk_path2->transition(this) || same_pin)) { debugPrint(debug_, "crpr", 2, "crpr pin %s",