From fb363f2e4654ce955eb570d8d9e07a76c59d7b1d Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Thu, 5 Feb 2026 20:49:57 +0100 Subject: [PATCH 1/3] turn on LEC on asap7_jpeg asap7_uart sky130hd_gcd sky130hs_gcd Signed-off-by: Noam Cohen --- flow/designs/asap7/aes/config.mk | 2 ++ flow/designs/asap7/uart/config.mk | 1 + flow/designs/sky130hd/gcd/config.mk | 1 + flow/designs/sky130hs/gcd/config.mk | 1 + 4 files changed, 5 insertions(+) diff --git a/flow/designs/asap7/aes/config.mk b/flow/designs/asap7/aes/config.mk index a8cb544a32..88620e4d11 100644 --- a/flow/designs/asap7/aes/config.mk +++ b/flow/designs/asap7/aes/config.mk @@ -29,3 +29,5 @@ else ifeq ($(FLOW_VARIANT),combine) $(WORK_HOME)/results/$(PLATFORM)/$(DESIGN_NICKNAME)/blackbox/1_synth.v \ $(WORK_HOME)/results/$(PLATFORM)/$(DESIGN_NICKNAME)/blackbox/1_synth.v endif + +export LEC_CHECK = 1 diff --git a/flow/designs/asap7/uart/config.mk b/flow/designs/asap7/uart/config.mk index 4ff340d770..d1ebf060f0 100644 --- a/flow/designs/asap7/uart/config.mk +++ b/flow/designs/asap7/uart/config.mk @@ -18,3 +18,4 @@ export REMOVE_CELLS_FOR_EQY = TAPCELL* export SKIP_GATE_CLONING = 1 export VERILOG_TOP_PARAMS = DATA_WIDTH 8 export SYNTH_HDL_FRONTEND = slang +export LEC_CHECK = 1 diff --git a/flow/designs/sky130hd/gcd/config.mk b/flow/designs/sky130hd/gcd/config.mk index 9b725dcf0b..8db2fd2dcb 100644 --- a/flow/designs/sky130hd/gcd/config.mk +++ b/flow/designs/sky130hd/gcd/config.mk @@ -11,3 +11,4 @@ export CORE_UTILIZATION = 40 export TNS_END_PERCENT = 100 export EQUIVALENCE_CHECK ?= 1 export REMOVE_CELLS_FOR_EQY = sky130_fd_sc_hd__tapvpwrvgnd* +export LEC_CHECK = 1 diff --git a/flow/designs/sky130hs/gcd/config.mk b/flow/designs/sky130hs/gcd/config.mk index 51b0d87b38..4a5315eefa 100644 --- a/flow/designs/sky130hs/gcd/config.mk +++ b/flow/designs/sky130hs/gcd/config.mk @@ -13,6 +13,7 @@ export PLACE_DENSITY_LB_ADDON = 0.1 export TNS_END_PERCENT = 100 export EQUIVALENCE_CHECK ?= 1 export REMOVE_CELLS_FOR_EQY = sky130_fd_sc_hs__tapvpwrvgnd* +export LEC_CHECK = 1 #export SYNTH_HDL_FRONTEND ?= slang #export OPENROAD_HIERARCHICAL ?= 1 From d345f285eccab4171643877814b7b59e116d526f Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Thu, 5 Feb 2026 20:53:19 +0100 Subject: [PATCH 2/3] update kf Signed-off-by: Noam Cohen --- tools/kepler-formal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kepler-formal b/tools/kepler-formal index 2c0f78e748..44f6ad6b07 160000 --- a/tools/kepler-formal +++ b/tools/kepler-formal @@ -1 +1 @@ -Subproject commit 2c0f78e7483333dd0d5340cbb3567f96dd290d53 +Subproject commit 44f6ad6b075c0b98a38e042d5c4347765e250f05 From 538b6e6ee1f826ba40d791ec3f044e9729892b39 Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Mon, 9 Feb 2026 23:47:43 +0100 Subject: [PATCH 3/3] Add KEPLER_FORMAL_EXE env Signed-off-by: nanocoh --- flow/scripts/lec_check.tcl | 2 +- flow/scripts/variables.mk | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flow/scripts/lec_check.tcl b/flow/scripts/lec_check.tcl index b89b8cb5ad..a3fdd4e014 100644 --- a/flow/scripts/lec_check.tcl +++ b/flow/scripts/lec_check.tcl @@ -23,7 +23,7 @@ proc write_lec_script { step file1 file2 } { proc run_lec_test { step file1 file2 } { write_lec_script $step $file1 $file2 # tclint-disable-next-line command-args - eval exec kepler-formal --config $::env(OBJECTS_DIR)/${step}_lec_test.yml + eval exec $::env(KEPLER_FORMAL_EXE) --config $::env(OBJECTS_DIR)/${step}_lec_test.yml try { set count [exec grep -c "Found difference" $::env(LOG_DIR)/${step}_lec_check.log]] } trap CHILDSTATUS {results options} { diff --git a/flow/scripts/variables.mk b/flow/scripts/variables.mk index ea0cbd1b7c..305818b1eb 100644 --- a/flow/scripts/variables.mk +++ b/flow/scripts/variables.mk @@ -117,6 +117,9 @@ YOSYS_IS_VALID := $(if $(YOSYS_EXE),$(shell test -x $(YOSYS_EXE) && echo "true") KLAYOUT_DIR = $(abspath $(FLOW_HOME)/../tools/install/klayout/) KLAYOUT_BIN_FROM_DIR = $(KLAYOUT_DIR)/klayout +KEPLER_FORMAL_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/kepler-formal/bin/kepler-formal) +export KEPLER_FORMAL_EXE := $(KEPLER_FORMAL_EXE) + ifeq ($(wildcard $(KLAYOUT_BIN_FROM_DIR)), $(KLAYOUT_BIN_FROM_DIR)) export KLAYOUT_CMD ?= sh -c 'LD_LIBRARY_PATH=$(dir $(KLAYOUT_BIN_FROM_DIR)) $$0 "$$@"' $(KLAYOUT_BIN_FROM_DIR) else