def __init__(self, csr_bank, addressbits, bankbits, nranks, databits, nphases=1):
self._nranks = nranks
- self._inti = dfi.Interface(addressbits, bankbits, nranks, databits, nphases)
- self.slave = dfi.Interface(addressbits, bankbits, nranks, databits, nphases)
- self.master = dfi.Interface(addressbits, bankbits, nranks, databits, nphases)
+ self._inti = dfi.Interface(addressbits, bankbits,
+ nranks, databits, nphases,
+ name="inti")
+ self.slave = dfi.Interface(addressbits, bankbits,
+ nranks, databits, nphases,
+ name="slave")
+ self.master = dfi.Interface(addressbits, bankbits,
+ nranks, databits, nphases,
+ name="master")
self._control = csr_bank.csr(4, "w") # sel, clk_en, odt, reset
class Interface:
- def __init__(self, addressbits, bankbits, nranks, databits, nphases=1):
+ def __init__(self, addressbits, bankbits, nranks, databits, nphases=1,
+ name=None):
self.phases = []
for p in range(nphases):
- p = Record(phase_description(
- addressbits, bankbits, nranks, databits))
+ p = Record(phase_description(addressbits, bankbits,
+ nranks, databits),
+ name=name)
self.phases += [p]
p.reset.reset = 1