litedram_gen: add missing ECP5DDRPHY constant

This commit is contained in:
Florent Kermarrec 2020-02-22 19:23:22 +01:00
parent 87578dd2e3
commit b8339886da
1 changed files with 1 additions and 0 deletions

View File

@ -348,6 +348,7 @@ class LiteDRAMCore(SoCSDRAM):
pads = platform.request("ddram"),
sys_clk_freq = sys_clk_freq)
self.comb += crg.stop.eq(self.ddrphy.init.stop)
self.add_constant("ECP5DDRPHY", None)
sdram_module = core_config["sdram_module"](sys_clk_freq, "1:2")
if core_config["sdram_phy"] in [litedram_phys.A7DDRPHY, litedram_phys.K7DDRPHY, litedram_phys.V7DDRPHY]:
assert core_config["memtype"] in ["DDR2", "DDR3"]