tang_nano_9k: Fix HyperRAM integration.
This commit is contained in:
parent
787f44e7d9
commit
cc1b46f106
|
@ -76,7 +76,9 @@ class BaseSoC(SoCCore):
|
||||||
)
|
)
|
||||||
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
|
||||||
|
|
||||||
# HyperRam ---------------------------------------------------------------------------------
|
# HyperRAM ---------------------------------------------------------------------------------
|
||||||
|
if not self.integrated_main_ram_size:
|
||||||
|
# TODO: Use second 32Mbit PSRAM chip.
|
||||||
dq = platform.request("IO_psram_dq")
|
dq = platform.request("IO_psram_dq")
|
||||||
rwds = platform.request("IO_psram_rwds")
|
rwds = platform.request("IO_psram_rwds")
|
||||||
reset_n = platform.request("O_psram_reset_n")
|
reset_n = platform.request("O_psram_reset_n")
|
||||||
|
@ -93,11 +95,9 @@ class BaseSoC(SoCCore):
|
||||||
|
|
||||||
hyperram_pads = HyperRAMPads(0)
|
hyperram_pads = HyperRAMPads(0)
|
||||||
self.comb += ck[0].eq(hyperram_pads.clk)
|
self.comb += ck[0].eq(hyperram_pads.clk)
|
||||||
self.comb += ck_n[0].eq(~hyperram0_pads.clk)
|
self.comb += ck_n[0].eq(~hyperram_pads.clk)
|
||||||
self.submodules.hyperram0 = HyperRAM(hyperram_pads)
|
self.submodules.hyperram = HyperRAM(hyperram_pads)
|
||||||
self.bus.add_slave("main_ram", slave=self.hyperram.bus,
|
self.bus.add_slave("main_ram", slave=self.hyperram.bus, region=SoCRegion(origin=self.mem_map["main_ram"], size=4*mB))
|
||||||
region=SoCRegion(origin=self.mem_map["main_ram"], size=4*mB))
|
|
||||||
# TODO: utilize another 32Mbit PSRAM chip
|
|
||||||
|
|
||||||
# Leds -------------------------------------------------------------------------------------
|
# Leds -------------------------------------------------------------------------------------
|
||||||
if with_led_chaser:
|
if with_led_chaser:
|
||||||
|
|
Loading…
Reference in New Issue