Skip to main content

RouteRTL

Command-line SDK for FPGA projects: simulation, linting, IP packages and vendor builds from one project.yml.

Website PyPI Registry License Python 3.10-3.14 cocotb 2.1


RouteRTL is a command-line SDK for FPGA development. A project is described in project.yml. RouteRTL reads the HDL sources, works out the compile order from the code, and drives the simulators, linters and vendor tools. The CLI command is rr.

Main functions:

  • Source discovery and dependency resolution for VHDL, Verilog and SystemVerilog. File lists and compile order are derived from the sources.
  • An IP package manager (rr pkg) backed by a public registry. Package dependencies are resolved across languages, and each package carries a license classification.
  • cocotb 2.1+ simulation (rr sim run) with shipped bus-functional models.
  • Linting (rr lint) with configurable profiles.
  • Synthesis, implementation and bitstream generation for AMD/Xilinx, Altera, Lattice and Microchip devices, plus an open-source Yosys/nextpnr flow.
  • An MCP server and agent skills for use with AI coding agents.

Installation

python3 -m venv .venv
source .venv/bin/activate
pip install routertl

Release wheels are built for Python 3.10 to 3.14. Python 3.10 is deprecated: the next minor release drops it. On 3.10, rr prints one stderr line saying so for each command (not with --json or in agent mode); RR_NO_PYTHON_DEPRECATION_WARNING=1 hides it.

On Ubuntu 24.04+, Debian 12+ and other systems with an externally managed Python, a plain pip install routertl outside a virtual environment fails with error: externally-managed-environment. Use the virtual environment above, or pipx install routertl for a global CLI. Not recommended: --break-system-packages. It installs into the system Python and can break system packages.

Optional extras: routertl[mcp] (MCP server), routertl[docker] (Docker tool images) and routertl[web] (web services). The base install does not include them.

Platform notes for Linux, WSL2 and macOS are in the Installation Guide.

Quick start

This example uses the uart_loopback template. It installs the open-logic/olo_intf_uart package from the registry, lints the design and runs two cocotb tests on NVC.

mkdir my_uart && cd my_uart
rr init --template uart_loopback --name my_uart
rr lint
rr sim run

rr init --template creates the project in the current directory. The template declares the UART package, so rr init installs it. To add a package to any project, run rr pkg add <vendor>/<package>.

rr init --list-templates lists the other templates. first_success uses only open-source tools (Icarus Verilog and Yosys) and needs no vendor license.

To create an empty project for a specific device:

rr init --name my_project --vendor xilinx --part xc7z020clg400-1

To import an existing Vivado (.xpr) or Quartus (.qpf / .qsf) project, use rr migrate run <project>.

IP packages

rr pkg search ethernet
rr pkg add open-logic/olo_base_fifo_async
rr pkg add fpganinja/taxi::taxi_eth_mac_1g
rr hierarchy --forest

rr pkg add resolves the package's HDL dependencies, including dependencies between VHDL and Verilog sources. rr hierarchy --forest prints the resolved design hierarchy. The registry is at registry.routertl.dev.

Commands

Area Commands
Project rr init, rr migrate run, rr status, rr doctor, rr hierarchy
Packages rr pkg search, rr pkg add, rr pkg update, rr deps graph
Lint rr lint
Simulation rr sim run, rr sim list, rr sim scaffold, rr testgen, rr watch
Build rr synth run, rr implementation run, rr bitstream run, rr report
Hardware rr program run
Tools rr install linux, rr install eda <tool>, rr install <tool>, rr docker install <env>
Waveforms rr routewave
AI agents rr mcp install, rr skills install, rr skills search

rr --help --all lists every command. rr help <command> shows the manual page for one command.

Supported tools

Function Tools
Simulation NVC, GHDL, Verilator, Icarus Verilog. Questa, Riviera-PRO, Active-HDL and Xcelium when installed.
Synthesis and implementation Vivado, Quartus Pro and Standard, Lattice Radiant and Diamond, Microchip Libero, Yosys with nextpnr
Waveforms RouteWave (rr routewave), GTKWave

rr install is the one install command. rr install eda <tool> builds NVC, GHDL, Verilator, Icarus Verilog and Yosys from pinned sources (also reached as rr eda install <tool>). rr install linux installs the host packages that rr linux build needs: the cross-compilers, dtc, mkimage, x11-utils, cmake, cpio and Buildroot's host programs; it is the one step before a first Linux build (rr install linux --check reports them and installs nothing). rr docker install provides container images for vendor tools.

Simulation API

import cocotb
from routertl.sim import Tb

@cocotb.test()
async def test_my_module(dut):
    tb = Tb(dut)
    await tb.start_clock()
    await tb.reset()

Each test file ends with a call to run_simulation(...) and runs with rr sim run <test>. rr sim bfms lists the shipped bus-functional models. They include AXI4, AXI4-Lite, AXI4-Stream, APB, Avalon-MM, Avalon-ST, Wishbone, UART, SPI, I2C and GMII.

Use with AI agents

RouteRTL includes an MCP server (rr_* tools for schema lookup, lint, simulation and diagnosis) and a set of agent skills. In the project directory:

pip install 'routertl[mcp]'   # MCP server dependencies (not in the base install)
rr mcp install                # registers the routertl server in ./.mcp.json
rr skills install             # copies the agent skills into ./.claude/skills

rr skills install --scope user installs the skills for all projects. rr skills search <words> finds a skill. Details are in MCP Server.

For Antigravity (agy), after the pip install above:

rr mcp install --client antigravity     # registers the routertl server in ~/.gemini/config/mcp_config.json
rr skills install --client antigravity  # copies the agent skills into ./.agents/skills

agy mcp list then shows routertl. Antigravity does not read .mcp.json or .claude/skills; it reads MCP servers from its user-level config only.

To check that the server is connected to the agent session you are in, run rr mcp status from the agent's shell. It exits 0 when the server is connected, 1 when it is not (and prints the line that connects it), and 2 when no agent runs above the shell. When rr runs under an agent without the server, it prints one line on stderr per agent session saying how to connect it. With the server connected, rr names the mcp__routertl__rr_* tool that returns a verb's result as structured data, at most once per verb and five times per session. RR_NO_HINTS=1 silences both lines. Neither line goes to stdout, and machine output (--json, --agent-mode, RR_AGENT_MODE=1) gets neither.

Documentation

Topic Link
First project First Steps Tutorial
Writing simulations Cocotb Quickstart
Protocol drivers Driver Cookbook
project.yml fields project.yml Reference
Existing projects Existing Project Migration
Errors Troubleshooting
All documents Documentation Index

Requirements

Tool Required Notes
Python 3.10 to 3.14 Yes CLI and simulation framework. 3.10 is deprecated; the next minor release drops it
Git Yes Version control and dependency tracking
NVC Recommended Default VHDL simulator. rr eda install nvc builds the pinned release. Ubuntu 24.04 has no nvc apt package. The release .deb also works.
GHDL >= 6.0 Recommended VHDL analysis for rr lint. rr eda install ghdl builds the pinned release. Ubuntu 24.04 apt provides 4.1.0, which rr lint does not accept.
Vendor tools Optional Vivado, Quartus, Radiant, Diamond or Libero, installed locally or with rr docker install

Acknowledgments

RouteRTL uses the following open-source projects:

Project Use in RouteRTL
NVC Default VHDL simulator
GHDL VHDL analysis, linting and simulation
cocotb Python verification framework used by rr sim
Verilator Verilog/SystemVerilog simulation and linting
Icarus Verilog Verilog simulation
xpm_vhdl VHDL models of Xilinx XPM macros
Rich Terminal output
Jinja2 Code generation templates

Support

Bug reports and feature requests: support@routertl.dev. Please include the output of rr doctor. See CONTRIBUTING.md for contributions.

RouteRTL is developed and maintained by Daniel J. Mazure (routertl.dev).

Licensing

RouteRTL is distributed under two licenses:

Component License Terms
CLI, build system, cocotb drivers, hooks, documentation, examples MIT Use, modification and redistribution with attribution
Compiled core (routertl_core/*.so) RouteRTL Core License 1.0 30-day evaluation; then free for registered individuals; a commercial license for organizations of any size; no competing product
Compiled core, academic use RouteRTL Academic License 1.0 Teaching and published non-commercial research at accredited institutions and non-profit public research institutes

The RouteRTL Core License 1.0 applies from release 5.1.0. Releases before 5.1.0 remain under the PolyForm Shield License 1.0.0 they were published with.

Licensing questions
Question Answer
Evaluation? Anyone may use RouteRTL, including its paid features, for 30 days.
Individual use after the evaluation? Free of charge for an individual's own benefit, after free registration. Paid features need a seat.
Use in a company? After the 30-day evaluation, an organization of any size needs a commercial license: a named seat per engineer or a company-wide Enterprise license. See routertl.dev/pricing.
Open-hardware project? Free for a hardware design whose sources are published under an open license. This covers the project, not other use by the organization that runs it.
Commercial products? Permitted under a commercial license. RouteRTL places no claim on the designs built with it.
Modification of the CLI or build system? Permitted under the MIT license.
Working around the licence key check? Not permitted under the RouteRTL Core License.
Redistribution of the PyPI wheel? Permitted, unmodified.
What counts as competing? Distributing an FPGA SDK that replaces RouteRTL. Using RouteRTL to build an FPGA product is not competing.

Copyright 2024-2026 Daniel J. Mazure

Metadata

Release files for routertl 5.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for routertl 5.7.0
File Actions
routertl-5.7.0-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details for routertl-5.7.0-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
routertl-5.7.0-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details for routertl-5.7.0-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
routertl-5.7.0-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details for routertl-5.7.0-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
routertl-5.7.0-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details for routertl-5.7.0-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
routertl-5.7.0-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details for routertl-5.7.0-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl

Total release size: 354.0 MB

Release files / routertl-5.7.0-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl

Download URL routertl-5.7.0-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Size 71.2 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
1da03965046172e40dc2a7cf70ab7b26b2dbb295f9247306615b4ba82d0f97cf
BLAKE2b-256 checksum
How to use checksums
4229f3c4102edf6d3fe960eef4adfbe15f094ee0dc2945bd15a669634da2aed8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / routertl-5.7.0-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl

Download URL routertl-5.7.0-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Size 71.0 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
171f25a2cf70b1124fce991e73fdff74d9d79a24a4f3802f3a0a30054d5cedb7
BLAKE2b-256 checksum
How to use checksums
ea77c51dac5c1ee3358eb4f4ca327e2119d5ea0420263f7bff81a95c58e45ae5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / routertl-5.7.0-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl

Download URL routertl-5.7.0-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Size 71.2 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
a3b5db02c383e3da12bf34174ecc93b1f62ff7aeeb4826c7210764f15c4268af
BLAKE2b-256 checksum
How to use checksums
691000fa092343f10a630774182145b48e77d86cb0400dec20cecfc2968a4c76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / routertl-5.7.0-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl

Download URL routertl-5.7.0-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Size 70.2 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
1408e91b3d1a1c9b2f90ef8146d117a58bbbe5f98b19686d15a99950a3524f1e
BLAKE2b-256 checksum
How to use checksums
eb9dc6e57164cefed17543fcca70abfc995a6d3e274c884428835fcc0c1c0f0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / routertl-5.7.0-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl

Download URL routertl-5.7.0-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Size 70.4 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
5c6d6ab6492c29c2f5ad08f92c2a5767f76c60448dc2a0e4a95a5d29e2a51e38
BLAKE2b-256 checksum
How to use checksums
58a1ce06dd1e7ac02bd92dc7a332202ce6d6ac7e507f8a95231701bace169941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for routertl 5.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page