From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:37097) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFy9D-0001vl-SJ for guix-patches@gnu.org; Sun, 22 Mar 2020 06:48:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFy9C-0006QN-N2 for guix-patches@gnu.org; Sun, 22 Mar 2020 06:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42655) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFy9C-0006Q5-90 for guix-patches@gnu.org; Sun, 22 Mar 2020 06:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFy9C-000666-6Q for guix-patches@gnu.org; Sun, 22 Mar 2020 06:48:02 -0400 Subject: [bug#40182] [PATCH 2/2] gnu: Add nextpnr-ice40 References: <2c193888d4d7e49146436ad5981174a8@airmail.cc> In-Reply-To: <2c193888d4d7e49146436ad5981174a8@airmail.cc> Resent-Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 22 Mar 2020 10:47:48 +0000 From: pinoaffe@airmail.cc Message-ID: <55875bc483352f8105513ac5006c0666@airmail.cc> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40182@debbugs.gnu.org * gnu/packages/fpga.scm (nextpnr-ice40): New variable. --- gnu/packages/fpga.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index 5cfc9a96f6..8f34ef8282 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -44,6 +44,9 @@ #:use-module (gnu packages gperf) #:use-module (gnu packages gawk) #:use-module (gnu packages version-control) + #:use-module (gnu packages qt) + #:use-module (gnu packages boost) + #:use-module (gnu packages algebra) #:use-module (gnu packages libftdi)) (define-public abc @@ -256,6 +259,41 @@ For synthesis, the compiler generates netlists in the desired format.") Includes the actual FTDI connector.") (license license:isc)))) +(define-public nextpnr-ice40 + (let [(commit "c192ba261d77ad7f0a744fb90b01e4a5b63938c4") + (revision "0")] + (package + (name "nextpnr-ice40") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "git://github.com/YosysHQ/nextpnr") + (commit commit))) + (sha256 + (base32 + "0g2ar1z89b31qw5vgqj2rrcv9rzncs94184dgcsrz19p866654mf")))) + (inputs + `(("qtbase" ,qtbase) + ("boost" ,boost-with-python3) + ("yosys" ,yosys) + ("eigen" ,eigen) + ("python" ,python) + ("icestorm" ,icestorm))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags `("-DARCH=ice40" + ,(string-append "-DICEBOX_ROOT=" + (assoc-ref %build-inputs "icestorm") + "/share/icebox")) + #:tests? #f)) + (synopsis "Place-and-Route tool for FPGAs") + (description "nextpnr aims to be a vendor neutral, timing driven, +FOSS FPGA place and route tool. ") + (home-page "https://github.com/YosysHQ/nextpnr") + (license license:expat)))) + (define-public arachne-pnr (let ((commit "840bdfdeb38809f9f6af4d89dd7b22959b176fdd") (revision "2")) -- 2.25.1