sonar/endpoints.py
def instantiate(cls, indent):
        """
        Any modules that this interface instantiates in SV.

        Args:
            indent (str): Indentation to add to each line

        Returns:
            str: Updated ip_inst
        """
        name = cls.arguments["name"]
        initial_value = cls.arguments["value"]
        period = cls.arguments["period"]
        block = textwrap.indent(
            textwrap.dedent(
                f"""\
            initial begin
                {name}_endpoint[$$endpointIndex] = {initial_value};
                forever begin
                    #({period}/2) {name}_endpoint[$$endpointIndex] <= ~{name}_endpoint[$$endpointIndex];
                end
            end
            """
            ),
            indent,
        )
        return block

        Any modules that this interface instantiates in SV.

        Args:
            indent (str): Indentation to add to each line

        Returns:
            str: Updated ip_inst
        
Any modules that this interface instantiates in SV.
Any modules that this interface instantiates in SV .
def instantiate(cls, indent):
        name = cls.arguments["name"]
        initial_value = cls.arguments["value"]
        period = cls.arguments["period"]
        block = textwrap.indent(
            textwrap.dedent(
                f"""\
            initial begin
                {name}_endpoint[$$endpointIndex] = {initial_value};
                forever begin
                    #({period}/2) {name}_endpoint[$$endpointIndex] <= ~{name}_endpoint[$$endpointIndex];
                end
            end
            """
            ),
            indent,
        )
        return block
def instantiate ( cls , indent ) : name = cls . arguments [ "name" ] initial_value = cls . arguments [ "value" ] period = cls . arguments [ "period" ] block = textwrap . indent ( textwrap . dedent ( f"""\
            initial begin
                {name}_endpoint[$$endpointIndex] = {initial_value};
                forever begin
                    #({period}/2) {name}_endpoint[$$endpointIndex] <= ~{name}_endpoint[$$endpointIndex];
                end
            end
            """ ) , indent , ) return block
Any modules that this interface instantiates in SV.
Any modules that this interface instantiates in SV .
"""
        Any modules that this interface instantiates in SV.

        Args:
            indent (str): Indentation to add to each line

        Returns:
            str: Updated ip_inst
        """
None
str
cls
indent
Indentation to add to each line
Indentation to add to each line