phy/s7ddrphy: add assertion to avoid generating 1:2 controller with DDR3 (needs BL8 support in the PHY)

This commit is contained in:
Florent Kermarrec 2018-09-03 14:06:04 +02:00
parent 6017e7a763
commit e528e92b9b
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ def get_sys_phases(nphases, sys_latency, cas_latency):
class S7DDRPHY(Module, AutoCSR):
def __init__(self, pads, with_odelay, memtype="DDR3", nphases=4, sys_clk_freq=100e6, iodelay_clk_freq=200e6):
assert (not memtype == "DDR3" and nphases == 2) # FIXME: Needs BL8 support for nphases=2
tck = 2/(2*nphases*sys_clk_freq)
addressbits = len(pads.a)
bankbits = len(pads.ba)