builder_argdict)
from libresoc import LibreSoC
-#from microwatt import Microwatt
+from microwatt import Microwatt
# HACK!
from litex.soc.integration.soc import SoCCSRHandler
arty.BaseSoC.__init__(self,
sys_clk_freq = sys_clk_freq,
cpu_type = "external",
- cpu_cls = LibreSoC,
- cpu_variant = "standardjtag",
- #cpu_cls = Microwatt,
+ #cpu_cls = LibreSoC,
+ #cpu_variant = "standardjtag",
+ cpu_cls = Microwatt,
variant = "a7-100",
toolchain = "symbiflow",
**kwargs)
builder_args(parser)
soc_sdram_args(parser)
+ trellis_args(parser)
args = parser.parse_args()
+ loadext = ".svf"
if args.fpga == "versa_ecp5":
- trellis_args(parser)
soc = VersaECP5TestSoC(sys_clk_freq=int(float(args.sys_clk_freq)),
**soc_sdram_argdict(args))
elif args.fpga == "artya7100t":
soc = ArtyTestSoC(sys_clk_freq=int(float(args.sys_clk_freq)),
**soc_sdram_argdict(args))
+ loadext = ".bit"
else:
soc = VersaECP5TestSoC(sys_clk_freq=int(float(args.sys_clk_freq)),
if args.load:
prog = soc.platform.create_programmer()
prog.load_bitstream(os.path.join(builder.gateware_dir,
- soc.build_name + ".svf"))
+ soc.build_name + loadext))
else:
if args.load or args.build:
- print("--load-from is incompatible with --load and --build", file=sys.stderr)
+ print("--load-from is incompatible with --load and --build",
+ file=sys.stderr)
sys.exit(1)
prog = soc.platform.create_programmer()
prog.load_bitstream(args.load_from)