From 5467434675b40535f65deef20a0d2a77e9a8cf65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Fri, 13 Mar 2026 08:43:07 +0100 Subject: [PATCH 1/2] retire deltaDebug.py references, replace with whittle.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note: test_delta_debug.sh must also be pruned from Jenkins test files if referenced there. No such references were found currently. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Øyvind Harboe --- docs/user/FlowVariables.md | 2 +- flow/scripts/variables.yaml | 4 ++-- flow/test/test_delta_debug.sh | 27 --------------------------- flow/test/test_outoftree.sh | 2 +- 4 files changed, 4 insertions(+), 31 deletions(-) delete mode 100755 flow/test/test_delta_debug.sh diff --git a/docs/user/FlowVariables.md b/docs/user/FlowVariables.md index e90aee5375..10042720e1 100644 --- a/docs/user/FlowVariables.md +++ b/docs/user/FlowVariables.md @@ -234,7 +234,7 @@ configuration file. | REMOVE_CELLS_FOR_LEC| String patterns directly passed to write_verilog -remove_cells <> for lec checks.| | | REPAIR_PDN_VIA_LAYER| Remove power grid vias which generate DRC violations after detailed routing.| | | REPORT_CLOCK_SKEW| Report clock skew as part of reporting metrics, starting at CTS, before which there is no clock skew. This metric can be quite time-consuming, so it can be useful to disable.| 1| -| ROUTING_LAYER_ADJUSTMENT| Adjusts routing layer capacities to manage congestion and improve detailed routing. High values ease detailed routing but risk excessive detours and long global routing times, while low values reduce global routing failure but can complicate detailed routing. The global routing running time normally reduces dramatically (entirely design specific, but going from hours to minutes has been observed) when the value is low (such as 0.10). Sometimes, global routing will succeed with lower values and fail with higher values. Exploring results with different values can help shed light on the problem. Start with a too low value, such as 0.10, and bisect to value that works by doing multiple global routing runs. As a last resort, `make global_route_issue` and using the tools/OpenROAD/etc/deltaDebug.py can be useful to debug global routing errors. If there is something specific that is impossible to route, such as a clock line over a macro, global routing will terminate with DRC errors routes that could have been routed were it not for the specific impossible routes. deltaDebug.py should weed out the possible routes and leave a minimal failing case that pinpoints the problem.| 0.5| +| ROUTING_LAYER_ADJUSTMENT| Adjusts routing layer capacities to manage congestion and improve detailed routing. High values ease detailed routing but risk excessive detours and long global routing times, while low values reduce global routing failure but can complicate detailed routing. The global routing running time normally reduces dramatically (entirely design specific, but going from hours to minutes has been observed) when the value is low (such as 0.10). Sometimes, global routing will succeed with lower values and fail with higher values. Exploring results with different values can help shed light on the problem. Start with a too low value, such as 0.10, and bisect to value that works by doing multiple global routing runs. As a last resort, `make global_route_issue` and using the tools/OpenROAD/etc/whittle.py can be useful to debug global routing errors. If there is something specific that is impossible to route, such as a clock line over a macro, global routing will terminate with DRC errors routes that could have been routed were it not for the specific impossible routes. whittle.py should weed out the possible routes and leave a minimal failing case that pinpoints the problem.| 0.5| | RTLMP_AREA_WT| Weight for the area of the current floorplan.| 0.1| | RTLMP_ARGS| Overrides all other RTL macro placer arguments.| | | RTLMP_BOUNDARY_WT| Weight for the boundary or how far the hard macro clusters are from boundaries.| 50.0| diff --git a/flow/scripts/variables.yaml b/flow/scripts/variables.yaml index d2018d5baf..f9943223de 100644 --- a/flow/scripts/variables.yaml +++ b/flow/scripts/variables.yaml @@ -52,12 +52,12 @@ ROUTING_LAYER_ADJUSTMENT: a too low value, such as 0.10, and bisect to value that works by doing multiple global routing runs. As a last resort, `make global_route_issue` and using - the tools/OpenROAD/etc/deltaDebug.py can be useful to debug + the tools/OpenROAD/etc/whittle.py can be useful to debug global routing errors. If there is something specific that is impossible to route, such as a clock line over a macro, global routing will terminate with DRC errors routes that could have been routed were it not for the specific impossible routes. - deltaDebug.py should weed out the possible routes and leave + whittle.py should weed out the possible routes and leave a minimal failing case that pinpoints the problem. stages: - floorplan diff --git a/flow/test/test_delta_debug.sh b/flow/test/test_delta_debug.sh deleted file mode 100755 index 59180cf8b8..0000000000 --- a/flow/test/test_delta_debug.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash -# -# deltaDebug.py integration smoke-test, run from ORFS/flow folder. -# -# Exit with error if anything is amiss, including evaluation of -# variable names such as $(false), unused variables, etc. -set -ue -o pipefail - -cd "$(dirname "$0")/.." -. ../env.sh - -echo "Test deltaDebug.py with a make invocation" -make DESIGN_CONFIG=designs/asap7/gcd/config.mk clean_all floorplan -openroad -exit -python ../tools/OpenROAD/etc/deltaDebug.py --persistence 2 --use_stdout --error_string " 100 | " --base_db_path results/asap7/gcd/base/2_floorplan.odb --step "make DESIGN_CONFIG=designs/asap7/gcd/config.mk do-3_1_place_gp_skip_io" - -echo "Test deltaDebug.py with a make issue" -testname=uart -make DESIGN_CONFIG=designs/asap7/$testname/config.mk place -make DESIGN_CONFIG=designs/asap7/$testname/config.mk global_place_issue -latest_file=$(ls -t global_place_${testname}_asap7_base*.tar.gz | head -n1) -echo "Testing $latest_file" -rm -rf results/delta-debug/ -mkdir -p results/delta-debug/ -cd results/delta-debug/ -tar --strip-components=1 -xzf ../../$latest_file -sed -i 's/openroad -no_init/openroad -exit -no_init/g' run-me-$testname-asap7-base.sh -openroad -exit -python ../../../tools/OpenROAD/etc/deltaDebug.py --persistence 3 --use_stdout --error_string " 100 | " --base_db_path results/asap7/$testname/base/3_2_place_iop.odb --step ./run-me-$testname-asap7-base.sh --multiplier 2 diff --git a/flow/test/test_outoftree.sh b/flow/test/test_outoftree.sh index 5474b3012b..884873470f 100755 --- a/flow/test/test_outoftree.sh +++ b/flow/test/test_outoftree.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # -# deltaDebug.py integration smoke-test, run from ORFS/flow folder. +# Out of tree integration smoke-test, run from ORFS/flow folder. # # Exit with error if anything is amiss, including evaluation of # variable names such as $(false), unused variables, etc. From 861a261b9da1e4f0d5f479f401d7c4334d17e15e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Mon, 16 Mar 2026 16:49:58 +0100 Subject: [PATCH 2/2] deltaDebug: Jenkins CI cleanup fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- flow/test/test_delta_debug.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 flow/test/test_delta_debug.sh diff --git a/flow/test/test_delta_debug.sh b/flow/test/test_delta_debug.sh new file mode 100755 index 0000000000..f8c1d2f99e --- /dev/null +++ b/flow/test/test_delta_debug.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# +# Delete me when this file is no longer invoked from Jenkins CI +