Skip to content

Commit 2557da2

Browse files
committed
test: Use puts for inferred clock gator borrow failures
The inferred_clock_gator_time_borrow and inferred_clock_gator_time_borrow_covered regressions moved from PASSFAIL_TESTS to .ok golden comparison, so a thrown utl::error is no longer required to flag a failure. Replace the utl::error calls with puts, keeping the same message text. On failure the message is now emitted to stdout and caught by the golden .ok diff; the passing golden output is unchanged because these branches only fire when the borrow check fails. Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
1 parent dc4b0dc commit 2557da2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/rsz/test/inferred_clock_gator_time_borrow.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ estimate_parasitics -placement
2424

2525
proc extract_borrow { report_text } {
2626
if { ![regexp {actual time borrow[ ]+([0-9.]+)} $report_text -> borrow] } {
27-
utl::error RSZ 1000 "Missing actual time borrow in report_checks output."
27+
puts "Missing actual time borrow in report_checks output."
2828
}
2929
return $borrow
3030
}
@@ -51,7 +51,7 @@ set after_borrow [extract_borrow $after_report]
5151
puts [format "AFTER_BORROW %.4f" $after_borrow]
5252

5353
if { !($after_borrow < $before_borrow - 0.001) } {
54-
utl::error RSZ 1001 [format \
54+
puts [format \
5555
"repair_timing did not reduce latch borrow: before %.4f after %.4f" \
5656
$before_borrow $after_borrow]
5757
}

src/rsz/test/inferred_clock_gator_time_borrow_covered.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ estimate_parasitics -placement
2424

2525
proc extract_borrow { report_text } {
2626
if { ![regexp {actual time borrow[ ]+([0-9.]+)} $report_text -> borrow] } {
27-
utl::error RSZ 1009 "Missing actual time borrow in report_checks output."
27+
puts "Missing actual time borrow in report_checks output."
2828
}
2929
return $borrow
3030
}
@@ -51,7 +51,7 @@ set after_borrow [extract_borrow $after_report]
5151
puts [format "AFTER_BORROW %.4f" $after_borrow]
5252

5353
if { abs($after_borrow - $before_borrow) > 0.001 } {
54-
utl::error RSZ 1010 [format \
54+
puts [format \
5555
"repair_timing changed covered latch borrow: before %.4f after %.4f" \
5656
$before_borrow $after_borrow]
5757
}

0 commit comments

Comments
 (0)