pspec = TestMemPspec(ldst_ifacetype=ifacetype,
imem_ifacetype='', addr_wid=64,
mask_wid=4,
- reg_wid=32)
+ wb_data_wid=32,
+ reg_wid=64)
dut = ConfigLoadStoreUnit(pspec).lsi
vl = rtlil.convert(dut, ports=[]) # TODOdut.ports())
with open("test_loadstore_%s.il" % ifacetype, "w") as f:
print(self.dbus.sel.shape())
if isinstance(pspec.wb_data_wid, int):
pspecslave = deepcopy(pspec)
- pspecslave.data_wid = pspec.wb_data_wid
+ pspecslave.reg_wid = pspec.wb_data_wid
self.slavebus = Record(make_wb_layout(pspecslave))
self.cvt = WishboneDownConvert(self.dbus, self.slavebus)
self.mask_wid = mask_wid = pspec.mask_wid
m = Module()
if hasattr(self, "cvt"):
- m.submodules.cvt = cvt
+ m.submodules.cvt = self.cvt
with m.If(self.dbus.cyc):
with m.If(self.dbus.ack | self.dbus.err | ~self.m_valid_i):