build/lattice/programmer: add UJProg (for ULX3S).

This commit is contained in:
Florent Kermarrec 2020-05-05 13:31:58 +02:00
parent 85ac5ef133
commit 28f85c7403
1 changed files with 8 additions and 0 deletions

View 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])