From 28f85c74038cdb8d78e5e0e0ed91a4655382f7da Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 5 May 2020 13:31:58 +0200 Subject: [PATCH] build/lattice/programmer: add UJProg (for ULX3S). --- litex/build/lattice/programmer.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/litex/build/lattice/programmer.py b/litex/build/lattice/programmer.py index e3d7a963..96204e18 100644 --- a/litex/build/lattice/programmer.py +++ b/litex/build/lattice/programmer.py @@ -130,3 +130,11 @@ class MyStormProgrammer(GenericProgrammer): with serial.Serial(self.serial_port) as port: with open(bitstream_file, "rb") as f: port.write(f.read()) + +# UJProg ------------------------------------------------------------------------------------------- + +class UJProg(GenericProgrammer): + needs_bitreverse = False + + def load_bitstream(self, bitstream_file): + subprocess.call(["ujprog", bitstream_file]) -- 2.30.2