From patchwork Fri Apr 25 09:30:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cayetano Santos X-Patchwork-Id: 42004 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id EC73427BC4B; Fri, 25 Apr 2025 10:32:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0570727BC49 for ; Fri, 25 Apr 2025 10:32:10 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u8FPh-0007Qm-U8; Fri, 25 Apr 2025 05:32:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u8FPf-0007Q2-Ev for guix-patches@gnu.org; Fri, 25 Apr 2025 05:32:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u8FPe-0008Hy-W5 for guix-patches@gnu.org; Fri, 25 Apr 2025 05:32:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=M9eGHGEaS+YIIUuhbEvREwjdVsMNnGvHvF2HVsma+g8=; b=I0zUwgbUKtGMsclNV/bC3NadvOeXc660SYWf/O3PLkOzINuwjaIj73wL9k41ppOSRe/8ErCYx/fVES10z2hUXf8wqKovrSwAfOizk5LG68olbMutqPpKUnvM2oUhKtug/R0gCanQQvm6jpYLytl498abhodK2HdaFtN/cQyokazbSYimUuapZwpcYqH0dgF4Rrx9+LLh11JDVzOnvzn2erIuPajCaxqU6YPtiNN9JFR5LHU+K+3mxlfYD2HPFUUTnzWzW9UP4iPgAaqDBYNipGkljQSsLlw3PzUAAdkA0Dvmh6OXoXiAEHc/yo7BMdHkH2VRvlbE7YcpodzLvQtDFQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u8FPe-0000lt-5F; Fri, 25 Apr 2025 05:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78057] [PATCH v2] gnu: Add symbiyosys. Resent-From: Cayetano Santos Original-Sender: "Debbugs-submit" Resent-CC: csantosb@inventati.org, ekaitz@elenq.tech, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 25 Apr 2025 09:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 78057 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78016@debbugs.gnu.org Cc: csantosb@inventati.org, 78057@debbugs.gnu.org, Cayetano Santos , Ekaitz Zarraga , Maxim Cournoyer X-Debbugs-Original-Cc: Cayetano Santos , Cayetano Santos via Guix-patches via X-Debbugs-Original-Xcc: Cayetano Santos , Ekaitz Zarraga , Maxim Cournoyer Received: via spool by submit@debbugs.gnu.org id=B.17455734762589 (code B ref -1); Fri, 25 Apr 2025 09:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Apr 2025 09:31:16 +0000 Received: from localhost ([127.0.0.1]:47396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u8FOr-0000f9-I7 for submit@debbugs.gnu.org; Fri, 25 Apr 2025 05:31:16 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47904) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u8FOo-0000eV-E5 for submit@debbugs.gnu.org; Fri, 25 Apr 2025 05:31:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u8FOh-0006ap-PV for guix-patches@gnu.org; Fri, 25 Apr 2025 05:31:04 -0400 Received: from latitanza.investici.org ([82.94.249.234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u8FOd-0008FV-Nv for guix-patches@gnu.org; Fri, 25 Apr 2025 05:31:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1745573455; bh=M9eGHGEaS+YIIUuhbEvREwjdVsMNnGvHvF2HVsma+g8=; h=From:To:Cc:Subject:Date:From; b=pl4P5r1PCLz8LfXjJYN1jb7+MltK+5/Exjugw76Jnl+eK8FDP41krtcbMihpjDmSJ W4Ob7JCCyMlFNXfQlLngLMTtmhjzuSUrRuM3fUBFscpfeeLFtTvv07xF/r/tNuurAj m4Mn9jevjeUckmG0l+MCx3d/2y7HF56NIqIDFxmM= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4ZkSJH5vbqzGp7Y; Fri, 25 Apr 2025 09:30:55 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4ZkSJH49rWzGp4j; Fri, 25 Apr 2025 09:30:55 +0000 (UTC) Date: Fri, 25 Apr 2025 11:30:33 +0200 Message-ID: <2959c6b6d45577cfd1d6e61a86e2f3be14baf32c.1745573433.git.csantosb@inventati.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Received-SPF: pass client-ip=82.94.249.234; envelope-from=csantosb@inventati.org; helo=latitanza.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Cayetano Santos X-ACL-Warn: , Cayetano Santos via Guix-patches X-Patchwork-Original-From: Cayetano Santos via Guix-patches via From: Cayetano Santos Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Cayetano Santos via Guix-patches via * gnu/packages/electronics.scm (symbiyosys): New variable. Change-Id: I1a3758e4bf46fc6d57ef63a0c0f5f2e39a862c4d Signed-off-by: Cayetano Santos --- gnu/packages/electronics.scm | 67 +++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) base-commit: 501a9603f5e3cda07f3be8e7fecac31f7af5ce52 diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 12e44f234a..5ca28607b5 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -46,6 +46,7 @@ (define-module (gnu packages electronics) #:use-module (gnu packages documentation) #:use-module (gnu packages embedded) #:use-module (gnu packages fontutils) + #:use-module (gnu packages fpga) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages graphviz) @@ -54,6 +55,7 @@ (define-module (gnu packages electronics) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages m4) + #:use-module (gnu packages maths) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-build) @@ -67,7 +69,8 @@ (define-module (gnu packages electronics) #:use-module (gnu packages swig) #:use-module (gnu packages tls) #:use-module (gnu packages toolkits) - #:use-module (gnu packages version-control)) + #:use-module (gnu packages version-control) + #:use-module (gnu packages xml)) (define-public comedilib (package @@ -635,6 +638,68 @@ (define-public sigrok-firmware-fx2lafw them usable as simple logic analyzer and/or oscilloscope hardware.") (license license:gpl2+)))) +(define-public symbiyosys + (package + (name "symbiyosys") + (version "0.52") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/YosysHQ/sby/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06nhkmnl9ymp1wxapc0lnj82knj5q43x0s2rmfshwvs4cijzqm7f")))) + (build-system gnu-build-system) + (arguments + (list + #:test-target "test" + #:make-flags #~(list (string-append "PREFIX=" #$output)) + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (delete 'build) + ;; TODO: build docs, after furo-ys is packaged. + ;; (add-after 'install 'build-info + ;; (lambda _ + ;; (invoke "make" "-C" "docs" "info"))) + (add-before 'check 'git-init + (lambda _ + (invoke "git" "init"))) ;check expects a git repo + (add-after 'git-init 'patch-/usr/bin/env + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "sbysrc/sby_core.py" + (("\"/usr/bin/env\", ") + "")) + (substitute* "sbysrc/sby.py" + (("/usr/bin/env python") + (search-input-file inputs "bin/python3"))))) + ;; The tests related to abc binary used by yosys produce errors + ;; Disable them + (add-after 'patch-/usr/bin/env 'disable-abc-tests + (lambda _ + (delete-file "tests/keepgoing/keepgoing_multi_step.sby") + (delete-file-recursively "docs/examples/demos") + (delete-file + "tests/regression/aim_vs_smt2_nonzero_start_offset.sby")))))) + (inputs (list abc yosys)) + (native-inputs (list + ;; TODO: see above build-info phase comment. + ;; python-sphinx python-sphinx-argparse texinfo + boolector + git-minimal/pinned + python + python-click + python-xmlschema + yices + z3)) + (home-page "https://github.com/YosysHQ/sby/") + (synopsis "Formal hardware verification with yosys") + (description + "SimbyYosys is a front-end program for yosys-based formal hardware verification +flows.") + (license license:isc))) + (define-public uhdm (package (name "uhdm")