phy/ecp5ddrphy: set cmd_delay from YAML config

This commit is contained in:
Anton Blanchard 2021-10-03 19:03:22 +11:00
parent e0cf7d579e
commit 99f53fcd1f
1 changed files with 2 additions and 1 deletions

View File

@ -566,7 +566,8 @@ class LiteDRAMCore(SoCCore):
assert core_config["memtype"] in ["DDR3"]
self.submodules.ddrphy = sdram_phy = core_config["sdram_phy"](
pads = platform.request("ddram"),
sys_clk_freq = sys_clk_freq)
sys_clk_freq = sys_clk_freq,
cmd_delay = core_config["cmd_delay"])
self.ddrphy.settings.add_electrical_settings(
rtt_nom = core_config["rtt_nom"],
rtt_wr = core_config["rtt_wr"],