UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 60309

Vivado - How does Vivado handle the remote source files when project is manually copied to another location?

Description

I have a Vivado project with remote sources (source files that do not reside in a directory under the Vivado project directory). 

How does Vivado handle the remote source files when a project is manually copied to another location?

Solution

When a project contains remote source files and is manually copied to another location, Vivado should do the following:

  • Store the absolute path of each source.
  • Reconcile the absolute path of the source to establish a relative path based on the current location of the project.
  • Use the established relative path to the source if it exists.
  • Look for the source in the absolute path location if the established relative path to the source does not exist.
  • Give the following Critical Warning messages if it does not find the source files in original absolute path or the new established relative path.

Critical Warning: [Project 1-311] Could not find the file '<new relative path>/top.v', nor could it be found using path '<original absolute path>/top.v'.

If you manually copy the project to another location along with the remote source files, Vivado is able to find the source files in the new location as long as the relative location between the project and the files does not change. 


If you need the relative location to be changed, you can modify the .xml file in the <project_name>.data/source_x folder by following the steps below:


1) Modify the following line for each source file:

<File Path="$PPRDIR/../src/top.v">


2) Change the path to match the new relative location of the source files. The $PPRDIR is the current location of the .xpr file.

For example:

<File Path="$PPRDIR/../new/src/top.v">


You will need to reopen the Vivado project after changing the .xml file.

AR# 60309
Date Created 04/16/2014
Last Updated 05/12/2014
Status Active
Type General Article
Tools
  • Vivado Design Suite