efinix_xyloni_dev_kit: Switch to openFPGALoader to load bitstream.
This commit is contained in:
parent
fc05379929
commit
0ac0f9e75d
|
@ -6,7 +6,7 @@
|
|||
|
||||
from litex.build.generic_platform import *
|
||||
from litex.build.efinix.platform import EfinixPlatform
|
||||
from litex.build.efinix import EfinixProgrammer
|
||||
from litex.build.openfpgaloader import OpenFPGALoader
|
||||
|
||||
# IOs ----------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -77,7 +77,7 @@ class Platform(EfinixPlatform):
|
|||
EfinixPlatform.__init__(self, "T8F81C2", _io, _connectors, toolchain="efinity")
|
||||
|
||||
def create_programmer(self):
|
||||
return EfinixProgrammer()
|
||||
return OpenFPGALoader("xyloni_spi")
|
||||
|
||||
def do_finalize(self, fragment):
|
||||
EfinixPlatform.do_finalize(self, fragment)
|
||||
|
|
|
@ -110,11 +110,10 @@ def main():
|
|||
|
||||
if args.load:
|
||||
prog = soc.platform.create_programmer()
|
||||
prog.load_bitstream(os.path.join(builder.gateware_dir, f"outflow/{soc.build_name}.bit"))
|
||||
prog.load_bitstream(os.path.join(builder.gateware_dir, f"outflow/{soc.build_name}.hex"))
|
||||
|
||||
if args.flash:
|
||||
from litex.build.openfpgaloader import OpenFPGALoader
|
||||
prog = OpenFPGALoader("xyloni_spi")
|
||||
prog = soc.platform.create_programmer()
|
||||
prog.flash(0, os.path.join(builder.gateware_dir, f"outflow/{soc.build_name}.hex"))
|
||||
prog.flash(args.bios_flash_offset, os.path.join(builder.software_dir, "bios/bios.bin"))
|
||||
|
||||
|
|
Loading…
Reference in New Issue