lattice/programmer.py: Add iCESugar programmer

This commit is contained in:
Hans Baier 2021-05-07 10:55:48 +07:00
parent 34ed5672c3
commit 5fd1cae618

View file

@ -71,6 +71,17 @@ class IceStormProgrammer(GenericProgrammer):
def load_bitstream(self, bitstream_file):
self.call(["iceprog", "-S", bitstream_file])
# IceSugarProgrammer -------------------------------------------------------------------------------
class IceSugarProgrammer(GenericProgrammer):
needs_bitreverse = False
def flash(self, address, bitstream_file):
self.call(["icesprog", "-o", str(address), bitstream_file])
def load_bitstream(self, bitstream_file):
self.call(["icesprog", bitstream_file])
# IceBurnProgrammer --------------------------------------------------------------------------------
class IceBurnProgrammer(GenericProgrammer):