(self, addr, offset, size, **kwargs)
Performs a single load.
Performs a single load.
Performs a single load .
def _single_load(self, addr, offset, size, **kwargs):
        """
        Performs a single load.
        """
        try:
            d = self.contents[addr]
        except KeyError:
            d = self._default_value(addr, self.width, self.variable_key_prefix + (addr,), **kwargs)
            self.contents[addr] = d

        if offset == 0 and size == self.width:
            return d
        else:
            return d.get_bytes(offset, size)
def _single_load ( self , addr , offset , size , * * kwargs ) : try : d = self . contents [ addr ] except KeyError : d = self . _default_value ( addr , self . width , self . variable_key_prefix + ( addr , ) , * * kwargs ) self . contents [ addr ] = d if offset == 0 and size == self . width : return d else : return d . get_bytes ( offset , size )