Merge pull request #905 from hansfbaier/master
lattice/programmer.py: Add iCESugar programmer
This commit is contained in:
commit
01a7ff44d2
|
@ -71,6 +71,17 @@ class IceStormProgrammer(GenericProgrammer):
|
||||||
def load_bitstream(self, bitstream_file):
|
def load_bitstream(self, bitstream_file):
|
||||||
self.call(["iceprog", "-S", 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 --------------------------------------------------------------------------------
|
# IceBurnProgrammer --------------------------------------------------------------------------------
|
||||||
|
|
||||||
class IceBurnProgrammer(GenericProgrammer):
|
class IceBurnProgrammer(GenericProgrammer):
|
||||||
|
|
Loading…
Reference in New Issue