Updating Local Source Files - 2022.1 English

Vivado Design Suite User Guide: System-Level Design Entry (UG895)

Document ID
UG895
Release Date
2022-05-11
Version
2022.1 English

When referencing remote sources, the Vivado IDE automatically detects source file changes. However, with source files that are copied to the local project, any changes to the original source file are not recognized. You must manually update local source files, if necessary.

You can update source files that are copied into the local project directory using either of the following methods:

  • In the Sources window, select the file, and select Replace File from the right-click menu.

    A file browser opens with the original source file referenced. If the original location changed, you are required to browse to the location and select the file. Click OK to reload the original source file, and update the project file with any changes to the source file.

    Note: You can also specify a different file, and the Vivado IDE replaces the selected file with the new file. For instance, if the original file is File_1.v, and you select File_2.v, the original File_1.v is removed from the project and File_2.v is copied into the project.
  • In the Sources window, select Add Sources from the right-click menu to add the newly updated source files to the project.

    The Vivado IDE imports the added file into the project. However, because there is already a local source with the same name, the Import Source Conflicts dialog box prompts you to resolve the conflict by overwriting the existing file or by not loading the newly added file. This happens only if the Copy Sources into Project box is checked in the Add Sources wizard; otherwise, the externally referenced file of the same name is added to the project.

    Figure 1. Import Source Conflicts Dialog Box