Skip to content

Commit

Permalink
selftest.gateware: Fix HyperRAM instantiation
Browse files Browse the repository at this point in the history
Fixes instantiation after changes in greatscottgadgets/luna#233.
  • Loading branch information
mndza committed Mar 7, 2024
1 parent f3b0453 commit 3f7eb71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cynthion/python/src/selftest/gateware.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from luna.gateware.architecture.car import LunaECP5DomainGenerator
from luna.gateware.interface.jtag import JTAGRegisterInterface
from luna.gateware.interface.ulpi import ULPIRegisterWindow
from luna.gateware.interface.psram import HyperRAMInterface
from luna.gateware.interface.psram import HyperRAMPHY, HyperRAMInterface

from .registers import *

Expand Down Expand Up @@ -65,8 +65,9 @@ def elaborate(self, platform):
# HyperRAM test connections.
#
ram_bus = platform.request('ram')
psram = HyperRAMInterface(bus=ram_bus, **platform.ram_timings)
m.submodules += psram
psram_phy = HyperRAMPHY(bus=ram_bus)
psram = HyperRAMInterface(phy=psram_phy.phy)
m.submodules += [psram_phy, psram]

psram_address_changed = Signal()
psram_address = registers.add_register(REGISTER_RAM_REG_ADDR, write_strobe=psram_address_changed)
Expand Down

0 comments on commit 3f7eb71

Please sign in to comment.