self.rwds = Record([("oe", 1), ("o", dw//8), ("i", dw//8)])
-class TestHyperRAMPHY(Elaboratable):
+class HyperRAMPHY(Elaboratable):
def __init__(self, pads):
self.pads = pads
self.clk = pads.clk
from nmigen import (Record, Module, Signal, Elaboratable)
from nmigen.compat.sim import run_simulation
-from lambdasoc.periph.hyperram import HyperRAM, HyperRAMPads, TestHyperRAMPHY
+from lambdasoc.periph.hyperram import HyperRAM, HyperRAMPads, HyperRAMPHY
def c2bool(c):
return {"-": 1, "_": 0}[c]
(yield dut.phy.pads.rwds.o))
yield
- dut = HyperRAM(io=HyperRAMPads(), phy_kls=TestHyperRAMPHY)
+ dut = HyperRAM(io=HyperRAMPads(), phy_kls=HyperRAMPHY)
run_simulation(dut, [fpga_gen(dut), hyperram_gen(dut)],
vcd_name="sim.vcd")
(yield dut.phy.pads.rwds.oe))
yield
- dut = HyperRAM(io=HyperRAMPads(), phy_kls=TestHyperRAMPHY)
+ dut = HyperRAM(io=HyperRAMPads(), phy_kls=HyperRAMPHY)
run_simulation(dut, [fpga_gen(dut), hyperram_gen(dut)],
vcd_name="rd_sim.vcd")
(yield dut.phy.pads.rwds.oe))
yield
- dut = HyperRAM(io=HyperRAMPads(), phy_kls=TestHyperRAMPHY)
+ dut = HyperRAM(io=HyperRAMPads(), phy_kls=HyperRAMPHY)
run_simulation(dut, [fpga_gen(dut), hyperram_gen(dut)],
vcd_name="rd_sim.vcd")