targets: Use new HyperRAM's sys_clk_freq parameter.
This commit is contained in:
parent
1e7c005480
commit
28da4f83eb
|
@ -104,7 +104,7 @@ class BaseSoC(SoCCore):
|
|||
|
||||
# HyperRAM ---------------------------------------------------------------------------------
|
||||
if with_hyperram:
|
||||
self.submodules.hyperram = HyperRAM(platform.request("hyperram"))
|
||||
self.submodules.hyperram = HyperRAM(platform.request("hyperram"), sys_clk_freq=sys_clk_freq)
|
||||
self.bus.add_slave("hyperram", slave=self.hyperram.bus, region=SoCRegion(origin=0x20000000, size=8*1024*1024))
|
||||
|
||||
# SD Card ----------------------------------------------------------------------------------
|
||||
|
|
|
@ -72,7 +72,7 @@ class BaseSoC(SoCCore):
|
|||
|
||||
# HyperRAM ---------------------------------------------------------------------------------
|
||||
if with_hyperram:
|
||||
self.submodules.hyperram = HyperRAM(platform.request("hyperram"))
|
||||
self.submodules.hyperram = HyperRAM(platform.request("hyperram"), sys_clk_freq=sys_clk_freq)
|
||||
self.bus.add_slave("hyperram", slave=self.hyperram.bus, region=SoCRegion(origin=0x20000000, size=8*1024*1024))
|
||||
|
||||
# SD Card ----------------------------------------------------------------------------------
|
||||
|
|
|
@ -62,7 +62,7 @@ class BaseSoC(SoCCore):
|
|||
|
||||
# HyperRAM ---------------------------------------------------------------------------------
|
||||
if with_hyperram:
|
||||
self.submodules.hyperram = HyperRAM(platform.request("hyperram"), latency=7)
|
||||
self.submodules.hyperram = HyperRAM(platform.request("hyperram"), latency=7, sys_clk_freq=sys_clk_freq)
|
||||
self.bus.add_slave("main_ram", slave=self.hyperram.bus, region=SoCRegion(origin=0x40000000, size=32*1024*1024))
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -87,7 +87,7 @@ class BaseSoC(SoCCore):
|
|||
# Use HyperRAM generic PHY as SRAM -----------------------------------------------------
|
||||
size = 8*1024*kB
|
||||
hr_pads = platform.request("hyperram", int(hyperram))
|
||||
self.submodules.hyperram = HyperRAM(hr_pads)
|
||||
self.submodules.hyperram = HyperRAM(hr_pads, sys_clk_freq=sys_clk_freq)
|
||||
self.bus.add_slave("sram", slave=self.hyperram.bus, region=SoCRegion(size=size))
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
|
|
|
@ -117,7 +117,7 @@ class BaseSoC(SoCCore):
|
|||
hyperram_pads = HyperRAMPads()
|
||||
self.comb += platform.request("O_hpram_ck").eq(hyperram_pads.clk)
|
||||
self.comb += platform.request("O_hpram_ck_n").eq(~hyperram_pads.clk)
|
||||
self.submodules.hyperram = HyperRAM(hyperram_pads)
|
||||
self.submodules.hyperram = HyperRAM(hyperram_pads, sys_clk_freq=sys_clk_freq)
|
||||
self.bus.add_slave("main_ram", slave=self.hyperram.bus, region=SoCRegion(origin=0x40000000, size=8*mB))
|
||||
|
||||
# Video ------------------------------------------------------------------------------------
|
||||
|
|
|
@ -92,7 +92,7 @@ class BaseSoC(SoCCore):
|
|||
hyperram_pads = HyperRAMPads(0)
|
||||
self.comb += ck[0].eq(hyperram_pads.clk)
|
||||
self.comb += ck_n[0].eq(~hyperram_pads.clk)
|
||||
self.submodules.hyperram = HyperRAM(hyperram_pads)
|
||||
self.submodules.hyperram = HyperRAM(hyperram_pads, sys_clk_freq=sys_clk_freq)
|
||||
self.bus.add_slave("main_ram", slave=self.hyperram.bus, region=SoCRegion(origin=self.mem_map["main_ram"], size=4*mB))
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
|
|
|
@ -67,7 +67,7 @@ class BaseSoC(SoCCore):
|
|||
SoCCore.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on C10 LP RefKit", **kwargs)
|
||||
|
||||
# HyperRam ---------------------------------------------------------------------------------
|
||||
self.submodules.hyperram = HyperRAM(platform.request("hyperram"))
|
||||
self.submodules.hyperram = HyperRAM(platform.request("hyperram"), sys_clk_freq=sys_clk_freq)
|
||||
self.add_wb_slave(self.mem_map["hyperram"], self.hyperram.bus)
|
||||
self.add_memory_region("hyperram", self.mem_map["hyperram"], 8*1024*1024)
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ class BaseSoC(SoCCore):
|
|||
# Use HyperRAM generic PHY as SRAM ---------------------------------------------------------
|
||||
size = int((64*1024*1024) / 8)
|
||||
hr_pads = platform.request("hyperram", 0)
|
||||
self.submodules.hyperram = HyperRAM(hr_pads)
|
||||
self.submodules.hyperram = HyperRAM(hr_pads, sys_clk_freq=sys_clk_freq)
|
||||
self.bus.add_slave("hyperram", slave=self.hyperram.bus, region=SoCRegion(origin=0x20000000, size=size))
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue