參考資訊:
https://github.com/cr1901/prjtrellis/tree/jed
$ cd
$ git clone https://github.com/cr1901/prjtrellis -b jed
$ cd prjtrellis
$ git submodule update --init --recursive
$ cd libtrellis
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local .
$ make
$ sudo make install
$ ecppack
Error: input file is mandatory.
Project Trellis - Open Source Tools for ECP5 FPGAs
Version v0.0-1255-g839f9f5
ecppack: ECP5 bitstream packer
Copyright (C) 2018 gatecat <gatecat@ds0.me>
Usage: ecppack input.config [output.bit] [options]
Allowed options:
-h [ --help ] show help
-v [ --verbose ] verbose output
--db arg Trellis database folder location
--usercode arg USERCODE to set in bitstream
--idcode arg IDCODE to override in bitstream
--freq arg config frequency in MHz
--svf arg output SVF file
--svf-rowsize arg SVF row size in bits (default 8000)
--jed arg output JED file
--jed-note arg emit NOTE field in JED file
--compress compress bitstream to reduce size
--spimode arg SPI Mode to use (fast-read, dual-spi, qspi)
--background enable background reconfiguration in bitstream
--delta arg create a delta partial bitstream given a reference
config
--bootaddr arg set next BOOTADDR in bitstream and enable multi-boot
--input arg input textual configuration
--bit arg output bitstream file
--version show current version and exit