Skip to content

Repository files navigation

Anvil

Docs License: MIT

Open-source FPGA CLI for the F4PGA toolchain and RISC-V SoCs.

Anvil is a command-line tool for synthesizing, simulating and programming FPGAs with the fully open-source F4PGA flow (Yosys + VPR). On top it adds a small project model: a board registry, version-pinned reusable RTL modules, and a RISC-V SoC flow that compiles your C/C++ firmware straight into the bitstream. Runs on Linux (and Windows under WSL2).

Documentation

Quickstart

Assumes the toolchain (F4PGA, sv2v, openFPGALoader) is installed — see the installation guide above.

anvil doctor                       # verify the toolchain is installed
mkdir blinky && cd blinky
anvil init --board Nexys-A7-100T   # scaffold project
# edit top.sv and the .xdc pin constraints
anvil build                        # firmware (if any) + synth → bitstream
anvil program                      # flash the board

Repository layout

anvil.py        ← the CLI
programator.py  ← firmware .mem → Verilog RAM generator
boards.json     ← board registry
modules.json    ← module registry
modules/        ← reusable RTL modules (<name>@<version>/)
xdc/            ← per-board master pin constraints
examples/       ← example projects per board
docs/           ← developer documentation (MkDocs)

Contributing

See the contributing guide.

License

Released under the MIT License. © 2026 LogiSmith.

About

Open-source FPGA toolchain

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages