Merge pull request #336 from The-OpenROAD-Project-staging/add-difference-found

Add GHA to check for differences found in .ok files
This commit is contained in:
Matt Liberty 2026-04-06 05:19:01 +00:00 committed by GitHub
commit f8bf0fd0e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,20 @@
name: Check that OK files are up to date
on:
pull_request:
jobs:
No-Diffs-In-Ok-Files:
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: Check out repository code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Check ok files
run: |
set +e
grep --include="*.ok" -Rn "Differences found "
if [[ "$?" == "0" ]]; then
exit 1
fi

View File

@ -64,7 +64,6 @@ Path Type: min
No paths found.
Warning 168: util_log_redirect.tcl line 1, unknown field nets.
Startpoint: r3 (rising edge-triggered flip-flop clocked by clk)
Endpoint: out (output port clocked by clk)
Path Group: clk
@ -76,6 +75,7 @@ Fanout Cap Slew Delay Time Description
0.00 0.00 clock network delay (ideal)
0.00 0.00 0.00 ^ r3/CLK (DFFHQx4_ASAP7_75t_R)
1 0.00 0.01 0.04 0.04 ^ r3/Q (DFFHQx4_ASAP7_75t_R)
out (net)
0.00 0.00 0.04 ^ out (out)
0.04 data arrival time

View File

@ -30,7 +30,7 @@ log_begin $log_file1
report_checks
report_checks -path_delay min
report_checks -from [get_ports in1] -to [get_ports out]
report_checks -fields {slew cap input_pins nets fanout}
report_checks -fields {slew cap input_pins net fanout}
report_units
log_end