From patchwork Thu Aug 18 23:18:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel Wicki X-Patchwork-Id: 41764 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 BBBE427BBEA; Fri, 19 Aug 2022 00:20:18 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 7C75D27BBE9 for ; Fri, 19 Aug 2022 00:20:18 +0100 (BST) Received: from localhost ([::1]:46372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOooD-0005uA-JC for patchwork@mira.cbaines.net; Thu, 18 Aug 2022 19:20:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOony-0005ro-Cu for guix-patches@gnu.org; Thu, 18 Aug 2022 19:20:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOony-0006Uc-2p for guix-patches@gnu.org; Thu, 18 Aug 2022 19:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oOonx-0005GX-Ug for guix-patches@gnu.org; Thu, 18 Aug 2022 19:20:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57291] New package: fftgen Resent-From: Gabriel Wicki Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Aug 2022 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57291 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 57291@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166086478720212 (code B ref -1); Thu, 18 Aug 2022 23:20:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2022 23:19:47 +0000 Received: from localhost ([127.0.0.1]:56885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOonj-0005Fw-Fs for submit@debbugs.gnu.org; Thu, 18 Aug 2022 19:19:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:39382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOonf-0005Fm-0h for submit@debbugs.gnu.org; Thu, 18 Aug 2022 19:19:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOone-0005dg-SL for guix-patches@gnu.org; Thu, 18 Aug 2022 19:19:42 -0400 Received: from chimborazo.ee.ethz.ch ([129.132.2.15]:35235) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOonc-0006DU-7F for guix-patches@gnu.org; Thu, 18 Aug 2022 19:19:42 -0400 Received: from silvi (unknown [85.195.207.206]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: gabriel) by chimborazo.ee.ethz.ch (Postfix) with ESMTPSA id C45F3400EC for ; Fri, 19 Aug 2022 01:18:44 +0200 (CEST) Date: Fri, 19 Aug 2022 01:18:41 +0200 From: Gabriel Wicki Message-ID: <20220818231841.vncyowy57s2awb74@silvi> MIME-Version: 1.0 Content-Disposition: inline Received-SPF: pass client-ip=129.132.2.15; envelope-from=gabriel@erlikon.ch; helo=chimborazo.ee.ethz.ch X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi! I've stumbled upon this beautiful little piece of software that let's you generate FFT designs in Verilog. Since it's free software I thought I'd ready it up for my favorite distribution! Thanks for merging! gabriel From 189ae40cb6104ac703f0171e32fe88208f9fcc25 Mon Sep 17 00:00:00 2001 From: Gabriel Wicki Date: Fri, 19 Aug 2022 01:14:06 +0200 Subject: [PATCH] gnu: Add fftgen. * gnu/packages/fpga.scm (fftgen): New variable. --- gnu/packages/fpga.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index 06d4a10e7e..e1ae577c65 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -552,3 +552,34 @@ (define-public verilator performs the design simulation. Verilator also supports linking its generated libraries, optionally encrypted, into other simulators.") (license license:lgpl3))) + +(define-public fftgen + (let ((commit "1d75a992efd0528edea128a903aafdabe133cb08") + (revision "0")) + (package + (name "fftgen") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ZipCPU/dblclockfft") + (commit commit))) + (file-name (git-file-name name + (string-take commit 8))) + (sha256 + (base32 + "0qq874yalzpjdwnxhc5df8a0ifywv29wcncb09945x56xplvkcmd")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") + "/bin"))) + (install-file "sw/fftgen" bin) #t)))))) + (synopsis "Generic Pipelined FFT Core Generator") + (description "fftgen produces FFT hardware designs in Verilog.") + (home-page "https://zipcpu.com/") + (license license:lgpl3))))