Skip to content

vivado quirk #7

Description

@rpatel3001

Vivado appears to sometimes copy files into the generated IP sources that already exist in the precompiled libraries. This creates a conflict where add_from_compile_order_file and add_external_library both try to create the same library, which fails.

possible solutions in the order from better to worse IMO, not necessarily complete or accurate fixes, just based on some experimentation:

  1. In extract_compile_order.tcl, exclude files with property IS_VISIBLE == 0
  2. In extract_compile_order.tcl, exclude files with USED_IN contains ipstatic
  3. In add_from_compile_order_file, ignore any files with a library that is not xil_defaultlib, which all generated IP files should belong to. Probably best to make the name configurable because it xil_defaultlib is defined as the default in the XPR file so may be able to be changed.
  4. Require the user to run add_external_library after add_from_compile_order_file and add logic to skip any duplicates. This may not work if only some files are copied out by Vivado but some IP depends on files which are not copied out.

My specific issue is with Vivado 2025.2 and the hdl/ecc_v2_0_vl_rfs.v file being compiled into ecc_v2_0_18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions