mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
lattice/programmer.py: Add iCESugar programmer
This commit is contained in:
parent
34ed5672c3
commit
5fd1cae618
1 changed files with 11 additions and 0 deletions
|
@ -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 a new issue