sonar/core/backends/sv_interfaces.py
def add_prologue(testbench, endpoint, interface):
    """
    Declare any variables that may be needed by the interface

    Args:
        testbench (str): The testbench component being generated
        interface (BaseInterface): The interface currently being looked at

    Returns:
        str: Updated testbench
    """
    prologue = endpoint.prologue("")
    prologue = include.replace_variables(prologue, interface)
    testbench += prologue + "\n"
    return testbench

    Declare any variables that may be needed by the interface

    Args:
        testbench (str): The testbench component being generated
        interface (BaseInterface): The interface currently being looked at

    Returns:
        str: Updated testbench
    
Declare any variables that may be needed by the interface
Declare any variables that may be needed by the interface
def add_prologue(testbench, endpoint, interface):
    prologue = endpoint.prologue("")
    prologue = include.replace_variables(prologue, interface)
    testbench += prologue + "\n"
    return testbench
def add_prologue ( testbench , endpoint , interface ) : prologue = endpoint . prologue ( "" ) prologue = include . replace_variables ( prologue , interface ) testbench += prologue + "\n" return testbench
Declare any variables that may be needed by the interface
Declare any variables that may be needed by the interface
"""
    Declare any variables that may be needed by the interface

    Args:
        testbench (str): The testbench component being generated
        interface (BaseInterface): The interface currently being looked at

    Returns:
        str: Updated testbench
    """
None
str
testbench
The testbench component being generated
The testbench component being generated
endpoint
interface
The interface currently being looked at
The interface currently being looked at