Skip to content

Commit db43185

Browse files
oharboeclaude
andcommitted
variables.mk: default RUN_EQY=1 when eqy is available
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) <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 22a7104 commit db43185

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

docs/user/FlowVariables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ configuration file.
253253
| <a name="RTLMP_RPT_DIR"></a>RTLMP_RPT_DIR| Path to the directory where reports are saved.| |
254254
| <a name="RTLMP_WIRELENGTH_WT"></a>RTLMP_WIRELENGTH_WT| Weight for half-perimiter wirelength.| 100.0|
255255
| <a name="RULES_JSON"></a>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.| |
256-
| <a name="RUN_EQY"></a>RUN_EQY| Actually run the eqy equivalence checking tool. Requires EQUIVALENCE_CHECK to be enabled and eqy to be installed.| 0|
256+
| <a name="RUN_EQY"></a>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.| |
257257
| <a name="RUN_LOG_NAME_STEM"></a>RUN_LOG_NAME_STEM| Stem of the log file name, the log file will be named `$(LOG_DIR)/$(RUN_LOG_NAME_STEM).log`.| run|
258258
| <a name="RUN_SCRIPT"></a>RUN_SCRIPT| Path to script to run from `make run`, python or tcl script detected by .py or .tcl extension.| |
259259
| <a name="SC_LEF"></a>SC_LEF| Path to technology standard cell LEF file.| |

flow/scripts/variables.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ ifneq ($(shell command -v stdbuf),)
132132
STDBUF_CMD ?= stdbuf -o L
133133
endif
134134

135+
ifneq ($(shell command -v eqy),)
136+
export RUN_EQY ?= 1
137+
endif
138+
135139
#-------------------------------------------------------------------------------
136140
WRAPPED_LEFS = $(foreach lef,$(notdir $(WRAP_LEFS)),$(OBJECTS_DIR)/lef/$(lef:.lef=_mod.lef))
137141
WRAPPED_LIBS = $(foreach lib,$(notdir $(WRAP_LIBS)),$(OBJECTS_DIR)/$(lib:.lib=_mod.lib))

flow/scripts/variables.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ EQUIVALENCE_CHECK:
9494
RUN_EQY:
9595
description: >
9696
Actually run the eqy equivalence checking tool. Requires EQUIVALENCE_CHECK
97-
to be enabled and eqy to be installed.
98-
default: 0
97+
to be enabled and eqy to be installed. Defaults to 1 when eqy is found
98+
in PATH.
9999
stages:
100100
- cts
101101
CORE_UTILIZATION:

0 commit comments

Comments
 (0)