a project generator for the alchitry cu dev board
add dlatch and various cleanups
update readme
change postscript to png


browse  log 



You can also use your local clone with git send-email.

#gen_fpga — a project boilerplate generator for the alchitry cu dev board

generates a template verilog project for the alchitry cu board. includes constraints for the built-in leds and inputs, and constraints for the alchitry io board. want just the constraints for the io board?

creates a project of the structure:

├── constraints
│   ├── base.pcf
│   └── io.pcf
├── src
│   ├── top.v
│   ├── pulldown.v
│   ├── reset_conditioner.v
│   └── util.v
├── Makefile
├── README.md
└── .gitignore


it uses the icestorm toolchain (yosys, nextpnr-ice40, icepack) and the command line version of alchitry loader extracted from alchitry-loader-gui.

to extract loader from alchitry-loader-gui:

  1. download and extract the compiled tarball.
  2. cd alchitry-loader-1.0.0/tools and copy out loader to somewhere in your PATH
  3. cd ../driver
  4. sudo cp 99-alchitry.rules /etc/udev/rules.d/


copy gen_fpga to a directory in your PATH.


gen_fpga [PROJECT_NAME]
make load # flashes the bitstream to the fpga

builds will be conducted in a directory called build in the project root. build artifacts are left, including the json from yosys, the icestorm asc bitstream format, the aggregated constraints file, and the final bitstream.

use make clean to cleanup build artifacts.

use make show to display a block diagram in your png viewer of choice.


send patches and reports to ~nytpu/public-inbox@lists.sr.ht