phy/ecp5ddrphy: set rtt_nom/rtt_wr/ron from YAML config

This commit is contained in:
Anton Blanchard 2021-10-02 13:26:26 +10:00
parent feee435a57
commit e0cf7d579e
1 changed files with 4 additions and 0 deletions

View File

@ -567,6 +567,10 @@ class LiteDRAMCore(SoCCore):
self.submodules.ddrphy = sdram_phy = core_config["sdram_phy"]( self.submodules.ddrphy = sdram_phy = core_config["sdram_phy"](
pads = platform.request("ddram"), pads = platform.request("ddram"),
sys_clk_freq = sys_clk_freq) sys_clk_freq = sys_clk_freq)
self.ddrphy.settings.add_electrical_settings(
rtt_nom = core_config["rtt_nom"],
rtt_wr = core_config["rtt_wr"],
ron = core_config["ron"])
self.comb += crg.stop.eq(self.ddrphy.init.stop) self.comb += crg.stop.eq(self.ddrphy.init.stop)
self.comb += crg.reset.eq(self.ddrphy.init.reset) self.comb += crg.reset.eq(self.ddrphy.init.reset)