hwt/synthesizer/interfaceLevel/propDeclrCollector.py
def _registerParameter(self, pName, parameter) -> None:
        """
        Register Param object on interface level object
        """
        nameAvailabilityCheck(self, pName, parameter)
        # resolve name in this scope
        try:
            hasName = parameter._name is not None
        except AttributeError:
            hasName = False
        if not hasName:
            parameter._name = pName
        # add name in this scope
        parameter._registerScope(pName, self)

        if parameter.hasGenericName:
            parameter.name = pName

        if parameter._parent is None:
            parameter._parent = self

        self._params.append(parameter)
def _registerParameter(self, pName, parameter) -> None:
        nameAvailabilityCheck(self, pName, parameter)
        # resolve name in this scope
        try:
            hasName = parameter._name is not None
        except AttributeError:
            hasName = False
        if not hasName:
            parameter._name = pName
        # add name in this scope
        parameter._registerScope(pName, self)

        if parameter.hasGenericName:
            parameter.name = pName

        if parameter._parent is None:
            parameter._parent = self

        self._params.append(parameter)
def _registerParameter ( self , pName , parameter ) -> None : nameAvailabilityCheck ( self , pName , parameter ) # resolve name in this scope try : hasName = parameter . _name is not None except AttributeError : hasName = False if not hasName : parameter . _name = pName # add name in this scope parameter . _registerScope ( pName , self ) if parameter . hasGenericName : parameter . name = pName if parameter . _parent is None : parameter . _parent = self self . _params . append ( parameter )
Register Param object on interface level object
Register Param object on interface level object