diff --git a/docs/user/FlowVariables.md b/docs/user/FlowVariables.md index f2ad1b7048..e03b1715fb 100644 --- a/docs/user/FlowVariables.md +++ b/docs/user/FlowVariables.md @@ -161,7 +161,7 @@ configuration file. | KLAYOUT_TECH_FILE| A mapping from LEF/DEF to GDS using the KLayout tool.| | | LATCH_MAP_FILE| Optional mapping file supplied to Yosys to map latches| | | LAYER_PARASITICS_FILE| Path to per layer parasitics file. Defaults to $(PLATFORM_DIR)/setRC.tcl.| | -| LEC_CHECK| Perform a formal equivalence check between before and after netlists.| 1| +| LEC_CHECK| This is primarily an ORFS CI regression testing feature and is default 0 for DESIGN_CONFIG pointing designs outside of the ORFS tree. Requires `KEPLER_FORMAL_EXE` to point to a built Kepler executable.| | | LIB_FILES| A Liberty file of the standard cell library with PVT characterization, input and output characteristics, timing and power definitions for each cell.| | | MACRO_BLOCKAGE_HALO| Distance beyond the edges of a macro that will also be covered by the blockage generated for that macro. Note that the default macro blockage halo comes from the largest of the specified MACRO_PLACE_HALO x or y values. This variable overrides that calculation.| | | MACRO_EXTENSION| Sets the number of GCells added to the blockages boundaries from macros.| | diff --git a/flow/scripts/variables.mk b/flow/scripts/variables.mk index 7300f9d8d6..085f9ab035 100644 --- a/flow/scripts/variables.mk +++ b/flow/scripts/variables.mk @@ -5,6 +5,13 @@ export DESIGN_NICKNAME?=$(DESIGN_NAME) +ifneq ($(findstring $(abspath $(FLOW_HOME)),$(abspath $(DESIGN_CONFIG))),) + export ORFS_TEST_SUITE_DESIGN := 1 +else + export ORFS_TEST_SUITE_DESIGN := 0 +endif +export LEC_CHECK ?= $(ORFS_TEST_SUITE_DESIGN) + #------------------------------------------------------------------------------- # Setup variables to point to other location for the following sub directory # - designs - default is under current directory diff --git a/flow/scripts/variables.yaml b/flow/scripts/variables.yaml index f64ca4dfca..027a01b68a 100644 --- a/flow/scripts/variables.yaml +++ b/flow/scripts/variables.yaml @@ -1297,8 +1297,10 @@ WRITE_ODB_AND_SDC_EACH_STAGE: default: 1 LEC_CHECK: description: > - Perform a formal equivalence check between before and after netlists. - default: 1 + This is primarily an ORFS CI regression testing feature and is default 0 + for DESIGN_CONFIG pointing designs outside of the ORFS tree. + + Requires `KEPLER_FORMAL_EXE` to point to a built Kepler executable. stages: - cts REMOVE_CELLS_FOR_LEC: