build/lattice/programmer: add UJProg (for ULX3S).
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 5 May 2020 11:31:58 +0000 (13:31 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 5 May 2020 11:31:58 +0000 (13:31 +0200)
litex/build/lattice/programmer.py

index e3d7a963d939418ff9866e3f8e2c5289e8e69aad..96204e189c67f783f6f11a3cdc26e2c342953e66 100644 (file)
@@ -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])