sonar/core/backends/cpp.py
def write_data_file(testbench_config):
    """
    Based on the test vectors, write the data file

    Args:
        testbench_config (Testbench): The testbench configuration

    Returns:
        list: List of commands to write to the data file
    """
    data_file = []
    for i, vector in enumerate(testbench_config.vectors):
        for thread in vector.threads:
            for command in thread.commands:
                data_file = write_line(
                    data_file,
                    command,
                    i,
                )

    data_file.append("finish NULL NULL 0 0")

    return data_file

    Based on the test vectors, write the data file

    Args:
        testbench_config (Testbench): The testbench configuration

    Returns:
        list: List of commands to write to the data file
    
Based on the test vectors, write the data file
Based on the test vectors write the data file
def write_data_file(testbench_config):
    data_file = []
    for i, vector in enumerate(testbench_config.vectors):
        for thread in vector.threads:
            for command in thread.commands:
                data_file = write_line(
                    data_file,
                    command,
                    i,
                )
    data_file.append("finish NULL NULL 0 0")
    return data_file
def write_data_file ( testbench_config ) : data_file = [ ] for i , vector in enumerate ( testbench_config . vectors ) : for thread in vector . threads : for command in thread . commands : data_file = write_line ( data_file , command , i , ) data_file . append ( "finish NULL NULL 0 0" ) return data_file
Based on the test vectors, write the data file
Based on the test vectors write the data file
"""
    Based on the test vectors, write the data file

    Args:
        testbench_config (Testbench): The testbench configuration

    Returns:
        list: List of commands to write to the data file
    """
List of commands to write to the data file
List of commands to write to the data file
list
testbench_config
The testbench configuration
The testbench configuration