Merge pull request #905 from hansfbaier/master

lattice/programmer.py: Add iCESugar programmer
This commit is contained in:
enjoy-digital 2021-05-07 08:16:55 +02:00 committed by GitHub
commit 01a7ff44d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -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):