build/lattice/trellis: also generate bitstream in svf format

Before being able to program the board (e.g., with openocd), one
would have to convert the bitstream file to .svf using a python
script included with the source trellis distribution. However,the
trellis 'ecppack' utility can also generate .svf bitstream files
directly.
This commit is contained in:
Gabriel L. Somlo 2019-03-06 12:59:49 -05:00
parent 317dba8314
commit b014c7194b
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class LatticeTrellisToolchain:
self.build_template = [
"yosys -q -l {build_name}.rpt {build_name}.ys",
"nextpnr-ecp5 --json {build_name}.json --lpf {build_name}.lpf --textcfg {build_name}.config --{architecture} --package {package} --freq {freq_constraint}",
"ecppack {build_name}.config {build_name}.bit"
"ecppack {build_name}.config --svf {build_name}.svf --bit {build_name}.bit"
]
self.freq_constraints = dict()