From 0b99f5e6d1e1aed150035421252b1ac1bf6e0cde Mon Sep 17 00:00:00 2001 From: Mohamed Gaber Date: Thu, 11 Jun 2026 02:07:49 +0300 Subject: [PATCH] cmake/SilimateVerific: rework merged verific generation --- .github/actions/setup-build-env/action.yml | 2 +- cmake/SilimateConfig.cmake | 6 +- cmake/SilimateVerific-merge-archive.py | 50 +++++++--- cmake/SilimateVerific.cmake | 102 ++++++++------------- 4 files changed, 81 insertions(+), 79 deletions(-) diff --git a/.github/actions/setup-build-env/action.yml b/.github/actions/setup-build-env/action.yml index 7c1f7f60c..f9d06f719 100644 --- a/.github/actions/setup-build-env/action.yml +++ b/.github/actions/setup-build-env/action.yml @@ -70,7 +70,7 @@ runs: shell: bash run: | echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH - echo "$(brew --prefix llvm@20)/bin" >> $GITHUB_PATH + echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH echo "$(brew --prefix flex)/bin" >> $GITHUB_PATH echo "procs=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV diff --git a/cmake/SilimateConfig.cmake b/cmake/SilimateConfig.cmake index 968fa0383..b088b4124 100644 --- a/cmake/SilimateConfig.cmake +++ b/cmake/SilimateConfig.cmake @@ -1,6 +1,8 @@ # Always force disable GNU Readline, GPL trap library -set(YOSYS_ENABLE_READLINE OFF) +set(YOSYS_ENABLE_READLINE OFF CACHE INTERNAL "") +# Silimate fork has Verific in top-level directory set(YOSYS_VERIFIC_DIR ${PROJECT_SOURCE_DIR}/verific) -set(YOSYS_WITH_PYTHON ON) +# Pyosys is the primary interface for the Silimate fork +set(YOSYS_WITH_PYTHON ON CACHE BOOL "" FORCE) add_library(verific INTERFACE) diff --git a/cmake/SilimateVerific-merge-archive.py b/cmake/SilimateVerific-merge-archive.py index dbcf7f8dd..d5f06cc7a 100644 --- a/cmake/SilimateVerific-merge-archive.py +++ b/cmake/SilimateVerific-merge-archive.py @@ -1,29 +1,51 @@ +# Copyright (c) 2026 Silimate, Inc. +# SPDX-License-Identifier: MIT +""" +Usage: