CheckCrpr::findCrpr resolves orfs1253

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-10-06 08:34:44 -07:00
parent 9550c99f0c
commit 091d69385e
1 changed files with 6 additions and 3 deletions

View File

@ -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",