amaranth
Amaranth hardware definition language
What it is and what it does
Amaranth is a Python-based hardware definition language that lets you write FPGA and ASIC designs in Python instead of Verilog or VHDL. It includes a simulator, build system, and standard library, covering the full FPGA development workflow. The language aims to reduce common hardware design mistakes and support reusable component design. Amaranth can target any FPGA or ASIC process accepting behavioral Verilog-2001, with extended support for Lattice (iCE40, MachXO, ECP5, Nexus), AMD (Virtex, Spartan, 7-series, UltraScale), Altera, and Quicklogic families. Existing Verilog or VHDL code can be integrated into an Amaranth design flow, and vice versa. The toolchain is actively maintained and supported by LambdaConcept, ChipEleven, and Chipflow.
Use it for:
- Design FPGA logic for embedded systems or research projects using Python instead of learning Verilog
- Build reusable hardware components and libraries that can be composed into larger designs
- Simulate digital logic behavior before synthesis to catch design errors early
- Integrate Python-generated Verilog into existing Verilog-based design flows
- Target multiple FPGA families from a single Python codebase with vendor-specific toolchain integration
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Amaranth is a Python-based hardware definition language and toolchain for designing synchronous digital logic that targets FPGAs and ASICs, with integrated simulation, build system, and support for multiple vendor platforms.
Yes. Amaranth is actively maintained, has low install friction, permissive licensing, and fills a genuine niche for developers who prefer Python for hardware design. It's suitable for anyone targeting FPGAs or ASICs who wants to avoid Verilog/VHDL syntax and leverage Python's expressiveness. No known security vulnerabilities. The main prerequisite is familiarity with digital logic and access to external synthesis toolchains.
Install
amaranth on PyPI
pip
pip install amaranthuv
uv add amaranthpoetry
poetry add amaranthInstalling amaranth
Before you install
Low friction: pure Python wheel with four runtime dependencies (importlib_resources, jschon, pyvcd, Jinja2). Actively maintained—last commit 2026-08-12, release 29 days old, 2067 repository stars.
License in practice
BSD-2-clause permissive license allows use in both open-source and proprietary designs, provided the copyright notice is retained.
Quickstart
pip install amaranth
from amaranth import *
from amaranth.back import verilog
m = Module()
m.d.comb += []
print(verilog.convert(m, ports=[]))
Requires Python ~=3.8. Verilog generation and synthesis require external toolchains (Yosys, nextpnr, vendor tools) depending on target FPGA family.
Verify before relying
- Whether the simulator supports co-simulation with external tools or testbenches
- Performance characteristics for large designs (gate count, synthesis time)
- Availability of pre-built board definitions and SoC toolkit components
Package facts
| License | BSD-2-clause (permissive) |
| Python support | supports the current Python release (~=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — importlib_resources, jschon, pyvcd, Jinja2 |
| Maintenance | actively maintained — 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 81,776/month — #14,201 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: amaranth-0.5.9-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
cocotbcocotb is a Python framework for writing…
permissive · top 15,000 on PyPI
siliconcompilerSiliconCompiler is a modular hardware build…
permissive · top 15,000 on PyPI
fusesocFuseSoC is a package manager and build…
permissive · top 15,000 on PyPI
lambdalibLambdalib provides technology-agnostic hardware…
permissive · top 15,000 on PyPI
cocotb-testcocotb-test wraps cocotb hardware simulations…
permissive · top 15,000 on PyPI
edalizeEdalize abstracts the interface to EDA tools…
permissive · top 15,000 on PyPI
peakrdl-regblockCompiles SystemRDL register descriptions into…
copyleft · top 15,000 on PyPI
pioarduinopioarduino is a build system and embedded…
permissive · top 15,000 on PyPI
peakrdlPeakRDL is a control and status register (CSR)…
copyleft · top 15,000 on PyPI
cirq-googleProvides access to Google's Quantum Computing…
permissive · top 15,000 on PyPI