Constraint Files Order - 2023.2 English

Vivado Design Suite User Guide: Using Constraints (UG903)

Document ID
UG903
Release Date
2023-11-01
Version
2023.2 English

In a project flow without any IP, all the constraints are located in a constraints set. By default, the order of the XDC files (or Tcl scripts) displayed in the Vivado IDE defines the read sequence used by the tool when loading an elaborated or synthesized design into memory. The file at the top of the list is read in first, and the bottom one is read in last. You can change the order by simply selecting the file in the IDE, and moving it to the desired place in the list.

For example, in the following figure, the file wave_gen_pin.xdc was moved to before the file wave_gen_timing.xdc by using drag and drop.

Figure 1. Changing XDC File Order in the Vivado IDE Example

The equivalent Tcl command is:

reorder_files -fileset constrs_1 -before [get_files wave_gen_timing.xdc] \ [get_files wave_gen_pins.xdc]
Table 1. File Order Before and After
File Order (Before) Order (After)
wave_gen_timing.xdc 1 2
wave_gen_pins.xdc 2 1

In the Non-Project mode, the sequence of the read_xdc calls determine the order in which the constraint files are evaluated.