From: Florent Kermarrec Date: Tue, 5 May 2020 11:31:58 +0000 (+0200) Subject: build/lattice/programmer: add UJProg (for ULX3S). X-Git-Tag: 24jan2021_ls180~386 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28f85c74038cdb8d78e5e0e0ed91a4655382f7da;p=litex.git build/lattice/programmer: add UJProg (for ULX3S). --- 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])