targets/add_sdram: Specific size only when useful (ie for targets with > 1GB of RAM).

This commit is contained in:
Florent Kermarrec 2021-03-29 16:03:19 +02:00
parent ba01776432
commit 1ca8ef97a1
38 changed files with 1 additions and 41 deletions

View file

@ -94,7 +94,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41K64M16(sys_clk_freq, "1:2"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -147,14 +147,11 @@ class BaseSoC(SoCCore):
self.submodules.sdrphy = sdrphy_cls(platform.request("sdram"), sys_clk_freq)
if board == "5a-75e" and revision == "6.0":
sdram_cls = M12L64322A
sdram_size = 0x80000000
else:
sdram_cls = M12L16161A
sdram_size = 0x40000000
self.add_sdram("sdram",
phy = self.sdrphy,
module = sdram_cls(sys_clk_freq, sdram_rate),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -134,7 +134,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = sdram_cls(sys_clk_freq, sdram_rate),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -76,7 +76,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41K128M16(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -72,7 +72,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41K128M16(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -68,7 +68,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41J256M16(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -75,7 +75,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT47H64M16(sys_clk_freq, "1:2"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -81,7 +81,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41K256M16(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -47,7 +47,7 @@ class _CRG(Module):
class BaseSoC(SoCCore):
def __init__(self, sys_clk_freq=int(125e6), **kwargs):
platform = kx2.Platform()
platform = mercury_kx2.Platform()
# SoCCore ----------------------------------------------------------------------------------
SoCCore.__init__(self, platform, sys_clk_freq,
@ -67,7 +67,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = H5TC4G63CFR(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -75,7 +75,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT40A256M16(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -108,7 +108,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = IS43TR16256A(sys_clk_freq, "1:2"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)
self.comb += platform.request("dram_vtt_en").eq(0 if self.integrated_main_ram_size else 1)

View file

@ -193,7 +193,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = sdram_module(sys_clk_freq, "1:2"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -74,7 +74,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = AS4C32M8(sys_clk_freq, "1:1"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -82,7 +82,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = K4B2G1646F(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -100,7 +100,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41K256M16(sys_clk_freq, "1:2"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -104,7 +104,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41K64M16(sys_clk_freq, "1:2"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -68,7 +68,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = M12L64322A(sys_clk_freq, "1:1"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -130,7 +130,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = sdram_module(sys_clk_freq, "1:2"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -72,7 +72,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = MT48LC16M16(sys_clk_freq, "1:1"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -78,7 +78,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41J128M16(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -72,7 +72,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41J128M16(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -78,7 +78,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = IS42S16160(sys_clk_freq, sdram_rate),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -74,7 +74,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41K128M16(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -181,7 +181,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT46H32M16(sys_clk_freq, "1:2"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -87,7 +87,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = AS4C16M16(sys_clk_freq, sdram_rate),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192),
l2_cache_reverse = False
)

View file

@ -90,7 +90,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41K64M16(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -94,7 +94,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41K512M16(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -78,7 +78,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = IS42S16160(sys_clk_freq, sdram_rate),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -72,7 +72,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = IS42S16320(sys_clk_freq, "1:1"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -83,7 +83,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = AS4C32M16(sys_clk_freq, sdram_rate),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -67,7 +67,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = IS42S16320(sys_clk_freq, "1:1"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -67,7 +67,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = IS42S16320(self.clk_freq, "1:1"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -126,7 +126,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = sdrphy_mod(sys_clk_freq, sdram_rate),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -134,7 +134,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41J256M16(sys_clk_freq, "1:2"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -81,7 +81,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.sdrphy,
module = MT48LC16M16(sys_clk_freq, "1:1"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -73,7 +73,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT8JTF12864(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -69,7 +69,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT8JTF12864(sys_clk_freq, "1:4"),
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)

View file

@ -85,7 +85,6 @@ class BaseSoC(SoCCore):
self.add_sdram("sdram",
phy = self.ddrphy,
module = MT41J128M16(sys_clk_freq, "1:4"), #MT41J128M16XX-125
size = 0x40000000,
l2_cache_size = kwargs.get("l2_size", 8192)
)