sonar/core/generate.py
def parse_sonar_tb(sonar_tb_filepath):
    """
    From the passed in sonar_tb_filepath, extract the name of the file and
    the directory relative to which the generated files will be created

    Args:
        sonar_tb_filepath (str): Path to the file used to create the
            testbench_config

    Returns:
        tuple: The name of the DUT, directory in which to place generated files
    """
    dut_name = os.path.basename(sonar_tb_filepath)[:-3]
    directory = os.path.join(
        os.path.dirname(sonar_tb_filepath), "build", dut_name
    )
    return dut_name, directory

    From the passed in sonar_tb_filepath, extract the name of the file and
    the directory relative to which the generated files will be created

    Args:
        sonar_tb_filepath (str): Path to the file used to create the
            testbench_config

    Returns:
        tuple: The name of the DUT, directory in which to place generated files
    
From the passed in sonar_tb_filepath, extract the name of the file and
the directory relative to which the generated files will be created
From the passed in sonar_tb_filepath extract the name of the file and the directory relative to which the generated files will be created
def parse_sonar_tb(sonar_tb_filepath):
    dut_name = os.path.basename(sonar_tb_filepath)[:-3]
    directory = os.path.join(
        os.path.dirname(sonar_tb_filepath), "build", dut_name
    )
    return dut_name, directory
def parse_sonar_tb ( sonar_tb_filepath ) : dut_name = os . path . basename ( sonar_tb_filepath ) [ : - 3 ] directory = os . path . join ( os . path . dirname ( sonar_tb_filepath ) , "build" , dut_name ) return dut_name , directory
From the passed in sonar_tb_filepath, extract the name of the file and
the directory relative to which the generated files will be created
From the passed in sonar_tb_filepath extract the name of the file and the directory relative to which the generated files will be created
"""
    From the passed in sonar_tb_filepath, extract the name of the file and
    the directory relative to which the generated files will be created

    Args:
        sonar_tb_filepath (str): Path to the file used to create the
            testbench_config

    Returns:
        tuple: The name of the DUT, directory in which to place generated files
    """
The name of the DUT, directory in which to place generated files
The name of the DUT directory in which to place generated files
tuple
sonar_tb_filepath
Path to the file used to create the
testbench_config
Path to the file used to create the testbench_config