phy/s6ddrphy: use cwl only for DDR3
This commit is contained in:
parent
d9b5bb7247
commit
3fa77c8417
|
@ -375,7 +375,10 @@ class S6HalfRateDDRPHY(Module):
|
||||||
wrdata_en_d = Signal()
|
wrdata_en_d = Signal()
|
||||||
sd_sys += wrdata_en_d.eq(wrdata_en)
|
sd_sys += wrdata_en_d.eq(wrdata_en)
|
||||||
|
|
||||||
|
if memtype == "DDR3":
|
||||||
r_dfi_wrdata_en = Signal(max(self.settings.cwl, self.settings.cl))
|
r_dfi_wrdata_en = Signal(max(self.settings.cwl, self.settings.cl))
|
||||||
|
else:
|
||||||
|
r_dfi_wrdata_en = Signal(self.settings.cl)
|
||||||
sd_sdram_half += r_dfi_wrdata_en.eq(Cat(wrdata_en_d, r_dfi_wrdata_en))
|
sd_sdram_half += r_dfi_wrdata_en.eq(Cat(wrdata_en_d, r_dfi_wrdata_en))
|
||||||
|
|
||||||
if memtype == "DDR3":
|
if memtype == "DDR3":
|
||||||
|
|
Loading…
Reference in New Issue