From d746549186d3e9c9be77e7dfff3f0c0b778de9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Thu, 2 Apr 2026 06:09:59 +0200 Subject: [PATCH 1/3] fix: separate EQUIVALENCE_CHECK from RUN_EQY to avoid requiring eqy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EQUIVALENCE_CHECK now only controls writing equivalence check files. The new RUN_EQY variable (default 0) gates actually executing the eqy tool, so builds don't fail when eqy is not installed. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Øyvind Harboe --- docs/user/FlowVariables.md | 4 +++- flow/scripts/cts.tcl | 2 +- flow/scripts/variables.yaml | 11 +++++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/user/FlowVariables.md b/docs/user/FlowVariables.md index b8aa8f65e1..c762393d7c 100644 --- a/docs/user/FlowVariables.md +++ b/docs/user/FlowVariables.md @@ -137,7 +137,7 @@ configuration file. | DPO_MAX_DISPLACEMENT| Specifies how far an instance can be moved when optimizing.| 5 1| | EARLY_SIZING_CAP_RATIO| Ratio between the input pin capacitance and the output pin load during initial gate sizing.| | | ENABLE_DPO| Enable detail placement with improve_placement feature.| 1| -| EQUIVALENCE_CHECK| Enable running equivalence checks to verify logical correctness of repair_timing.| 0| +| EQUIVALENCE_CHECK| Enable writing equivalence check files to verify logical correctness of repair_timing. Set RUN_EQY to actually run the eqy tool.| 0| | FASTROUTE_TCL| Specifies a Tcl script with commands to run before FastRoute.| | | FILL_CELLS| Fill cells are used to fill empty sites. If not set or empty, fill cell insertion is skipped.| | | FILL_CONFIG| JSON rule file for metal fill during chip finishing.| | @@ -253,6 +253,7 @@ configuration file. | RTLMP_RPT_DIR| Path to the directory where reports are saved.| | | RTLMP_WIRELENGTH_WT| Weight for half-perimiter wirelength.| 100.0| | RULES_JSON| json files with the metrics baseline regression rules. In the ORFS Makefile, this defaults to $DESIGN_DIR/rules-base.json, but ORFS does not mandate the users source directory layout and this can be placed elsewhere when the user sets up an ORFS config.mk or from bazel-orfs.| | +| RUN_EQY| Actually run the eqy equivalence checking tool. Requires EQUIVALENCE_CHECK to be enabled and eqy to be installed.| 0| | RUN_LOG_NAME_STEM| Stem of the log file name, the log file will be named `$(LOG_DIR)/$(RUN_LOG_NAME_STEM).log`.| run| | RUN_SCRIPT| Path to script to run from `make run`, python or tcl script detected by .py or .tcl extension.| | | SC_LEF| Path to technology standard cell LEF file.| | @@ -489,6 +490,7 @@ configuration file. - [PRE_CTS_TCL](#PRE_CTS_TCL) - [REMOVE_CELLS_FOR_EQY](#REMOVE_CELLS_FOR_EQY) - [REPORT_CLOCK_SKEW](#REPORT_CLOCK_SKEW) +- [RUN_EQY](#RUN_EQY) - [SETUP_REPAIR_SEQUENCE](#SETUP_REPAIR_SEQUENCE) - [SETUP_SLACK_MARGIN](#SETUP_SLACK_MARGIN) - [SKIP_CRIT_VT_SWAP](#SKIP_CRIT_VT_SWAP) diff --git a/flow/scripts/cts.tcl b/flow/scripts/cts.tcl index 05f65e8958..1a912c4cf8 100644 --- a/flow/scripts/cts.tcl +++ b/flow/scripts/cts.tcl @@ -68,7 +68,7 @@ if { !$::env(SKIP_CTS_REPAIR_TIMING) } { repair_timing_helper - if { $::env(EQUIVALENCE_CHECK) } { + if { $::env(EQUIVALENCE_CHECK) && $::env(RUN_EQY) } { run_equivalence_test } if { $::env(LEC_CHECK) } { diff --git a/flow/scripts/variables.yaml b/flow/scripts/variables.yaml index dcfe9d9a2a..a26a554e84 100644 --- a/flow/scripts/variables.yaml +++ b/flow/scripts/variables.yaml @@ -86,8 +86,15 @@ DETAILED_METRICS: - grt EQUIVALENCE_CHECK: description: > - Enable running equivalence checks to verify logical correctness of - repair_timing. + Enable writing equivalence check files to verify logical correctness of + repair_timing. Set RUN_EQY to actually run the eqy tool. + default: 0 + stages: + - cts +RUN_EQY: + description: > + Actually run the eqy equivalence checking tool. Requires EQUIVALENCE_CHECK + to be enabled and eqy to be installed. default: 0 stages: - cts From 22a710418d02cda94edd7be3e2e5737f27a9d63e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Mon, 6 Apr 2026 09:02:22 +0200 Subject: [PATCH 2/3] openroad: bump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- tools/OpenROAD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/OpenROAD b/tools/OpenROAD index cef24f8894..ee850373e4 160000 --- a/tools/OpenROAD +++ b/tools/OpenROAD @@ -1 +1 @@ -Subproject commit cef24f88945be039f5d92864cea18551bcacd479 +Subproject commit ee850373e4bc19485ea8bec0839ed64c4aa83fc8 From db4318541ab992335d1254325a0e7fca47a205cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Mon, 6 Apr 2026 09:05:49 +0200 Subject: [PATCH 3/3] variables.mk: default RUN_EQY=1 when eqy is available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-detect the eqy tool via `command -v` and set RUN_EQY ?= 1 so equivalence checking runs automatically when the tool is installed. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Øyvind Harboe --- docs/user/FlowVariables.md | 2 +- flow/scripts/variables.mk | 4 ++++ flow/scripts/variables.yaml | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/user/FlowVariables.md b/docs/user/FlowVariables.md index c762393d7c..5d6652ba2e 100644 --- a/docs/user/FlowVariables.md +++ b/docs/user/FlowVariables.md @@ -253,7 +253,7 @@ configuration file. | RTLMP_RPT_DIR| Path to the directory where reports are saved.| | | RTLMP_WIRELENGTH_WT| Weight for half-perimiter wirelength.| 100.0| | RULES_JSON| json files with the metrics baseline regression rules. In the ORFS Makefile, this defaults to $DESIGN_DIR/rules-base.json, but ORFS does not mandate the users source directory layout and this can be placed elsewhere when the user sets up an ORFS config.mk or from bazel-orfs.| | -| RUN_EQY| Actually run the eqy equivalence checking tool. Requires EQUIVALENCE_CHECK to be enabled and eqy to be installed.| 0| +| RUN_EQY| Actually run the eqy equivalence checking tool. Requires EQUIVALENCE_CHECK to be enabled and eqy to be installed. Defaults to 1 when eqy is found in PATH.| | | RUN_LOG_NAME_STEM| Stem of the log file name, the log file will be named `$(LOG_DIR)/$(RUN_LOG_NAME_STEM).log`.| run| | RUN_SCRIPT| Path to script to run from `make run`, python or tcl script detected by .py or .tcl extension.| | | SC_LEF| Path to technology standard cell LEF file.| | diff --git a/flow/scripts/variables.mk b/flow/scripts/variables.mk index d6f0712079..e921ef16a3 100644 --- a/flow/scripts/variables.mk +++ b/flow/scripts/variables.mk @@ -132,6 +132,10 @@ ifneq ($(shell command -v stdbuf),) STDBUF_CMD ?= stdbuf -o L endif +ifneq ($(shell command -v eqy),) + export RUN_EQY ?= 1 +endif + #------------------------------------------------------------------------------- WRAPPED_LEFS = $(foreach lef,$(notdir $(WRAP_LEFS)),$(OBJECTS_DIR)/lef/$(lef:.lef=_mod.lef)) WRAPPED_LIBS = $(foreach lib,$(notdir $(WRAP_LIBS)),$(OBJECTS_DIR)/$(lib:.lib=_mod.lib)) diff --git a/flow/scripts/variables.yaml b/flow/scripts/variables.yaml index a26a554e84..a2478e11e7 100644 --- a/flow/scripts/variables.yaml +++ b/flow/scripts/variables.yaml @@ -94,8 +94,8 @@ EQUIVALENCE_CHECK: RUN_EQY: description: > Actually run the eqy equivalence checking tool. Requires EQUIVALENCE_CHECK - to be enabled and eqy to be installed. - default: 0 + to be enabled and eqy to be installed. Defaults to 1 when eqy is found + in PATH. stages: - cts CORE_UTILIZATION: