#ram_fname = "/tmp/test.bin"
#ram_fname = "/home/lkcl/src/libresoc/microwatt/" \
# "micropython/firmware.bin"
- #ram_fname = "/home/lkcl/src/libresoc/microwatt/" \
- # "tests/xics/xics.bin"
ram_fname = "/home/lkcl/src/libresoc/microwatt/" \
- "tests/decrementer/decrementer.bin"
+ "tests/xics/xics.bin"
+ #ram_fname = "/home/lkcl/src/libresoc/microwatt/" \
+ # "tests/decrementer/decrementer.bin"
#ram_fname = "/home/lkcl/src/libresoc/microwatt/" \
# "hello_world/hello_world.bin"
ram_fname = "/home/lkcl/src/libresoc/microwatt/" \
import litex_boards.targets.versa_ecp5 as versa_ecp5
import litex_boards.targets.ulx3s as ulx3s
+#import litex_boards.targets.arty as arty
+import digilent_arty as arty
+
from litex.build.lattice.trellis import trellis_args, trellis_argdict
from litex.soc.integration.soc_sdram import (soc_sdram_args,
self.comb += self.cpu.jtag_tdi.eq(jtag_tdi)
self.comb += jtag_tdo.eq(self.cpu.jtag_tdo)
+
+class ArtyTestSoC(arty.BaseSoC):
+ def __init__(self, sys_clk_freq=int(100e6), **kwargs):
+ kwargs["integrated_rom_size"] = 0x10000
+ #kwargs["integrated_main_ram_size"] = 0x1000
+ kwargs["csr_data_width"] = 32
+ kwargs['csr_address_width'] = 15 # limit to 0x8000
+ kwargs["l2_size"] = 0
+ #bus_data_width = 16,
+
+ arty.BaseSoC.__init__(self,
+ sys_clk_freq = sys_clk_freq,
+ cpu_type = "external",
+ cpu_cls = LibreSoC,
+ cpu_variant = "standardjtag",
+ #cpu_cls = Microwatt,
+ variant = "a7-100",
+ toolchain = "symbiflow",
+ **kwargs)
+
+
# Build
# ----------------------------------------------------------------------------
parser.add_argument("--toolchain", default="trellis", help="Gateware toolchain to use, trellis (default) or diamond")
builder_args(parser)
- trellis_args(parser)
soc_sdram_args(parser)
args = parser.parse_args()
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 == "ulx3s85f":
+ trellis_args(parser)
soc = ULX3S85FTestSoC(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))
+
else:
soc = VersaECP5TestSoC(sys_clk_freq=int(float(args.sys_clk_freq)),
**soc_sdram_argdict(args))