From: Gabriel L. Somlo Date: Wed, 6 Mar 2019 17:59:49 +0000 (-0500) Subject: build/lattice/trellis: also generate bitstream in svf format X-Git-Tag: 24jan2021_ls180~1367^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b014c7194be669d8c471c11074e775b0d6e6d471;p=litex.git 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. --- diff --git a/litex/build/lattice/trellis.py b/litex/build/lattice/trellis.py index f4c7c05c..63a8d75d 100644 --- a/litex/build/lattice/trellis.py +++ b/litex/build/lattice/trellis.py @@ -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()