code: def inspect_mem(self, mem):
          
          if isinstance(mem, RomBlock):
              raise PyrtlError("ROM blocks are not stored in the simulation object")
          return self.mems[self._mem_varname(mem)]
docs: Get the values in a map during the current simulation cycle.
  
          :param mem: the memory to inspect
          :return: {address: value}
  
          Note that this returns the current memory state. Modifying the dictonary
          will also modify the state in the simulator