🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4896

Bug#1154259: RFP: python-fasm -- FPGA Assembly (FASM) parser and generator library

#4896
From: Karl Ljungkvist
Date: Tue, 17 Nov 2026 22:40
39 lines
3449 bytes
Package: wnpp
Severity: wishlist

* Package name    : python-fasm
  Version         : 0.0.2.post100
  Upstream Contact: SymbiFlow Authors <symbiflow@lists.librecores.org>
* URL             : https://github.com/chipsalliance/fasm
* License         : Apache-2.0
  Programming Lang: Python
  Description     : FPGA Assembly (FASM) parser and generator library

 FASM (FPGA Assembly) is a textual format for describing which features
 of an FPGA are enabled in a design. It is the interchange format
 between the place-and-route step and the bitstream assembly step in
 the open FPGA toolchains. This package provides a Python library to
 parse and write FASM files, and the "fasm" command line tool.

This library is the one dependency missing from Debian for packaging
fasm2frames from prjxray (#1154255). fasm2frames converts the FASM
output of nextpnr-himbaechel-xilinx into frames for xc7frames2bit, and
is the last step of the fully open Xilinx 7-series flow that is not yet
in Debian:

  yosys -> nextpnr-himbaechel-xilinx -> fasm2frames -> xc7frames2bit
        -> openFPGALoader

fasm has two parsers. The fast one is written in C++ with ANTLR4 and
built as a Cython extension. The slow one is pure Python and uses textX,
which is not packaged in Debian. fasm only imports textX when the ANTLR
parser is unavailable, so a package that builds the ANTLR parser does
not need textX at runtime. textX could be left as a Suggests, even
though upstream's setup.py lists it as a requirement.

Building the ANTLR parser may need the CMake install fixes from an open
upstream PR by Xiretza (https://github.com/chipsalliance/fasm/pull/87),
which openXC7 has already merged into its fork. They install the
parse_fasm shared library and the generated tags.py, make the ANTLR jar
path overridable, and fix linking the tests against a distribution
gtest. They change only the build, not the library's behaviour.
Technical Details
Message-ID: <O0A0i-cxln-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Karl Ljungkvist <k.ljungkvist@gmail.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154259: RFP: python-fasm -- FPGA Assembly (FASM) parser and generator library
Date: Tue, 17 Nov 2026 23:40:02 +0100
Message-ID: <O0A0i-cxln-5@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov 17 22:35:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: 1.401
Reply-To: Karl Ljungkvist <k.ljungkvist@gmail.com>, 1154259@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: wnpp@debian.org
X-Debian-Pr-Message: report 1154259
X-Debian-Pr-Package: wnpp
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003210
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 39
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 17 Nov 2026 23:33:14 +0100
X-Original-Message-ID: <179495479442.9542.7091451017070689975.reportbug@zen>