partner/aller,nereid & tagus: fix compilation
This commit is contained in:
parent
f7fbfb4639
commit
5193f7155a
|
@ -50,7 +50,7 @@ class CRG(Module):
|
|||
# AllerSoC -----------------------------------------------------------------------------------------
|
||||
|
||||
class AllerSoC(SoCSDRAM):
|
||||
SoCSDRAM.mem_map["csr"] = 0x00000000
|
||||
SoCSDRAM.mem_map["csr"] = 0x80000000
|
||||
SoCSDRAM.mem_map["rom"] = 0x20000000
|
||||
|
||||
def __init__(self, platform, with_pcie_uart=True):
|
||||
|
@ -88,7 +88,7 @@ class AllerSoC(SoCSDRAM):
|
|||
sdram_module = MT41J128M16(sys_clk_freq, "1:4")
|
||||
self.register_sdram(self.ddrphy,
|
||||
geom_settings = sdram_module.geom_settings,
|
||||
timing_settings = sdram_module.timing_settings)
|
||||
timing_settings = sdram_module.timing_settings)
|
||||
|
||||
# PCIe -------------------------------------------------------------------------------------
|
||||
# pcie phy
|
||||
|
@ -103,7 +103,7 @@ class AllerSoC(SoCSDRAM):
|
|||
|
||||
# pcie wishbone bridge
|
||||
self.submodules.pcie_wishbone = LitePCIeWishboneBridge(self.pcie_endpoint,
|
||||
lambda a: 1, shadow_base=self.shadow_base)
|
||||
lambda a: 1, shadow_base=self.mem_map["csr"])
|
||||
self.add_wb_master(self.pcie_wishbone.wishbone)
|
||||
|
||||
# pcie dma
|
||||
|
|
|
@ -50,7 +50,7 @@ class CRG(Module):
|
|||
# NereidSoC ----------------------------------------------------------------------------------------
|
||||
|
||||
class NereidSoC(SoCSDRAM):
|
||||
SoCSDRAM.mem_map["csr"] = 0x00000000
|
||||
SoCSDRAM.mem_map["csr"] = 0x80000000
|
||||
SoCSDRAM.mem_map["rom"] = 0x20000000
|
||||
|
||||
def __init__(self, platform, with_pcie_uart=True):
|
||||
|
@ -103,7 +103,7 @@ class NereidSoC(SoCSDRAM):
|
|||
|
||||
# pcie wishbone bridge
|
||||
self.submodules.pcie_wishbone = LitePCIeWishboneBridge(self.pcie_endpoint,
|
||||
lambda a: 1, shadow_base=self.shadow_base)
|
||||
lambda a: 1, shadow_base=self.mem_map["csr"])
|
||||
self.add_wb_master(self.pcie_wishbone.wishbone)
|
||||
|
||||
# pcie dma
|
||||
|
|
|
@ -52,7 +52,7 @@ class CRG(Module):
|
|||
# TagusSoC -----------------------------------------------------------------------------------------
|
||||
|
||||
class TagusSoC(SoCSDRAM):
|
||||
SoCSDRAM.mem_map["csr"] = 0x00000000
|
||||
SoCSDRAM.mem_map["csr"] = 0x80000000
|
||||
SoCSDRAM.mem_map["rom"] = 0x20000000
|
||||
|
||||
def __init__(self, platform, with_pcie_uart=True):
|
||||
|
@ -97,9 +97,7 @@ class TagusSoC(SoCSDRAM):
|
|||
self.submodules.pcie_phy = S7PCIEPHY(platform, platform.request("pcie_x1"), bar0_size=0x20000)
|
||||
self.pcie_phy.cd_pcie.clk.attr.add("keep")
|
||||
platform.add_platform_command("create_clock -name pcie_clk -period 8 [get_nets pcie_clk]")
|
||||
platform.add_false_path_constraints(
|
||||
self.crg.cd_sys.clk,
|
||||
self.pcie_phy.cd_pcie.clk)
|
||||
platform.add_false_path_constraints(self.crg.cd_sys.clk, self.pcie_phy.cd_pcie.clk)
|
||||
self.add_csr("pcie_phy")
|
||||
|
||||
# pcie endpoint
|
||||
|
@ -107,7 +105,7 @@ class TagusSoC(SoCSDRAM):
|
|||
|
||||
# pcie wishbone bridge
|
||||
self.submodules.pcie_wishbone = LitePCIeWishboneBridge(self.pcie_endpoint,
|
||||
lambda a: 1, shadow_base=self.shadow_base)
|
||||
lambda a: 1, shadow_base=self.mem_map["csr"])
|
||||
self.add_wb_master(self.pcie_wishbone.wishbone)
|
||||
|
||||
# pcie dma
|
||||
|
|
Loading…
Reference in New Issue