Пример #1
0
def add_project_ip(vunit_obj,
                   project_file,
                   output_path,
                   vivado_path=None,
                   clean=False):
    """
    Add all IP files from Vivado project to the vunit project

    Caching is used to save time where Vivado is not called again if the compile order already exists.
    If Clean is True the compile order is always re-generated

    returns the list of SourceFile objects added
    """

    compile_order_file = join(output_path, "compile_order.txt")

    if clean or not exists(compile_order_file):
        create_compile_order_file(project_file,
                                  compile_order_file,
                                  vivado_path=vivado_path)
    else:
        print("Vivado project Compile order already exists, re-using: %s" %
              abspath(compile_order_file))

    return add_from_compile_order_file(vunit_obj, compile_order_file)
Пример #2
0
def add_project_ip(vunit_obj, project_file, output_path, vivado_path=None, clean=False):
    """
    Add all IP files from Vivado project to the vunit project

    Caching is used to save time where Vivado is not called again if the compile order already exists.
    If Clean is True the compile order is always re-generated

    returns the list of SourceFile objects added
    """

    compile_order_file = join(output_path, "compile_order.txt")

    if clean or not exists(compile_order_file):
        create_compile_order_file(project_file, compile_order_file, vivado_path=vivado_path)
    else:
        print("Vivado project Compile order already exists, re-using: %s" % abspath(compile_order_file))

    return add_from_compile_order_file(vunit_obj, compile_order_file)