class DFIInjector(Elaboratable):
def __init__(self, csr_bank, addressbits, bankbits, nranks, databits, nphases=1):
- print ("nranks", nranks, "nphases", nphases)
+ print ("nranks", nranks, "nphases", nphases, "addressbits", addressbits)
self._nranks = nranks
self._inti = dfi.Interface(addressbits, bankbits,
if hasattr(self.pads, "cs") and hasattr(self.pads.cs, "o0"):
nranks = len(self.pads.cs.o0)
databits = len(self.pads.dq.io)
- self.dfi = Interface(addressbits, bankbits, nranks, 4*databits, 4)
+ self.dfi = Interface(addressbits, bankbits, nranks, 4*databits, 4,
+ name="ecp5phy")
# PHY settings -----------------------------------------------------------------------------
tck = 1/(2*self._sys_clk_freq)