From b014c7194be669d8c471c11074e775b0d6e6d471 Mon Sep 17 00:00:00 2001 From: "Gabriel L. Somlo" Date: Wed, 6 Mar 2019 12:59:49 -0500 Subject: [PATCH] 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. --- litex/build/lattice/trellis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.30.2