Constraint Files Order - Constraint Files Order - 2026.1 English - UG903

Vivado Design Suite User Guide: Using Constraints (UG903)

Document ID
UG903
Release Date
2026-07-01
Version
2026.1 English

Without IP cores, constraints are in one set. The Vivado IDE reads XDC files or Tcl scripts in list order, top to bottom.

Follow these steps to change the file order in the Vivado IDE:

  1. Select the file in the constraints set.
  2. Move the file to the desired location in the list.

For example, in the following figure, wave_gen_pin.xdc was moved before wave_gen_timing.xdc 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 non-project mode, the order of read_xdc calls determines the evaluation order of the constraint files.