zedboard: correct memory map

This commit is contained in:
Ilia Sergachev 2022-01-19 02:40:54 +01:00
parent fccb952c4b
commit 4f4d47dcdd
1 changed files with 7 additions and 6 deletions

View File

@ -48,6 +48,8 @@ class _CRG(Module):
class BaseSoC(SoCCore):
mem_map = {"csr": 0x43c0_0000} # default GP0 address on Zynq
def __init__(self, sys_clk_freq, with_led_chaser=True, **kwargs):
platform = digilent_zedboard.Platform()
@ -70,17 +72,16 @@ class BaseSoC(SoCCore):
self.submodules += axi.AXI2Wishbone(
axi = self.cpu.add_axi_gp_master(),
wishbone = wb_gp0,
base_address = 0x43c0_0000) # default GP0 address on Zynq
base_address = self.mem_map["csr"])
self.add_wb_master(wb_gp0)
# FIXME: collection of hacks to enable BIOS compilation
self.bus.add_region("sram", SoCRegion(
origin=128 * 1024 * 1024,
size=256 * 1024 * 1024)
origin=self.cpu.mem_map["sram"],
size=512 * 1024 * 1024 - self.cpu.mem_map["sram"])
)
self.bus.add_region("rom", SoCRegion(
origin=256 * 1024 * 1024,
size=8 * 1024 * 1024,
origin=self.cpu.mem_map["rom"],
size=256 * 1024 * 1024 // 8,
linker=True)
)
self.cpu.use_rom = True