hwt/synthesizer/interface.py
def _bit_length(self):
        """Sum of all width of interfaces in this interface"""
        try:
            interfaces = self._interfaces
        except AttributeError:
            interfaces = None

        if interfaces is None:
            # not loaded interface
            _intf = self._clone()
            _intf._loadDeclarations()
            interfaces = _intf._interfaces

        if interfaces:
            w = 0
            for i in interfaces:
                w += i._bit_length()
            return w
        else:
            return self._dtype.bit_length()
def _bit_length(self):
        try:
            interfaces = self._interfaces
        except AttributeError:
            interfaces = None

        if interfaces is None:
            # not loaded interface
            _intf = self._clone()
            _intf._loadDeclarations()
            interfaces = _intf._interfaces

        if interfaces:
            w = 0
            for i in interfaces:
                w += i._bit_length()
            return w
        else:
            return self._dtype.bit_length()
def _bit_length ( self ) : try : interfaces = self . _interfaces except AttributeError : interfaces = None if interfaces is None : # not loaded interface _intf = self . _clone ( ) _intf . _loadDeclarations ( ) interfaces = _intf . _interfaces if interfaces : w = 0 for i in interfaces : w += i . _bit_length ( ) return w else : return self . _dtype . bit_length ( )
Sum of all width of interfaces in this interface
Sum of all width of interfaces in this interface