build/lattice/programmer: add UJProg (for ULX3S).
This commit is contained in:
parent
85ac5ef133
commit
28f85c7403
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue