- if hasattr(self.core.l0.pimem, 'lsui'):
- hdlmem = self.core.l0.pimem.lsui.mem
- else:
- hdlmem = self.core.l0.pimem.mem
- if not isinstance(hdlmem, Memory):
- hdlmem = hdlmem.mem
- self.mem = []
+ self.mem = {}
+ # get the underlying HDL-simulated memory from the L0CacheBuffer
+ if hasattr(self.core, "icache"):
+ # err temporarily ignore memory
+ return # XXX have to work out how to deal with wb_get
+ hdlmem = get_l0_mem(self.core.l0)