From debbugs-submit-bounces@debbugs.gnu.org Mon May 12 08:16:31 2025 Received: (at submit) by debbugs.gnu.org; 12 May 2025 12:16:32 +0000 Received: from localhost ([127.0.0.1]:51054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uES59-0000yH-8w for submit@debbugs.gnu.org; Mon, 12 May 2025 08:16:31 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41156) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uES52-0000xW-ST for submit@debbugs.gnu.org; Mon, 12 May 2025 08:16:25 -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 1uES4t-00083y-0E for guix-patches@gnu.org; Mon, 12 May 2025 08:16:15 -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 1uES4p-0001wy-Bf for guix-patches@gnu.org; Mon, 12 May 2025 08:16:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1747052157; bh=KYV1nmBBxbTst15/U/AKtNDVATW0zh+Q+Wi8evLmPp8=; h=From:To:Cc:Subject:Date:From; b=ImioQ4wpIe464vQPXN7HYKbLDyM/+64pYzBxWQ317t9okDuA+vaH1iosxPB1jOgWM VjI+TOIbW3Ib5Yj83lH/vJOoaWrDaT4w6cKuuuX0PLaeb+0loqZcL+DpHLhsbutd08 l++q43y0drOTEEQDBfJhrW5HDtZllYrslixjncj4= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4Zwz8s6XSvzGp8m; Mon, 12 May 2025 12:15:57 +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 4Zwz8s5CWLzGp95; Mon, 12 May 2025 12:15:57 +0000 (UTC) From: Cayetano Santos To: guix-patches@gnu.org Subject: [PATCH electronics-team] gnu: nextpnr: Add ecp5 and himbaechel architectures. Date: Mon, 12 May 2025 14:10:33 +0200 Message-ID: <279f0c297865b8963b03dd173d171d4d3fe2eaa7.1747051833.git.csantosb@inventati.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Cayetano Santos , Ekaitz Zarraga , Gabriel Wicki , Maxim Cournoyer Content-Transfer-Encoding: 8bit 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-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Cayetano Santos X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) * gnu/packages/fpga.scm (nextpnr): Add ecp5 and himbaechel architectures. Change-Id: Ia4b92f6cd1693b844b35949fdc23369e958e73c1 --- [arguments] <#:configure-flags>: Add Add ecp5 and himbaechel. <#:phases> {get-prjbeyond-db}: New phase. {unbundle-sanitizers-cmake}: Simplify lambda. [native-inputs]: Add prjtrellis. gnu/packages/fpga.scm | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index 2019700d72..4d767340cb 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -54,6 +54,7 @@ (define-module (gnu packages fpga) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages electronics) #:use-module (gnu packages elf) #:use-module (gnu packages flex) #:use-module (gnu packages gawk) @@ -408,18 +409,36 @@ (define-public nextpnr (list #:cmake cmake ;CMake 3.25 or higher is required. #:configure-flags - #~(list "-DARCH=generic;ice40" ;TODO: enable more architectures? + ;;TODO: enable more architectures? + #~(list "-DARCH=generic;ice40;ecp5;himbaechel" "-DBUILD_GUI=ON" "-DUSE_OPENMP=ON" "-DBUILD_TESTS=ON" + "-DHIMBAECHEL_UARCH=ng-ultra" ;gowin requires python-apycula. + "-DHIMBAECHEL_NGULTRA_DEVICES=ng-ultra" + "-DHIMBAECHEL_PRJBEYOND_DB=/tmp/prjbeyond-db" (string-append "-DCURRENT_GIT_VERSION=nextpnr-" #$version) (string-append "-DICESTORM_INSTALL_PREFIX=" #$(this-package-input "icestorm")) + (string-append "-DTRELLIS_INSTALL_PREFIX=" + #$(this-package-input "prjtrellis")) "-DUSE_IPO=OFF") #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'get-prjbeyond-db + (lambda _ + (copy-recursively + #$(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/yosyshq-GmbH/prjbeyond-db/") + (commit "06d3b424dd0e52d678087c891c022544238fb9e3"))) + (sha256 + (base32 + "17dd3cgms2fy6xvz7magdmvv92km4cqh2kz9dyjrvz5y8caqav4y"))) + "/tmp/prjbeyond-db"))) (add-after 'unpack 'unbundle-sanitizers-cmake - (lambda* (#:key inputs #:allow-other-keys) + (lambda _ (substitute* "CMakeLists.txt" ;; Use the system sanitizers-cmake module. This is made ;; necessary 'sanitizers-cmake' installing a FindPackage @@ -436,6 +455,7 @@ (define-public nextpnr corrosion eigen icestorm + prjtrellis pybind11 python qtbase-5 base-commit: e4e43cebbacbbb7982d08f691636f3234fd60184 -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Wed May 14 21:49:24 2025 Received: (at 78390) by debbugs.gnu.org; 15 May 2025 01:49:24 +0000 Received: from localhost ([127.0.0.1]:48074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFNit-0007Lj-RC for submit@debbugs.gnu.org; Wed, 14 May 2025 21:49:24 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:57847) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uFNil-0007JQ-M0; Wed, 14 May 2025 21:49:19 -0400 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-74019695377so366789b3a.3; Wed, 14 May 2025 18:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747273748; x=1747878548; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Kl7cSJCqpZcw1Ekd+UeFsKKKOyyzQPJekT6qsFtSZZg=; b=KhzKMhpdlgmAFno4r/nLSkxBk51ubD4zrpvFWgbhGKKpxkZls4GAA1AjgVVyuZ4YeO feymt378dNf7fs5tC88mnDbtFfkfisCg0/xig7+DX44Phg8Z7oH0U5hikg4PWNS/rxpz 07jrfYqI36/CvPkGtCYJdl/qgJDGOaIyl/zCck5ZsrtTAC0VoGFXezgLaqiL2BJdoUfq M6EA0Lwk/4xVCTKfVjk8USlCA22p4Ze3o6WXIFW3KdldfcI84Aq7si991ZYkL/5eRM7j 6hk6VZ5uylZkd9Ac4Dx092pr3s+As74voObRxFTQQooazH1kLlL8gCjFv2eRYau9J0rl SV2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747273748; x=1747878548; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Kl7cSJCqpZcw1Ekd+UeFsKKKOyyzQPJekT6qsFtSZZg=; b=FOXPcefLCkvV1DiwyuDcEIyfz6yFnhuI0Uc0o6Oy5Lu+DKFznY6gjgHbpxZxWGt/Zu v0T85lEv3zfyxPnoHCScPa9E9uIorf/NEE8zVfIjukRg2gppUOZCy1TmnEbmfFxpj5Ak F81eVygQkoGY0A71p3In669hP1sldNyZCkoV9EC7znBO26Ugwt6GLGHXTlJPSE7Izkab 4Itc9x+F+bQqBmZnnGF6jLNgX6BVZPCYAO9rhsw2mr57lT2H8aiFhCwuv2XqCXfT3AOb iSJxPF5dJb9a4+8rA8C/wDofSzncOWxRkoo6S7ZQSq6zIxZuJNwjGbj5+j5lImS0hQdH 7NEA== X-Forwarded-Encrypted: i=1; AJvYcCV2kY4/3NMQG5EhHZECS1pM/N3PLIWKHf+cYVMI2uoI8OYgt7SbTfbDy4toFtBsFGG6TSE4GScN@debbugs.gnu.org X-Gm-Message-State: AOJu0YwnLAryr0yX2NoWZqKfouj3G+Gv13bZiV74IKFHCu0+HNjaK8vo 4ZIKnCtPRrd5Mmq7WtRdf+EGowWAXydGEeJd05LTtZjIZ47r1Q0UX1wuZG27 X-Gm-Gg: ASbGncu9Pq4Vjj3lvRBeLI5mPK8jhW0UzI7BiJ938GJEZ2DIVCksWYAojEHdGXeqoY5 YrKJ3lUtMW5U9rMnXFxas9rVBB2MWlE+Sd957gNtx03rf5SzsMxdSwBZ+EBdjKmlKaajjp7j0OT Xe48dkO22a70DQgfKl4LJqWR1rDaSy3p/9r1jzCX0AKmzfp4aeTGKSUknmZ7Un7AFLy3lwlYB0M eZV4qj6qTzHNl+/Gfvo8Q2a4U2aszhwQpieK0loRlQPW2Eer/DubDYmPXROYzEbTF9GGQ0bpe3q /LBFY1a267qRs6NKJsFk/j2fhIFMaVmv7yG0AgruV9f50dZPcA== X-Google-Smtp-Source: AGHT+IEbZfDKaAVEyM+jX45zYGkdHbHWwfK2IOy2TI5kUYBYxMTKvhl3ysnegEtUqDoYTglIX/O3Nw== X-Received: by 2002:a05:6a00:21c4:b0:740:aa31:fe66 with SMTP id d2e1a72fcca58-74289263944mr7750438b3a.4.1747273748496; Wed, 14 May 2025 18:49:08 -0700 (PDT) Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7423776109csm10287472b3a.82.2025.05.14.18.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 May 2025 18:49:07 -0700 (PDT) From: Maxim Cournoyer To: Cayetano Santos Subject: Re: [bug#78390] [PATCH electronics-team] gnu: nextpnr: Add ecp5 and himbaechel architectures. In-Reply-To: <279f0c297865b8963b03dd173d171d4d3fe2eaa7.1747051833.git.csantosb@inventati.org> (Cayetano Santos's message of "Mon, 12 May 2025 14:10:33 +0200") References: <279f0c297865b8963b03dd173d171d4d3fe2eaa7.1747051833.git.csantosb@inventati.org> Date: Thu, 15 May 2025 10:49:04 +0900 Message-ID: <87r00qk5in.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78390 Cc: 78390@debbugs.gnu.org, GNU Debbugs , Gabriel Wicki , Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 78390 + moreinfo thanks Hello! Cayetano Santos writes: > * gnu/packages/fpga.scm (nextpnr): Add ecp5 and himbaechel architectures. > > Change-Id: Ia4b92f6cd1693b844b35949fdc23369e958e73c1 > > --- > > [arguments] <#:configure-flags>: Add Add ecp5 and himbaechel. > <#:phases> {get-prjbeyond-db}: New phase. > {unbundle-sanitizers-cmake}: Simplify lambda. > [native-inputs]: Add prjtrellis. > > gnu/packages/fpga.scm | 24 ++++++++++++++++++++++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > > diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm > index 2019700d72..4d767340cb 100644 > --- a/gnu/packages/fpga.scm > +++ b/gnu/packages/fpga.scm > @@ -54,6 +54,7 @@ (define-module (gnu packages fpga) > #:use-module (gnu packages cmake) > #:use-module (gnu packages compression) > #:use-module (gnu packages cpp) > + #:use-module (gnu packages electronics) > #:use-module (gnu packages elf) > #:use-module (gnu packages flex) > #:use-module (gnu packages gawk) > @@ -408,18 +409,36 @@ (define-public nextpnr > (list > #:cmake cmake ;CMake 3.25 or higher is required. > #:configure-flags > - #~(list "-DARCH=generic;ice40" ;TODO: enable more architectures? > + ;;TODO: enable more architectures? punctuation nitpick: should be ';; TODO: Enable more architectures?' > + #~(list "-DARCH=generic;ice40;ecp5;himbaechel" > "-DBUILD_GUI=ON" > "-DUSE_OPENMP=ON" > "-DBUILD_TESTS=ON" > + "-DHIMBAECHEL_UARCH=ng-ultra" ;gowin requires python-apycula. Feel free to drop punctuation for margin commits, such as the trailing dot here. > + "-DHIMBAECHEL_NGULTRA_DEVICES=ng-ultra" > + "-DHIMBAECHEL_PRJBEYOND_DB=/tmp/prjbeyond-db" > (string-append "-DCURRENT_GIT_VERSION=nextpnr-" #$version) > (string-append "-DICESTORM_INSTALL_PREFIX=" > #$(this-package-input "icestorm")) > + (string-append "-DTRELLIS_INSTALL_PREFIX=" > + #$(this-package-input "prjtrellis")) > "-DUSE_IPO=OFF") > #:phases > #~(modify-phases %standard-phases > + (add-after 'unpack 'get-prjbeyond-db > + (lambda _ It'd be nice to add a comment explaining why this is useful here, and perhaps mentioning which commit should be used when updating (the latest one?) nextpnr. Otherwise, LGTM! -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Mon May 19 05:12:14 2025 Received: (at 78390) by debbugs.gnu.org; 19 May 2025 09:12:14 +0000 Received: from localhost ([127.0.0.1]:37378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uGwXe-0000aJ-5m for submit@debbugs.gnu.org; Mon, 19 May 2025 05:12:14 -0400 Received: from devianza.investici.org ([198.167.222.108]:52175) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uGwXY-0000Zm-Kp for 78390@debbugs.gnu.org; Mon, 19 May 2025 05:12:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1747645927; bh=WrrYVUWTlk5yN86cUuv0q2iHDXxBkT1Gqj6XHflKxMQ=; h=From:To:Cc:Subject:Date:From; b=BI07+JnCVg+jlxHfBuy2DiC+FwRArq2+w3fK5VOCZQuTkpvlyEvfvMCV9Ym1n2S7o Iae8cppjNWk6eO+/AWrBPnzYP+iIAS61dt5sEhWXqXr/1/feoCml+/LDJ1vA4izQlT NyVONGZ3R96goG7BBHebjlNmy1apW5CGdk10xa9c= Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4b1BlW0w2gz6vJd; Mon, 19 May 2025 09:12:07 +0000 (UTC) Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4b1BlV6Hpfz6vH7; Mon, 19 May 2025 09:12:06 +0000 (UTC) From: Cayetano Santos To: 78390@debbugs.gnu.org Subject: [PATCH electronics-team v2] gnu: nextpnr: Add ecp5 and himbaechel architectures. Date: Mon, 19 May 2025 11:11:18 +0200 Message-ID: <4e73f7ac01330bff25b5a95d0a3e60e0aa85d903.1747645878.git.csantosb@inventati.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Cayetano Santos , Ekaitz Zarraga , Gabriel Wicki , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78390 Cc: Cayetano Santos X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/fpga.scm (nextpnr): Add ecp5 and himbaechel architectures. Change-Id: Ia4b92f6cd1693b844b35949fdc23369e958e73c1 --- gnu/packages/fpga.scm | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index c46631c6cd..ec166c9c4e 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -55,6 +55,7 @@ (define-module (gnu packages fpga) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages electronics) #:use-module (gnu packages elf) #:use-module (gnu packages flex) #:use-module (gnu packages freedesktop) @@ -437,18 +438,38 @@ (define-public nextpnr (list #:cmake cmake ;CMake 3.25 or higher is required. #:configure-flags - #~(list "-DARCH=generic;ice40" ;TODO: enable more architectures? + ;; TODO: enable more architectures? + #~(list "-DARCH=generic;ice40;ecp5;himbaechel" "-DBUILD_GUI=ON" "-DUSE_OPENMP=ON" "-DBUILD_TESTS=ON" + "-DHIMBAECHEL_UARCH=ng-ultra" + "-DHIMBAECHEL_NGULTRA_DEVICES=ng-ultra" + "-DHIMBAECHEL_PRJBEYOND_DB=/tmp/prjbeyond-db" (string-append "-DCURRENT_GIT_VERSION=nextpnr-" #$version) (string-append "-DICESTORM_INSTALL_PREFIX=" #$(this-package-input "icestorm")) + (string-append "-DTRELLIS_INSTALL_PREFIX=" + #$(this-package-input "prjtrellis")) "-DUSE_IPO=OFF") #:phases #~(modify-phases %standard-phases + ;; Required by himbaechel architecture, ng-ultra support. + (add-after 'unpack 'get-prjbeyond-db + (lambda _ + (copy-recursively + #$(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/yosyshq-GmbH/prjbeyond-db/") + ;; We take latest commit, as for README.md. + (commit "06d3b424dd0e52d678087c891c022544238fb9e3"))) + (sha256 + (base32 + "17dd3cgms2fy6xvz7magdmvv92km4cqh2kz9dyjrvz5y8caqav4y"))) + "/tmp/prjbeyond-db"))) (add-after 'unpack 'unbundle-sanitizers-cmake - (lambda* (#:key inputs #:allow-other-keys) + (lambda _ (substitute* "CMakeLists.txt" ;; Use the system sanitizers-cmake module. This is made ;; necessary 'sanitizers-cmake' installing a FindPackage @@ -465,6 +486,7 @@ (define-public nextpnr corrosion eigen icestorm + prjtrellis pybind11 python qtbase-5 base-commit: 450a361532573a02389530a6a80b7821683ed41b -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Mon May 19 05:15:03 2025 Received: (at 78390) by debbugs.gnu.org; 19 May 2025 09:15:03 +0000 Received: from localhost ([127.0.0.1]:37398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uGwaM-0000ho-RE for submit@debbugs.gnu.org; Mon, 19 May 2025 05:15:03 -0400 Received: from devianza.investici.org ([2c0f:f930:0:4::108]:47499) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uGwaJ-0000gt-90; Mon, 19 May 2025 05:14:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1747646097; bh=g7QlZqTliQAIXgftNyOzad2Ew0nZxVJz2mIMGx/l+Ls=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=lGxxc6qNcrBUDMWaNlsO0t1d6agLepPgGQvpODpat9PQE+ilh5A2emX9aR+fx/DCE vuJ8RMS37rxAY9aFz3VSh9b4185ILHi7xxT6YII1r7hFfVekHQVKkIV8ysibMHbZ0B lRbLDs2HOFQMYXF5eyw7uA5HxVmOwWz7Gb6r0quU= Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4b1Bpn5LhBz6vJd; Mon, 19 May 2025 09:14:57 +0000 (UTC) Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4b1Bpn2Pn8z6vH7; Mon, 19 May 2025 09:14:57 +0000 (UTC) From: Cayetano Santos To: Maxim Cournoyer Subject: Re: [bug#78390] [PATCH electronics-team] gnu: nextpnr: Add ecp5 and himbaechel architectures. In-Reply-To: <87r00qk5in.fsf@gmail.com> (Maxim Cournoyer's message of "Thu, 15 May 2025 10:49:04 +0900") References: <279f0c297865b8963b03dd173d171d4d3fe2eaa7.1747051833.git.csantosb@inventati.org> <87r00qk5in.fsf@gmail.com> User-Agent: mu4e 1.12.9; emacs 29.4 Date: Mon, 19 May 2025 11:14:56 +0200 Message-ID: <87iklxdkrz.fsf@inventati.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78390 Cc: 78390@debbugs.gnu.org, GNU Debbugs , Gabriel Wicki , Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >jeu. 15 mai 2025 at 10:49, Maxim Cournoyer wro= te: >> + #~(list "-DARCH=3Dgeneric;ice40;ecp5;himbaechel" >> "-DBUILD_GUI=3DON" >> "-DUSE_OPENMP=3DON" >> "-DBUILD_TESTS=3DON" >> + "-DHIMBAECHEL_UARCH=3Dng-ultra" ;gowin requires python-ap= ycula. > > Feel free to drop punctuation for margin commits, such as the trailing > dot here. No need to specify what do we don=E2=80=99t yet provide, after all, I drop = the whole comment. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iI0EARYKADUWIQTMuBhC+dcFjs1nN3q/XN9N9r9mggUCaCr2kBccY3NhbnRvc2JA aW52ZW50YXRpLm9yZwAKCRC/XN9N9r9mgu0uAQD5o+nXKimAge3+V82lvfg7g6e6 9hFjflFaEUp+SPoxugEApuBOcnyaaW9uj2x/vpEJfFiFyer0XhxCNXbaHAvgXgY= =Zysl -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 05:19:08 2025 Received: (at 78390) by debbugs.gnu.org; 21 May 2025 09:19:08 +0000 Received: from localhost ([127.0.0.1]:45042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHfbQ-0002yI-7r for submit@debbugs.gnu.org; Wed, 21 May 2025 05:19:08 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:47419) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uHfbL-0002x4-F3 for 78390@debbugs.gnu.org; Wed, 21 May 2025 05:19:04 -0400 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-30e542e4187so4829629a91.3 for <78390@debbugs.gnu.org>; Wed, 21 May 2025 02:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747819137; x=1748423937; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=UR51XSPUwStiN5Mj4XqgWbeMs3kDONauCMTzedE7u1w=; b=aS55CtxZ0PcO4Y1wWixHLIFIS7za8Pv3S5wWB5yCHrpNWLh6AfJ6Y7mXoneLNeN49k ORHU+5qN2fQq7QXZ9b0y6vEEjkR+I/FVOijRrohLcx1UugpAwUC2jKVd3kezAyttcNLz YX/PV0d1tM0LPSThUhKbTGTW8rW39TZMRRJ6YISAuyb9nektleRwBbhd8uTmDuR1YhKB WhWOVL0EqIq3+fA6B3XvQkgbHQQERXBGw+SHaXW0/E0h79Kw8VwQGInz6O6v6iPhTtZd h5c3TDUi1vmyiQaHFo0nxEjo15nkkePO96k30aMIcJFtcgX6eYNp3IHnZoYsFgZOz6hB ufiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747819137; x=1748423937; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UR51XSPUwStiN5Mj4XqgWbeMs3kDONauCMTzedE7u1w=; b=d6HHCtUp9A4kmtAMovD8yKLJkzKBU5rGeQMzMgmvxHyYG/9IUWTLKI4+38Q+iDi0+k eQ43vSNE2eRbAlLf1891o2DnmMQUxFTVLjSC8GxIWgxWHmWhuYsnckg5TrDw7wXd9Xdu IkTyrhWnzeZu0zaoum0lotLO/pKSEjVX+rt52Fwjazk7mHDvvKeiR6SM+QYzr0O5Bgbe liX2EX5IpyELSjsIeTIFIYBjgGEK6eBux/wFujpzwiYj5OHkQmvl9odVuV8uV9jLZ0nL 1lSvoPr4dtzQh/xbUDf5a3S2oa+W1uhMhdKzGnNM4RUZ4aHI8AkXH/v41/USQlGSlh14 jYQg== X-Gm-Message-State: AOJu0Yzddh0nr4mTroBlgrAC8f0SgtwMEVe5xXpJDRtoZAWRkGPAZjdl 6WUs86QVtTVOxedZ+AK4feqHI5fcppEnVeXjxAQj+hpvembU/3BZNmEJ X-Gm-Gg: ASbGncsKxfwSWqe6S574SJ8Wbc99Qt9vy9kNA6tXDRdxNkKNwRCMTViqn7vihBiohyR MbY+hg/iFhJpy8rPlufb7yBdxWNErNRPn1Y/sj5WP/z2SBLiDSnLXw9uKdPavHBlZBRpDrVuvl5 pH5U1naEfZrcUmoCpeNK5vQoO4sJ6H1v0UFSU3RmVGwFf09X7y+vNP3It0lgFHiYTVs8HP0rQKg EjGhU0VBtB276ITLYzReIRjGK0FmWT19faGed9uFe6AFpqXEjfS02YG2wwKRldlya9AjMpkqYkL T0MsuxJM25JkYw5N3+xGla2NMYeIJda+iNS0j1kb/WZRJRmacQ== X-Google-Smtp-Source: AGHT+IGGBX+4opiHE/Bi6WwZdahAPxMbbZIbn+UCxlOrZmTrD/M0i9ePHu3aBzgXTYplmilC77KWmA== X-Received: by 2002:a17:90b:28c5:b0:2fc:a3b7:108e with SMTP id 98e67ed59e1d1-30e7d4fea80mr31539336a91.4.1747819136891; Wed, 21 May 2025 02:18:56 -0700 (PDT) Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30f36490757sm3209025a91.21.2025.05.21.02.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 May 2025 02:18:56 -0700 (PDT) From: Maxim Cournoyer To: Cayetano Santos Subject: Re: bug#78390: [PATCH electronics-team] gnu: nextpnr: Add ecp5 and himbaechel architectures. In-Reply-To: <4e73f7ac01330bff25b5a95d0a3e60e0aa85d903.1747645878.git.csantosb@inventati.org> (Cayetano Santos's message of "Mon, 19 May 2025 11:11:18 +0200") References: <279f0c297865b8963b03dd173d171d4d3fe2eaa7.1747051833.git.csantosb@inventati.org> <4e73f7ac01330bff25b5a95d0a3e60e0aa85d903.1747645878.git.csantosb@inventati.org> Date: Wed, 21 May 2025 18:18:53 +0900 Message-ID: <87cyc28goy.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78390 Cc: 78390@debbugs.gnu.org, Gabriel Wicki , Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi! Cayetano Santos writes: > * gnu/packages/fpga.scm (nextpnr): Add ecp5 and himbaechel architectures. > > Change-Id: Ia4b92f6cd1693b844b35949fdc23369e958e73c1 > --- > gnu/packages/fpga.scm | 26 ++++++++++++++++++++++++-- > 1 file changed, 24 insertions(+), 2 deletions(-) > > diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm > index c46631c6cd..ec166c9c4e 100644 > --- a/gnu/packages/fpga.scm > +++ b/gnu/packages/fpga.scm > @@ -55,6 +55,7 @@ (define-module (gnu packages fpga) > #:use-module (gnu packages cmake) > #:use-module (gnu packages compression) > #:use-module (gnu packages cpp) > + #:use-module (gnu packages electronics) > #:use-module (gnu packages elf) > #:use-module (gnu packages flex) > #:use-module (gnu packages freedesktop) > @@ -437,18 +438,38 @@ (define-public nextpnr > (list > #:cmake cmake ;CMake 3.25 or higher is required. > #:configure-flags > - #~(list "-DARCH=generic;ice40" ;TODO: enable more architectures? > + ;; TODO: enable more architectures? > + #~(list "-DARCH=generic;ice40;ecp5;himbaechel" > "-DBUILD_GUI=ON" > "-DUSE_OPENMP=ON" > "-DBUILD_TESTS=ON" > + "-DHIMBAECHEL_UARCH=ng-ultra" > + "-DHIMBAECHEL_NGULTRA_DEVICES=ng-ultra" > + "-DHIMBAECHEL_PRJBEYOND_DB=/tmp/prjbeyond-db" > (string-append "-DCURRENT_GIT_VERSION=nextpnr-" #$version) > (string-append "-DICESTORM_INSTALL_PREFIX=" > #$(this-package-input "icestorm")) > + (string-append "-DTRELLIS_INSTALL_PREFIX=" > + #$(this-package-input "prjtrellis")) > "-DUSE_IPO=OFF") > #:phases > #~(modify-phases %standard-phases > + ;; Required by himbaechel architecture, ng-ultra support. > + (add-after 'unpack 'get-prjbeyond-db > + (lambda _ > + (copy-recursively > + #$(origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/yosyshq-GmbH/prjbeyond-db/") > + ;; We take latest commit, as for README.md. Which README.md is the comment supposed to refer to? I'm guessing the README.md file of nextpnr? The comment should be reworded for better clarity. > + (commit "06d3b424dd0e52d678087c891c022544238fb9e3"))) > + (sha256 > + (base32 > + "17dd3cgms2fy6xvz7magdmvv92km4cqh2kz9dyjrvz5y8caqav4y"))) > + "/tmp/prjbeyond-db"))) I didn't see any distribution terms for the above files, so I asked [0]. I think we should wait for an answer before merging this change, to be on the safe side. Otherwise, LGTM. [0] https://github.com/YosysHQ-GmbH/prjbeyond-db/issues/2 -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 05:52:49 2025 Received: (at 78390) by debbugs.gnu.org; 21 May 2025 09:52:49 +0000 Received: from localhost ([127.0.0.1]:45304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHg81-0005l1-8Q for submit@debbugs.gnu.org; Wed, 21 May 2025 05:52:49 -0400 Received: from latitanza.investici.org ([82.94.249.234]:55911) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uHg7v-0005k7-HN for 78390@debbugs.gnu.org; Wed, 21 May 2025 05:52:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1747821161; bh=XJt8OWcvjrCeT+pznn1BzwMUpKNm98M3oEJjKIesZDY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=bhYgAgqYp3kVeKdP3971j+qDTNEMPGrh6Nfux9mUszt9ieHJgaBZiJcDXoThAYW3J 7U695FSMp6Lk7Cl6jNYxNTrgFQgjMRtCfrngtJd1M8+O+JdMJtdUZuF+B1crHjDwsm TKOer3lytFOBb1zZk7PLg2XEQyGdP5fMwMcEOS9o= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4b2RYP4dtGzGpSW; Wed, 21 May 2025 09:52:41 +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 4b2RYP2WdMzGpQt; Wed, 21 May 2025 09:52:41 +0000 (UTC) From: Cayetano Santos To: Maxim Cournoyer Subject: Re: bug#78390: [PATCH electronics-team] gnu: nextpnr: Add ecp5 and himbaechel architectures. In-Reply-To: <87cyc28goy.fsf_-_@gmail.com> (Maxim Cournoyer's message of "Wed, 21 May 2025 18:18:53 +0900") References: <279f0c297865b8963b03dd173d171d4d3fe2eaa7.1747051833.git.csantosb@inventati.org> <4e73f7ac01330bff25b5a95d0a3e60e0aa85d903.1747645878.git.csantosb@inventati.org> <87cyc28goy.fsf_-_@gmail.com> User-Agent: mu4e 1.12.9; emacs 29.4 Date: Wed, 21 May 2025 11:52:40 +0200 Message-ID: <87a57670k7.fsf@inventati.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78390 Cc: 78390@debbugs.gnu.org, Gabriel Wicki , Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain >mer. 21 mai 2025 at 18:18, Maxim Cournoyer wrote: >> + (commit "06d3b424dd0e52d678087c891c022544238fb9e3"))) >> + (sha256 >> + (base32 >> + "17dd3cgms2fy6xvz7magdmvv92km4cqh2kz9dyjrvz5y8caqav4y"))) >> + "/tmp/prjbeyond-db"))) > > I didn't see any distribution terms for the above files, so I asked [0]. > I think we should wait for an answer before merging this change, to be > on the safe side. > > Otherwise, LGTM. > > [0] https://github.com/YosysHQ-GmbH/prjbeyond-db/issues/2 Good catch ! I absolutely missed this point. Some device backends follow the same pattern, as it seems: using the proprietary tools to produce a db, which is then used by the p&r tool. I guess this is the price to pay for having a completely open design toolchain. C. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iI0EARYKADUWIQTMuBhC+dcFjs1nN3q/XN9N9r9mggUCaC2iaBccY3NhbnRvc2JA aW52ZW50YXRpLm9yZwAKCRC/XN9N9r9mgpvrAQCUEp6szv17Aj2/Mw+XvDhKJXJ6 mMdRtORLLnjL8p93NAEAg+OaXfyrc0YOXFOjWBuk85M9X5ozUAWPwgkI2vrnWA8= =topt -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 10 06:01:48 2025 Received: (at 78390) by debbugs.gnu.org; 10 Jun 2025 10:01:49 +0000 Received: from localhost ([127.0.0.1]:34561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uOvnf-0004xb-La for submit@debbugs.gnu.org; Tue, 10 Jun 2025 06:01:48 -0400 Received: from confino.investici.org ([93.190.126.19]:23515) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uOvnc-0004x0-Ah for 78390@debbugs.gnu.org; Tue, 10 Jun 2025 06:01:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1749549702; bh=MWM9jFFeV/E5LToL3OL1V7AZb0UR0Qs4wIk/p8nbJXw=; h=From:To:Cc:Subject:Date:From; b=Sum10s601ps1K3wP9rTRcIeF7k0jIosK7J6VL67wian8OfxvQWXNgTIqKcNoaO9bh B0gV374sE4WaWuCZ45TMeeRBCF0tP/dC1J855apTI8UxPY3hYlGI6MGAdjFg6UdG62 i0HvMOxCcQvh2kv8erXLTZkYFvyshHTCNdwoloeI= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4bGkpZ3JQRz117F; Tue, 10 Jun 2025 10:01:42 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4bGkpZ0tFTz114v; Tue, 10 Jun 2025 10:01:42 +0000 (UTC) From: Cayetano Santos To: 78390@debbugs.gnu.org Subject: [PATCH electronics-team v3] gnu: nextpnr: Add ecp5 architecture. Date: Tue, 10 Jun 2025 12:00:46 +0200 Message-ID: <8444c1502c68f285bbe4ae4cd6f355141bb7355a.1749549646.git.csantosb@inventati.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Cayetano Santos , Ekaitz Zarraga , Gabriel Wicki , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78390 Cc: Cayetano Santos X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Change-Id: Ia4b92f6cd1693b844b35949fdc23369e958e73c1 --- Let's concentrate in ecp5 architecture, as himbaechel support files licensing is not clear at this point. gnu/packages/fpga.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index c46631c6cd..6bff45c782 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -55,6 +55,7 @@ (define-module (gnu packages fpga) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages electronics) #:use-module (gnu packages elf) #:use-module (gnu packages flex) #:use-module (gnu packages freedesktop) @@ -437,18 +438,20 @@ (define-public nextpnr (list #:cmake cmake ;CMake 3.25 or higher is required. #:configure-flags - #~(list "-DARCH=generic;ice40" ;TODO: enable more architectures? + #~(list "-DARCH=generic;ice40;ecp5" ;TODO: enable more architectures? "-DBUILD_GUI=ON" "-DUSE_OPENMP=ON" "-DBUILD_TESTS=ON" (string-append "-DCURRENT_GIT_VERSION=nextpnr-" #$version) (string-append "-DICESTORM_INSTALL_PREFIX=" #$(this-package-input "icestorm")) + (string-append "-DTRELLIS_INSTALL_PREFIX=" + #$(this-package-input "prjtrellis")) "-DUSE_IPO=OFF") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'unbundle-sanitizers-cmake - (lambda* (#:key inputs #:allow-other-keys) + (lambda _ (substitute* "CMakeLists.txt" ;; Use the system sanitizers-cmake module. This is made ;; necessary 'sanitizers-cmake' installing a FindPackage @@ -465,6 +468,7 @@ (define-public nextpnr corrosion eigen icestorm + prjtrellis pybind11 python qtbase-5 base-commit: 5fd4df347e04b6cd3ce3fc91900f773a2e4824e3 -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 06:26:25 2025 Received: (at 78390) by debbugs.gnu.org; 12 Jun 2025 10:26:25 +0000 Received: from localhost ([127.0.0.1]:56607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uPf8a-0007vT-Mj for submit@debbugs.gnu.org; Thu, 12 Jun 2025 06:26:25 -0400 Received: from confino.investici.org ([93.190.126.19]:54299) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uPf8V-0007uj-PQ for 78390@debbugs.gnu.org; Thu, 12 Jun 2025 06:26:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1749723977; bh=yu4By8NVKB9LVe4iUuiOx3FLoepeHG/Ld7rG4e/GYFg=; h=From:To:Cc:Subject:Date:From; b=AZ1ntQtb2wsaxPlA9lzwe42kmajVsAy/egLctcMgjjc5PH6JCjgQtiSlYEXCcaQeE ByfF9Uu9EqWrsmO+9J+bnhSQdLa4H8f/ulL/a8uxg+CBELXP+7UNB620u0Vd59wsnc dxYK4oIBxAaVpVIrsh7ssxw3+jgd7boeYkWAPMng= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4bHzG14qgdz10wr; Thu, 12 Jun 2025 10:26:17 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4bHzG13hwSz10wj; Thu, 12 Jun 2025 10:26:17 +0000 (UTC) From: Cayetano Santos To: 78390@debbugs.gnu.org Subject: [PATCH electronics-team v4] gnu: nextpnr: Add ecp5 and himbaechel architectures. Date: Thu, 12 Jun 2025 12:23:40 +0200 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Cayetano Santos , Ekaitz Zarraga , Gabriel Wicki , Maxim Cournoyer Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78390 Cc: Cayetano Santos via Guix-patches via X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) From: Cayetano Santos via Guix-patches via Change-Id: Ia4b92f6cd1693b844b35949fdc23369e958e73c1 --- As prjbeyond-db now includes a free license [0], we way produce an executable for himbaechel architecture, in addition to ecp5. [0] https://github.com/YosysHQ-GmbH/prjbeyond-db/issues/2#issuecomment-2963375264 gnu/packages/fpga.scm | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index c46631c6cd..3240cca92f 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -55,6 +55,7 @@ (define-module (gnu packages fpga) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages electronics) #:use-module (gnu packages elf) #:use-module (gnu packages flex) #:use-module (gnu packages freedesktop) @@ -437,18 +438,39 @@ (define-public nextpnr (list #:cmake cmake ;CMake 3.25 or higher is required. #:configure-flags - #~(list "-DARCH=generic;ice40" ;TODO: enable more architectures? + ;; TODO: enable more architectures? + #~(list "-DARCH=generic;ice40;ecp5;himbaechel" "-DBUILD_GUI=ON" "-DUSE_OPENMP=ON" "-DBUILD_TESTS=ON" + "-DHIMBAECHEL_UARCH=ng-ultra" + "-DHIMBAECHEL_NGULTRA_DEVICES=ng-ultra" + "-DHIMBAECHEL_PRJBEYOND_DB=/tmp/prjbeyond-db" (string-append "-DCURRENT_GIT_VERSION=nextpnr-" #$version) (string-append "-DICESTORM_INSTALL_PREFIX=" #$(this-package-input "icestorm")) + (string-append "-DTRELLIS_INSTALL_PREFIX=" + #$(this-package-input "prjtrellis")) "-DUSE_IPO=OFF") #:phases #~(modify-phases %standard-phases + ;; Required by himbaechel architecture, ng-ultra support. + (add-after 'unpack 'get-prjbeyond-db + (lambda _ + (copy-recursively + #$(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/yosyshq-GmbH/prjbeyond-db/") + ;; We take latest commit, as indicated in nextpnr’s + ;; README.md file + (commit "06d3b424dd0e52d678087c891c022544238fb9e3"))) + (sha256 + (base32 + "17dd3cgms2fy6xvz7magdmvv92km4cqh2kz9dyjrvz5y8caqav4y"))) + "/tmp/prjbeyond-db"))) (add-after 'unpack 'unbundle-sanitizers-cmake - (lambda* (#:key inputs #:allow-other-keys) + (lambda _ (substitute* "CMakeLists.txt" ;; Use the system sanitizers-cmake module. This is made ;; necessary 'sanitizers-cmake' installing a FindPackage @@ -465,6 +487,7 @@ (define-public nextpnr corrosion eigen icestorm + prjtrellis pybind11 python qtbase-5 base-commit: 8730c8f3a86ef41d5b88df573fce9b6d73c23b0c -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 10:34:49 2025 Received: (at 78390-done) by debbugs.gnu.org; 18 Jun 2025 14:34:49 +0000 Received: from localhost ([127.0.0.1]:51857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRtsG-0007gt-Qc for submit@debbugs.gnu.org; Wed, 18 Jun 2025 10:34:49 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:42686) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRtrU-0007b0-2N; Wed, 18 Jun 2025 10:34:01 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id D499524D; Wed, 18 Jun 2025 16:33:51 +0200 (CEST) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id e08kSz9nx9Kx; Wed, 18 Jun 2025 16:33:51 +0200 (CEST) Received: from jurong (176-179-191-150.abo.bbox.fr [176.179.191.150]) by hera.aquilenet.fr (Postfix) with ESMTPSA id B9CD5112; Wed, 18 Jun 2025 16:33:49 +0200 (CEST) Date: Wed, 18 Jun 2025 16:33:48 +0200 From: Andreas Enge To: Maxim Cournoyer Subject: Re: bug#78390: [PATCH electronics-team] gnu: nextpnr: Add ecp5 and himbaechel architectures. Message-ID: References: <279f0c297865b8963b03dd173d171d4d3fe2eaa7.1747051833.git.csantosb@inventati.org> <4e73f7ac01330bff25b5a95d0a3e60e0aa85d903.1747645878.git.csantosb@inventati.org> <87cyc28goy.fsf_-_@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87cyc28goy.fsf_-_@gmail.com> X-Rspamd-Server: hera X-Rspamd-Queue-Id: D499524D X-Spamd-Result: default: False [0.94 / 15.00]; BAYES_HAM(-2.94)[99.75%]; NEURAL_SPAM(1.98)[0.660]; SUSPICIOUS_RECIPS(1.50)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; TAGGED_RCPT(0.00)[]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Action: no action X-Spamd-Bar: / X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78390-done Cc: 78390-done@debbugs.gnu.org, Gabriel Wicki , Cayetano Santos , 78774-done@debbugs.gnu.org, Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, thanks for the license initiative, that has yielded a nice outcome! I have pushed v4 and am closing the issue (and its duplicate). Andreas From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 19:38:25 2025 Received: (at 78390-done) by debbugs.gnu.org; 18 Jun 2025 23:38:26 +0000 Received: from localhost ([127.0.0.1]:58166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uS2MJ-00049p-PI for submit@debbugs.gnu.org; Wed, 18 Jun 2025 19:38:25 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:50348) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uS2MD-000483-0x; Wed, 18 Jun 2025 19:38:18 -0400 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-31393526d0dso85625a91.0; Wed, 18 Jun 2025 16:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750289891; x=1750894691; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=HEZ0ieH930piar8PJZXovRd25opVKLA1gsIm5IzO/Lk=; b=MSl/uVAjs7JjX88jCngqJry+B3pC7tITciWswvksj85/KJwieg9/s06OE+lMIwe1jv ZPFESFhUue2V349AYtmJ9yvkP7voc33MRM8to8NwzUgQeeYREMvdXpGb86jgYC3v9Vw/ b94RTE7D2YtFZBZUV7gONs0El5IIgsI+teRl7CW3d1w+mbF0mSiD77w/cbsQIYmgRlWO k4TmOorx2ZyRnUDfA1YkgbbM7pn1bQ5RG+RFc2X5+o8oCxXfJst9IHuPQOSO+ZPDILVD sB0REqL+5dmOHN+JLSaiAg/N3AWYqlG667q/Uq1vyf1vCnNSIXQQjAA3hS40RDM01/hR QS+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750289891; x=1750894691; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HEZ0ieH930piar8PJZXovRd25opVKLA1gsIm5IzO/Lk=; b=GGlmLtvSbTRsb1aZa9R9Ev3HCTtnE/eP4cHOtYmm63mN/aJLBMxsyuXmfyNJ9M4jUw C2KaerfyP2X2GAs7V8fPJp1JahvQM5qYqUKaSOBv0W24AoeegkP9Gs8j3xwmfJ2/Feaw ryNtW8621qMmPsvI5oQlr0syR5qe7BXRuGXnKgO20TE24hT5X0NDg6SsQygitTExgDg9 +9J+ID8CVnm7bz9mlCdC7Uq83Ir/Swbp8kppj2IyeLNIQXotlor7OrnRmgeznNWlbNvC S7fPXN9ad4M3GvEl9HZ2i6ta2OHLV4xe33CH8wrhfntt9hErMsdHDoPch2Tv1F+xyngl SUGA== X-Forwarded-Encrypted: i=1; AJvYcCV/NlaM6fxT8taIugH53rK7oiPvjxoOc2rrTbnBi0Qyq2fZxzgQc5oo+loI0D9BcFbQOzQEDMbumzGi@debbugs.gnu.org, AJvYcCVnnPLHtcB7idhBnoS2nOqM5LOvoLhtP88vrcbCjcqftSk9cM6FLNiYO5zm6wlfxFFO3QQZSCA0qT5IhQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzyeVS6zk6wZ4b+PXi1eOlS9gvkNk25y5jWyavYAPmTQuGUHaf/ 2MuuPApnMNat1X+wnH2tTmWTFo1XvmaMfFKg63c8y0GIv5L8PcB7gjSD X-Gm-Gg: ASbGncvw+i8kAYes0qqiU3hRIvvfVrJdvpDGz5XdEQ5Rue4Mmzt49tlQjuRxGgo/teE 3S7y3svlxAXXp/TTAvgEHQhJ6vBvG7C9tUHbrW4jaPB9JyYQesboEQOa/7ojL30UrbdjOenC0L8 L2BWkojovXTwlFOuNTq39uPdCxKZQ4n2vPPuRXUGMoT9a+TJieLUDbC6qsag6e13MZD8sjBaflv t4AbT7z7zLnH0qneuLhZOG+222t0AZoVRd0N4fDb57NSxeZJOs9+YZO5LwvO4wZq6W27E4zlApM o633I9vCnh52/zvcprL2uRkutXs45pW3Ap1Ril/nGGsTgOc/KWHFeGJL9dG/Xlzj X-Google-Smtp-Source: AGHT+IFMcRZPBMJmcuKI00UKL079mZoK5/bLrTynSV0yo1YA+p/yB4jleWeq2zOiYHaL/Ftf/dVA+Q== X-Received: by 2002:a17:90b:5242:b0:313:2adc:b4c4 with SMTP id 98e67ed59e1d1-313f1daf390mr34170860a91.24.1750289890734; Wed, 18 Jun 2025 16:38:10 -0700 (PDT) Received: from terra ([2405:6586:7c0:4400:8c2a:c791:f284:c04b]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3158a335460sm633972a91.49.2025.06.18.16.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jun 2025 16:37:58 -0700 (PDT) From: Maxim Cournoyer To: Andreas Enge Subject: Re: bug#78390: [PATCH electronics-team] gnu: nextpnr: Add ecp5 and himbaechel architectures. In-Reply-To: (Andreas Enge's message of "Wed, 18 Jun 2025 16:33:48 +0200") References: <279f0c297865b8963b03dd173d171d4d3fe2eaa7.1747051833.git.csantosb@inventati.org> <4e73f7ac01330bff25b5a95d0a3e60e0aa85d903.1747645878.git.csantosb@inventati.org> <87cyc28goy.fsf_-_@gmail.com> Date: Thu, 19 Jun 2025 08:37:54 +0900 Message-ID: <87h60cr57x.fsf@terra.mail-host-address-is-not-set> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78390-done Cc: Ekaitz Zarraga , Maxim Cournoyer , 78390-done@debbugs.gnu.org, Gabriel Wicki , Cayetano Santos , 78774-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Andreas Enge writes: > Hello, > > thanks for the license initiative, that has yielded a nice outcome! > > I have pushed v4 and am closing the issue (and its duplicate). Thanks! -- Maxim