mirror of
https://github.com/litex-hub/litex-boards.git
synced 2025-01-03 03:43:36 -05:00
targets/efinix: Bitstreams now directly generated to gateware directory.
This commit is contained in:
parent
855fd7e3d7
commit
7ce8567d9b
3 changed files with 6 additions and 6 deletions
|
@ -239,12 +239,12 @@ 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"{soc.build_name}.bit"))
|
||||
|
||||
if args.flash:
|
||||
from litex.build.openfpgaloader import OpenFPGALoader
|
||||
prog = OpenFPGALoader("trion_t120_bga576")
|
||||
prog.flash(0, os.path.join(builder.gateware_dir, f"outflow/{soc.build_name}.hex"))
|
||||
prog.flash(0, os.path.join(builder.gateware_dir, f"{soc.build_name}.hex"))
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -89,12 +89,12 @@ 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"{soc.build_name}.bit"))
|
||||
|
||||
if args.flash:
|
||||
from litex.build.openfpgaloader import OpenFPGALoader
|
||||
prog = OpenFPGALoader("trion_t120_bga576")
|
||||
prog.flash(0, os.path.join(builder.gateware_dir, f"outflow/{soc.build_name}.hex"))
|
||||
prog.flash(0, os.path.join(builder.gateware_dir, f"{soc.build_name}.hex"))
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -107,11 +107,11 @@ def main():
|
|||
|
||||
if args.load:
|
||||
prog = soc.platform.create_programmer()
|
||||
prog.load_bitstream(os.path.join(builder.gateware_dir, f"outflow/{soc.build_name}.hex"))
|
||||
prog.load_bitstream(os.path.join(builder.gateware_dir, f"{soc.build_name}.hex"))
|
||||
|
||||
if args.flash:
|
||||
prog = soc.platform.create_programmer()
|
||||
prog.flash(0, os.path.join(builder.gateware_dir, f"outflow/{soc.build_name}.hex"))
|
||||
prog.flash(0, os.path.join(builder.gateware_dir, f"{soc.build_name}.hex"))
|
||||
prog.flash(args.bios_flash_offset, os.path.join(builder.software_dir, "bios/bios.bin"))
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in a new issue