sonar/core/backends/sv_interfaces.py
def add_initial_blocks(testbench, endpoint, interface):
    """
    Add any statements an interface might require within an initial block

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

    Returns:
        str: Updated testbench
    """
    initial_blocks = []
    initial_blocks_raw = endpoint.initial_blocks(include.TAB_SIZE)
    for block in initial_blocks_raw:
        initial_blocks.append(include.replace_variables(block, interface))
    for block in initial_blocks:
        testbench += "initial begin\n" + block + "end\n"
    return testbench + "\n"

    Add any statements an interface might require within an initial block

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

    Returns:
        str: Updated testbench
    
Add any statements an interface might require within an initial block
Add any statements an interface might require within an initial block
def add_initial_blocks(testbench, endpoint, interface):
    initial_blocks = []
    initial_blocks_raw = endpoint.initial_blocks(include.TAB_SIZE)
    for block in initial_blocks_raw:
        initial_blocks.append(include.replace_variables(block, interface))
    for block in initial_blocks:
        testbench += "initial begin\n" + block + "end\n"
    return testbench + "\n"
def add_initial_blocks ( testbench , endpoint , interface ) : initial_blocks = [ ] initial_blocks_raw = endpoint . initial_blocks ( include . TAB_SIZE ) for block in initial_blocks_raw : initial_blocks . append ( include . replace_variables ( block , interface ) ) for block in initial_blocks : testbench += "initial begin\n" + block + "end\n" return testbench + "\n"
Add any statements an interface might require within an initial block
Add any statements an interface might require within an initial block
"""
    Add any statements an interface might require within an initial block

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

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