From 027a786db9cb82a860e3bc7fcde250470909f00d Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Tue, 23 Dec 2025 06:44:55 +0100 Subject: [PATCH 01/21] LEC check Signed-off-by: Noam Cohen --- .gitmodules | 3 +++ build_openroad.sh | 29 ++++++++++++++++++++++++++++- etc/DependencyInstaller.sh | 7 +++++-- flow/scripts/cts.tcl | 6 ++++++ flow/scripts/load.tcl | 37 +++++++++++++++++++++++++++++++++++++ tools/kepler-formal | 1 + 6 files changed, 80 insertions(+), 3 deletions(-) create mode 160000 tools/kepler-formal diff --git a/.gitmodules b/.gitmodules index ec90369ba8..32bdbc7301 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "tools/yosys-slang"] path = tools/yosys-slang url = https://github.com/povik/yosys-slang.git +[submodule "tools/kepler-formal"] + path = tools/kepler-formal + url = https://github.com/keplertech/kepler-formal diff --git a/build_openroad.sh b/build_openroad.sh index 0394f00999..4a1ddf72e1 100755 --- a/build_openroad.sh +++ b/build_openroad.sh @@ -291,11 +291,38 @@ __local_build() # CMAKE_FLAGS added to work around yosys-slang#141 (unable to build outside of git checkout) ${NICE} make install -C tools/yosys-slang -j "${PROC}" YOSYS_PREFIX="${INSTALL_PATH}/yosys/bin/" CMAKE_FLAGS="-DYOSYS_SLANG_REVISION=unknown -DSLANG_REVISION=unknown" + echo "[INFO FLW-0031] Compiling kepler-formal" + cd tools/kepler-formal + git submodule update --init --recursive + + # if build dir does not exist, create it + if [ ! -d build ]; then + mkdir build + fi + + cd build + + if [[ "$OSTYPE" == "darwin"* ]]; then + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \ + -DCMAKE_EXE_LINKER_FLAGS="-flto" \ + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \ + -DCMAKE_INSTALL_RPATH=@executable_path/../lib + else + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \ + -DCMAKE_EXE_LINKER_FLAGS="-flto" \ + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \ + -DCMAKE_INSTALL_RPATH=\$ORIGIN/../lib + fi + make -j4 install + cd ../../../ if [ ${WITH_VERIFIC} -eq 1 ]; then echo "[INFO FLW-0032] Cleaning up Verific components." rm -rf verific fi - } __update_openroad_app_remote() diff --git a/etc/DependencyInstaller.sh b/etc/DependencyInstaller.sh index 97975ed322..a3d2af1f8a 100755 --- a/etc/DependencyInstaller.sh +++ b/etc/DependencyInstaller.sh @@ -286,7 +286,7 @@ _installUbuntuPackages() { _installDarwinPackages() { brew install libffi tcl-tk ruby - brew install python libomp + brew install python libomp doxygen capnp tbb bison flex boost spdlog zlib brew link --force libomp brew install --cask klayout brew install docker docker-buildx @@ -300,7 +300,10 @@ _installCI() { coreutils \ curl \ python3 \ - software-properties-common + software-properties-common \ + clang pkg-config \ + libboost-dev libfl-dev libtbb-dev capnproto libcapnp-dev \ + libgtest-dev libspdlog-dev libfmt-dev libboost-iostreams-dev zlib1g-dev } _help() { diff --git a/flow/scripts/cts.tcl b/flow/scripts/cts.tcl index e281f4b594..6fa9e8f36f 100644 --- a/flow/scripts/cts.tcl +++ b/flow/scripts/cts.tcl @@ -60,12 +60,18 @@ if { !$::env(SKIP_CTS_REPAIR_TIMING) } { if { $::env(EQUIVALENCE_CHECK) } { write_eqy_verilog 4_before_rsz.v } + if { [env_var_exists_and_non_empty LEC_CHECK] } { + write_lec_verilog 4_before_rsz_lec.v + } repair_timing_helper if { $::env(EQUIVALENCE_CHECK) } { run_equivalence_test } + if { [env_var_exists_and_non_empty LEC_CHECK] } { + run_lec_test + } set result [catch { detailed_placement } msg] if { $result != 0 } { diff --git a/flow/scripts/load.tcl b/flow/scripts/load.tcl index 02621b4a56..388875f2a8 100644 --- a/flow/scripts/load.tcl +++ b/flow/scripts/load.tcl @@ -106,3 +106,40 @@ proc run_equivalence_test { } { puts "Repair timing output passed equivalence test" } } + +proc write_lec_verilog { filename } { + if { [env_var_exists_and_non_empty REMOVE_CELLS_FOR_EQY] } { + write_verilog -remove_cells $::env(REMOVE_CELLS_FOR_EQY) $::env(RESULTS_DIR)/$filename + } else { + write_verilog $::env(RESULTS_DIR)/$filename + } +} + +proc write_lec_script { } { + set outfile [open "$::env(OBJECTS_DIR)/4_lec_test.yml" w] + puts $outfile "format: verilog" + puts $outfile "input_paths:" + puts $outfile " - $::env(RESULTS_DIR)/4_before_rsz_lec.v" + puts $outfile " - $::env(RESULTS_DIR)/4_after_rsz_lec.v" + # Gold netlist + puts $outfile "liberty_files:" + foreach libFile $::env(LIB_FILES) { + puts $outfile " - $libFile" + } + puts $outfile "log_file: $::env(LOG_DIR)/4_lec_check.log" + close $outfile +} + +proc run_lec_test { } { + write_lec_verilog 4_after_rsz_lec.v + write_lec_script + # tclint-disable-next-line command-args + eval exec kepler-formal --config $::env(OBJECTS_DIR)/4_lec_test.yml + set count \ + [exec grep -c "Found difference" $::env(LOG_DIR)/4_lec_check.log] + if { $count > 0 } { + error "Repair timing output failed lec test" + } else { + puts "Repair timing output passed lec test" + } +} diff --git a/tools/kepler-formal b/tools/kepler-formal new file mode 160000 index 0000000000..5a48eaaab2 --- /dev/null +++ b/tools/kepler-formal @@ -0,0 +1 @@ +Subproject commit 5a48eaaab275602f72f0a7bce0b53204f59f6ec1 From 03a4aca1b75e2cf38094bc6ab7f75cb11855386d Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Sun, 28 Dec 2025 01:57:09 +0100 Subject: [PATCH 02/21] bump 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 5a48eaaab2..e7e1a2d2af 160000 --- a/tools/kepler-formal +++ b/tools/kepler-formal @@ -1 +1 @@ -Subproject commit 5a48eaaab275602f72f0a7bce0b53204f59f6ec1 +Subproject commit e7e1a2d2af828b3505298a19c459f25b046dc4df From adf2872ee3599d89e94ff32e11df4eda636c5015 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 01:41:26 +0100 Subject: [PATCH 03/21] INSTALL_PATH Signed-off-by: Noam Cohen --- build_openroad.sh | 18 ++++++++++-------- env.sh | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/build_openroad.sh b/build_openroad.sh index 4a1ddf72e1..26c4cc1e08 100755 --- a/build_openroad.sh +++ b/build_openroad.sh @@ -299,25 +299,27 @@ __local_build() if [ ! -d build ]; then mkdir build fi - cd build if [[ "$OSTYPE" == "darwin"* ]]; then - cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ + cmake .. -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \ -DCMAKE_EXE_LINKER_FLAGS="-flto" \ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \ - -DCMAKE_INSTALL_RPATH=@executable_path/../lib + -DCMAKE_INSTALL_RPATH='@executable_path/../lib' \ + -DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal" else - cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ + cmake .. -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \ -DCMAKE_EXE_LINKER_FLAGS="-flto" \ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \ - -DCMAKE_INSTALL_RPATH=\$ORIGIN/../lib + -DCMAKE_INSTALL_RPATH='\$ORIGIN/../lib' \ + -DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal" fi - make -j4 install + + make -j"${PROC}" install + + cd ../../../ if [ ${WITH_VERIFIC} -eq 1 ]; then echo "[INFO FLW-0032] Cleaning up Verific components." diff --git a/env.sh b/env.sh index 563c003a81..9b4241cbf6 100755 --- a/env.sh +++ b/env.sh @@ -13,6 +13,7 @@ function __setpaths() { # developer settings go in ./dev_env.sh export PATH=${DIR}/tools/install/OpenROAD/bin:$PATH export PATH=${DIR}/tools/install/yosys/bin:$PATH + export PATH=${DIR}/tools/install/kepler-formal/bin:$PATH if [[ "$OSTYPE" == "darwin"* ]]; then export PATH="/Applications/KLayout/klayout.app/Contents/MacOS:$PATH" From b63d7b1538bfd190d7d514b2c1d108b053692453 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 03:01:54 +0100 Subject: [PATCH 04/21] remove extra line for formatting Signed-off-by: Noam Cohen --- build_openroad.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/build_openroad.sh b/build_openroad.sh index 26c4cc1e08..e6f4e472a4 100755 --- a/build_openroad.sh +++ b/build_openroad.sh @@ -319,7 +319,6 @@ __local_build() make -j"${PROC}" install - cd ../../../ if [ ${WITH_VERIFIC} -eq 1 ]; then echo "[INFO FLW-0032] Cleaning up Verific components." From d55b7267119b4b75f1f45cace6822c6f3606180e Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 16:24:57 +0100 Subject: [PATCH 05/21] 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 e7e1a2d2af..8deb4acf20 160000 --- a/tools/kepler-formal +++ b/tools/kepler-formal @@ -1 +1 @@ -Subproject commit e7e1a2d2af828b3505298a19c459f25b046dc4df +Subproject commit 8deb4acf20bba724563b4a6acbe477777bb7afe1 From 74f1301487a1e8f2d7180c27f0978cae3029dd05 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 16:42:38 +0100 Subject: [PATCH 06/21] separate to lec_check.tcl Signed-off-by: Noam Cohen --- flow/scripts/cts.tcl | 4 +++- flow/scripts/lec_check.tcl | 35 ++++++++++++++++++++++++++++++++++ flow/scripts/load.tcl | 39 +------------------------------------- 3 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 flow/scripts/lec_check.tcl diff --git a/flow/scripts/cts.tcl b/flow/scripts/cts.tcl index 6fa9e8f36f..e7cda505d2 100644 --- a/flow/scripts/cts.tcl +++ b/flow/scripts/cts.tcl @@ -1,5 +1,6 @@ utl::set_metrics_stage "cts__{}" source $::env(SCRIPTS_DIR)/load.tcl +source $::env(SCRIPTS_DIR)/lec_check.tcl erase_non_stage_variables cts load_design 3_place.odb 3_place.sdc @@ -70,7 +71,8 @@ if { !$::env(SKIP_CTS_REPAIR_TIMING) } { run_equivalence_test } if { [env_var_exists_and_non_empty LEC_CHECK] } { - run_lec_test + write_lec_verilog 4_after_rsz_lec.v + run_lec_test 4_after 4_before_rsz_lec.v 4_after_rsz_lec.v } set result [catch { detailed_placement } msg] diff --git a/flow/scripts/lec_check.tcl b/flow/scripts/lec_check.tcl new file mode 100644 index 0000000000..801f2667cb --- /dev/null +++ b/flow/scripts/lec_check.tcl @@ -0,0 +1,35 @@ +proc write_lec_verilog { filename } { + if { [env_var_exists_and_non_empty REMOVE_CELLS_FOR_EQY] } { + write_verilog -remove_cells $::env(REMOVE_CELLS_FOR_EQY) $::env(RESULTS_DIR)/$filename + } else { + write_verilog $::env(RESULTS_DIR)/$filename + } +} + +proc write_lec_script { step, file1, file2 } { + set outfile [open "$::env(OBJECTS_DIR)/lec_test_${step}.yml" w] + puts $outfile "format: verilog" + puts $outfile "input_paths:" + puts $outfile " - $::env(RESULTS_DIR)/${file1}" + puts $outfile " - $::env(RESULTS_DIR)/${file2}" + # Gold netlist + puts $outfile "liberty_files:" + foreach libFile $::env(LIB_FILES) { + puts $outfile " - $libFile" + } + puts $outfile "log_file: $::env(LOG_DIR)/lec_check.log" + close $outfile +} + +proc run_lec_test { step, file1, file2 } { + write_lec_script + # tclint-disable-next-line command-args + eval exec kepler-formal --config $::env(OBJECTS_DIR)/lec_test_${step}.yml + set count \ + [exec grep -c "Found difference" $::env(LOG_DIR)/lec_check_${step}.log] + if { $count > 0 } { + error "Repair timing output failed lec test" + } else { + puts "Repair timing output passed lec test" + } +} diff --git a/flow/scripts/load.tcl b/flow/scripts/load.tcl index 3261d01efd..f5f32acc0a 100644 --- a/flow/scripts/load.tcl +++ b/flow/scripts/load.tcl @@ -115,41 +115,4 @@ proc run_equivalence_test { } { } else { puts "Repair timing output passed equivalence test" } -} - -proc write_lec_verilog { filename } { - if { [env_var_exists_and_non_empty REMOVE_CELLS_FOR_EQY] } { - write_verilog -remove_cells $::env(REMOVE_CELLS_FOR_EQY) $::env(RESULTS_DIR)/$filename - } else { - write_verilog $::env(RESULTS_DIR)/$filename - } -} - -proc write_lec_script { } { - set outfile [open "$::env(OBJECTS_DIR)/4_lec_test.yml" w] - puts $outfile "format: verilog" - puts $outfile "input_paths:" - puts $outfile " - $::env(RESULTS_DIR)/4_before_rsz_lec.v" - puts $outfile " - $::env(RESULTS_DIR)/4_after_rsz_lec.v" - # Gold netlist - puts $outfile "liberty_files:" - foreach libFile $::env(LIB_FILES) { - puts $outfile " - $libFile" - } - puts $outfile "log_file: $::env(LOG_DIR)/4_lec_check.log" - close $outfile -} - -proc run_lec_test { } { - write_lec_verilog 4_after_rsz_lec.v - write_lec_script - # tclint-disable-next-line command-args - eval exec kepler-formal --config $::env(OBJECTS_DIR)/4_lec_test.yml - set count \ - [exec grep -c "Found difference" $::env(LOG_DIR)/4_lec_check.log] - if { $count > 0 } { - error "Repair timing output failed lec test" - } else { - puts "Repair timing output passed lec test" - } -} +} \ No newline at end of file From bd1146f55eebc35c1c26417a3c91e8bfae3bf094 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 16:53:45 +0100 Subject: [PATCH 07/21] separate to lec_check.tcl Signed-off-by: Noam Cohen --- flow/scripts/cts.tcl | 2 +- flow/scripts/lec_check.tcl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flow/scripts/cts.tcl b/flow/scripts/cts.tcl index e7cda505d2..b299f11d4f 100644 --- a/flow/scripts/cts.tcl +++ b/flow/scripts/cts.tcl @@ -72,7 +72,7 @@ if { !$::env(SKIP_CTS_REPAIR_TIMING) } { } if { [env_var_exists_and_non_empty LEC_CHECK] } { write_lec_verilog 4_after_rsz_lec.v - run_lec_test 4_after 4_before_rsz_lec.v 4_after_rsz_lec.v + run_lec_test 4_rsz 4_before_rsz_lec.v 4_after_rsz_lec.v } set result [catch { detailed_placement } msg] diff --git a/flow/scripts/lec_check.tcl b/flow/scripts/lec_check.tcl index 801f2667cb..df38e68add 100644 --- a/flow/scripts/lec_check.tcl +++ b/flow/scripts/lec_check.tcl @@ -22,7 +22,7 @@ proc write_lec_script { step, file1, file2 } { } proc run_lec_test { step, file1, file2 } { - write_lec_script + write_lec_script step, file1, file2 # tclint-disable-next-line command-args eval exec kepler-formal --config $::env(OBJECTS_DIR)/lec_test_${step}.yml set count \ From 46116d13618a50275a1639575f8a917ae64805c9 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 17:01:58 +0100 Subject: [PATCH 08/21] separate to lec_check.tcl Signed-off-by: Noam Cohen --- flow/scripts/lec_check.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flow/scripts/lec_check.tcl b/flow/scripts/lec_check.tcl index df38e68add..7218022630 100644 --- a/flow/scripts/lec_check.tcl +++ b/flow/scripts/lec_check.tcl @@ -17,12 +17,12 @@ proc write_lec_script { step, file1, file2 } { foreach libFile $::env(LIB_FILES) { puts $outfile " - $libFile" } - puts $outfile "log_file: $::env(LOG_DIR)/lec_check.log" + puts $outfile "log_file: $::env(LOG_DIR)/lec_check_${step}.log" close $outfile } proc run_lec_test { step, file1, file2 } { - write_lec_script step, file1, file2 + write_lec_script step file1 file2 # tclint-disable-next-line command-args eval exec kepler-formal --config $::env(OBJECTS_DIR)/lec_test_${step}.yml set count \ From ac8e1b53aa72dc76cbb09b9dfa9679e723dcd0cc Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 17:03:36 +0100 Subject: [PATCH 09/21] separate to lec_check.tcl Signed-off-by: Noam Cohen --- flow/scripts/lec_check.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/scripts/lec_check.tcl b/flow/scripts/lec_check.tcl index 7218022630..c457cce3c0 100644 --- a/flow/scripts/lec_check.tcl +++ b/flow/scripts/lec_check.tcl @@ -22,7 +22,7 @@ proc write_lec_script { step, file1, file2 } { } proc run_lec_test { step, file1, file2 } { - write_lec_script step file1 file2 + write_lec_script ${step} ${file1} ${file2} # tclint-disable-next-line command-args eval exec kepler-formal --config $::env(OBJECTS_DIR)/lec_test_${step}.yml set count \ From 3b1c7915d689b0df4c7ad6aa613fe4c8c75a8e45 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 17:07:07 +0100 Subject: [PATCH 10/21] separate to lec_check.tcl Signed-off-by: nanocoh --- flow/designs/asap7/aes/config.mk | 1 - flow/scripts/lec_check.tcl | 8 ++++---- tools/kepler-formal | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/flow/designs/asap7/aes/config.mk b/flow/designs/asap7/aes/config.mk index a8cb544a32..9782c9f9cc 100644 --- a/flow/designs/asap7/aes/config.mk +++ b/flow/designs/asap7/aes/config.mk @@ -13,7 +13,6 @@ export CORE_ASPECT_RATIO = 1 export CORE_MARGIN = 2 export PLACE_DENSITY = 0.65 export TNS_END_PERCENT = 100 -export EQUIVALENCE_CHECK ?= 1 export REMOVE_CELLS_FOR_EQY = TAPCELL* ifeq ($(FLOW_VARIANT),top) diff --git a/flow/scripts/lec_check.tcl b/flow/scripts/lec_check.tcl index c457cce3c0..1a273812b8 100644 --- a/flow/scripts/lec_check.tcl +++ b/flow/scripts/lec_check.tcl @@ -6,13 +6,12 @@ proc write_lec_verilog { filename } { } } -proc write_lec_script { step, file1, file2 } { +proc write_lec_script { step file1 file2 } { set outfile [open "$::env(OBJECTS_DIR)/lec_test_${step}.yml" w] puts $outfile "format: verilog" puts $outfile "input_paths:" puts $outfile " - $::env(RESULTS_DIR)/${file1}" puts $outfile " - $::env(RESULTS_DIR)/${file2}" - # Gold netlist puts $outfile "liberty_files:" foreach libFile $::env(LIB_FILES) { puts $outfile " - $libFile" @@ -21,8 +20,8 @@ proc write_lec_script { step, file1, file2 } { close $outfile } -proc run_lec_test { step, file1, file2 } { - 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)/lec_test_${step}.yml set count \ @@ -33,3 +32,4 @@ proc run_lec_test { step, file1, file2 } { puts "Repair timing output passed lec test" } } + diff --git a/tools/kepler-formal b/tools/kepler-formal index 8deb4acf20..e7e1a2d2af 160000 --- a/tools/kepler-formal +++ b/tools/kepler-formal @@ -1 +1 @@ -Subproject commit 8deb4acf20bba724563b4a6acbe477777bb7afe1 +Subproject commit e7e1a2d2af828b3505298a19c459f25b046dc4df From 5d04268c9047d21d4427e083b182c7e6d441a005 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 19:09:36 +0100 Subject: [PATCH 11/21] bump kf Signed-off-by: Noam Cohen --- flow/designs/asap7/aes/config.mk | 1 + tools/kepler-formal | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flow/designs/asap7/aes/config.mk b/flow/designs/asap7/aes/config.mk index 9782c9f9cc..a8cb544a32 100644 --- a/flow/designs/asap7/aes/config.mk +++ b/flow/designs/asap7/aes/config.mk @@ -13,6 +13,7 @@ export CORE_ASPECT_RATIO = 1 export CORE_MARGIN = 2 export PLACE_DENSITY = 0.65 export TNS_END_PERCENT = 100 +export EQUIVALENCE_CHECK ?= 1 export REMOVE_CELLS_FOR_EQY = TAPCELL* ifeq ($(FLOW_VARIANT),top) diff --git a/tools/kepler-formal b/tools/kepler-formal index e7e1a2d2af..8deb4acf20 160000 --- a/tools/kepler-formal +++ b/tools/kepler-formal @@ -1 +1 @@ -Subproject commit e7e1a2d2af828b3505298a19c459f25b046dc4df +Subproject commit 8deb4acf20bba724563b4a6acbe477777bb7afe1 From 69c546cfa1b24135eb277dd0ab9a517ddc1bd39e Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 19:30:23 +0100 Subject: [PATCH 12/21] kf bin deps fix + 0 count case Signed-off-by: Noam Cohen --- build_openroad.sh | 8 ++++++-- flow/scripts/lec_check.tcl | 11 +++++------ flow/scripts/load.tcl | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/build_openroad.sh b/build_openroad.sh index e6f4e472a4..6b2ac5f03d 100755 --- a/build_openroad.sh +++ b/build_openroad.sh @@ -305,15 +305,19 @@ __local_build() cmake .. -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \ -DCMAKE_EXE_LINKER_FLAGS="-flto" \ - -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \ + -DCMAKE_BUILD_RPATH='@executable_path/../lib' \ -DCMAKE_INSTALL_RPATH='@executable_path/../lib' \ + -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \ -DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal" else cmake .. -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \ -DCMAKE_EXE_LINKER_FLAGS="-flto" \ - -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \ + -DCMAKE_BUILD_RPATH='\$ORIGIN/../lib' \ -DCMAKE_INSTALL_RPATH='\$ORIGIN/../lib' \ + -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \ -DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal" fi diff --git a/flow/scripts/lec_check.tcl b/flow/scripts/lec_check.tcl index 1a273812b8..dfa5ed7e43 100644 --- a/flow/scripts/lec_check.tcl +++ b/flow/scripts/lec_check.tcl @@ -24,12 +24,11 @@ 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)/lec_test_${step}.yml - set count \ - [exec grep -c "Found difference" $::env(LOG_DIR)/lec_check_${step}.log] - if { $count > 0 } { - error "Repair timing output failed lec test" - } else { - puts "Repair timing output passed lec test" + try { + set count [exec grep -c "Found difference" $::env(LOG_DIR)/lec_check_${step}.log]] + } trap CHILDSTATUS {results options} { + # This block executes if grep returns a non-zero exit code + set count 0 } } diff --git a/flow/scripts/load.tcl b/flow/scripts/load.tcl index f5f32acc0a..23ea45dc27 100644 --- a/flow/scripts/load.tcl +++ b/flow/scripts/load.tcl @@ -115,4 +115,4 @@ proc run_equivalence_test { } { } else { puts "Repair timing output passed equivalence test" } -} \ No newline at end of file +} From 75ef2630a5860ca6243fe7e6b0a1bd380c20d772 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 19:49:31 +0100 Subject: [PATCH 13/21] count test Signed-off-by: nanocoh --- flow/scripts/lec_check.tcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flow/scripts/lec_check.tcl b/flow/scripts/lec_check.tcl index dfa5ed7e43..916b510aad 100644 --- a/flow/scripts/lec_check.tcl +++ b/flow/scripts/lec_check.tcl @@ -30,5 +30,10 @@ proc run_lec_test { step file1 file2 } { # This block executes if grep returns a non-zero exit code set count 0 } + if { $count > 0 } { + error "Repair timing output failed lec test" + } else { + puts "Repair timing output passed lec test" + } } From 5fbb37147e231300cbde4303549cb5069a0e3a32 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Tue, 30 Dec 2025 21:04:30 +0100 Subject: [PATCH 14/21] deps fix Signed-off-by: nanocoh --- build_openroad.sh | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/build_openroad.sh b/build_openroad.sh index 6b2ac5f03d..ce151b8c2e 100755 --- a/build_openroad.sh +++ b/build_openroad.sh @@ -301,25 +301,14 @@ __local_build() fi cd build - if [[ "$OSTYPE" == "darwin"* ]]; then cmake .. -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \ -DCMAKE_EXE_LINKER_FLAGS="-flto" \ - -DCMAKE_BUILD_RPATH='@executable_path/../lib' \ - -DCMAKE_INSTALL_RPATH='@executable_path/../lib' \ + -DCMAKE_BUILD_RPATH="${INSTALL_PATH}/kepler-formal/lib" \ + -DCMAKE_INSTALL_RPATH="${INSTALL_PATH}/kepler-formal/lib" \ -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \ -DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal" - else - cmake .. -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \ - -DCMAKE_EXE_LINKER_FLAGS="-flto" \ - -DCMAKE_BUILD_RPATH='\$ORIGIN/../lib' \ - -DCMAKE_INSTALL_RPATH='\$ORIGIN/../lib' \ - -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ - -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \ - -DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal" - fi make -j"${PROC}" install From 3e1548bd0779ae5252dc64619d069ffb8181adee Mon Sep 17 00:00:00 2001 From: noam cohen Date: Wed, 31 Dec 2025 00:54:51 +0100 Subject: [PATCH 15/21] fix prefix Signed-off-by: nanocoh --- build_openroad.sh | 7 ++++--- flow/scripts/lec_check.tcl | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/build_openroad.sh b/build_openroad.sh index ce151b8c2e..2990500580 100755 --- a/build_openroad.sh +++ b/build_openroad.sh @@ -301,12 +301,13 @@ __local_build() fi cd build - cmake .. -DCMAKE_BUILD_TYPE=Release \ + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS_RELEASE="-Ofast -march=native -ffast-math -flto" \ -DCMAKE_EXE_LINKER_FLAGS="-flto" \ - -DCMAKE_BUILD_RPATH="${INSTALL_PATH}/kepler-formal/lib" \ + -DCMAKE_BUILD_RPATH="${DIR}/tools/kepler-formal/build/thirdparty/naja/src/dnl:${DIR}/tools/kepler-formal/build/thirdparty/naja/src/nl/nl:${DIR}/tools/kepler-formal/build/thirdparty/naja/src/optimization" \ -DCMAKE_INSTALL_RPATH="${INSTALL_PATH}/kepler-formal/lib" \ - -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ + -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF \ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \ -DCMAKE_INSTALL_PREFIX="${INSTALL_PATH}/kepler-formal" diff --git a/flow/scripts/lec_check.tcl b/flow/scripts/lec_check.tcl index 916b510aad..bdae00bc70 100644 --- a/flow/scripts/lec_check.tcl +++ b/flow/scripts/lec_check.tcl @@ -7,7 +7,7 @@ proc write_lec_verilog { filename } { } proc write_lec_script { step file1 file2 } { - set outfile [open "$::env(OBJECTS_DIR)/lec_test_${step}.yml" w] + set outfile [open "$::env(OBJECTS_DIR)/${step}_lec_test.yml" w] puts $outfile "format: verilog" puts $outfile "input_paths:" puts $outfile " - $::env(RESULTS_DIR)/${file1}" @@ -16,16 +16,16 @@ proc write_lec_script { step file1 file2 } { foreach libFile $::env(LIB_FILES) { puts $outfile " - $libFile" } - puts $outfile "log_file: $::env(LOG_DIR)/lec_check_${step}.log" + puts $outfile "log_file: $::env(LOG_DIR)/${step}_lec_check.log" close $outfile } 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)/lec_test_${step}.yml + eval exec kepler-formal --config $::env(OBJECTS_DIR)/${step}_lec_test.yml try { - set count [exec grep -c "Found difference" $::env(LOG_DIR)/lec_check_${step}.log]] + set count [exec grep -c "Found difference" $::env(LOG_DIR)/${step}_lec_check.log]] } trap CHILDSTATUS {results options} { # This block executes if grep returns a non-zero exit code set count 0 From 96e37ea8afe44b07ef5cc589552885de2f364b90 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Wed, 31 Dec 2025 00:56:25 +0100 Subject: [PATCH 16/21] bump kf Signed-off-by: nanocoh --- tools/kepler-formal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kepler-formal b/tools/kepler-formal index 8deb4acf20..27e3195947 160000 --- a/tools/kepler-formal +++ b/tools/kepler-formal @@ -1 +1 @@ -Subproject commit 8deb4acf20bba724563b4a6acbe477777bb7afe1 +Subproject commit 27e31959477d528febb79b52109c1978bbabfa0c From e63d726ea6114d76e798365a0c157b1d678f795a Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Tue, 6 Jan 2026 00:22:09 +0100 Subject: [PATCH 17/21] fix in 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 27e3195947..f5562eb1ce 160000 --- a/tools/kepler-formal +++ b/tools/kepler-formal @@ -1 +1 @@ -Subproject commit 27e31959477d528febb79b52109c1978bbabfa0c +Subproject commit f5562eb1ce8252fc787a226ac5d23f94f1e8da33 From 5db8b407f17a23ab9309251ac08b804943b97e56 Mon Sep 17 00:00:00 2001 From: noam cohen Date: Thu, 8 Jan 2026 16:27:23 +0100 Subject: [PATCH 18/21] implicit nets fix + correct error message on multi drivers 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 f5562eb1ce..c1edd4a196 160000 --- a/tools/kepler-formal +++ b/tools/kepler-formal @@ -1 +1 @@ -Subproject commit f5562eb1ce8252fc787a226ac5d23f94f1e8da33 +Subproject commit c1edd4a196536385255f4c882e4001d534d4638b From 4026f5fc3712281136ff9ed5a208602f82e2d29e Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Mon, 19 Jan 2026 18:57:31 +0100 Subject: [PATCH 19/21] recent fixes(mainly name sorting) + run time improvement Signed-off-by: nanocoh --- tools/kepler-formal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kepler-formal b/tools/kepler-formal index c1edd4a196..7878b973b4 160000 --- a/tools/kepler-formal +++ b/tools/kepler-formal @@ -1 +1 @@ -Subproject commit c1edd4a196536385255f4c882e4001d534d4638b +Subproject commit 7878b973b427ff733c1e0325517438543e5c1849 From c29c386fdc9be12f82b7f22d0dc499204f108220 Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Tue, 20 Jan 2026 18:02:17 +0100 Subject: [PATCH 20/21] tcl lint Signed-off-by: nanocoh --- flow/scripts/lec_check.tcl | 1 - 1 file changed, 1 deletion(-) diff --git a/flow/scripts/lec_check.tcl b/flow/scripts/lec_check.tcl index bdae00bc70..b89b8cb5ad 100644 --- a/flow/scripts/lec_check.tcl +++ b/flow/scripts/lec_check.tcl @@ -36,4 +36,3 @@ proc run_lec_test { step file1 file2 } { puts "Repair timing output passed lec test" } } - From e3165843d6967345ed8782a65fb84d8575d3f65b Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Wed, 21 Jan 2026 22:48:53 +0100 Subject: [PATCH 21/21] fixing gcd Signed-off-by: nanocoh --- tools/kepler-formal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kepler-formal b/tools/kepler-formal index 7878b973b4..2c0f78e748 160000 --- a/tools/kepler-formal +++ b/tools/kepler-formal @@ -1 +1 @@ -Subproject commit 7878b973b427ff733c1e0325517438543e5c1849 +Subproject commit 2c0f78e7483333dd0d5340cbb3567f96dd290d53