build/lattice/trellis: also generate bitstream in svf format
authorGabriel L. Somlo <gsomlo@gmail.com>
Wed, 6 Mar 2019 17:59:49 +0000 (12:59 -0500)
committerGabriel L. Somlo <gsomlo@gmail.com>
Wed, 6 Mar 2019 21:29:18 +0000 (16:29 -0500)
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.

litex/build/lattice/trellis.py

index f4c7c05cfcd24480e327d5325d0051b7f25b2348..63a8d75d4a0c5f96e9cfae2fe62bccfa4e894a6c 100644 (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()