From 75d263afc5aa58b5abbda91ce331d2c258c886a0 Mon Sep 17 00:00:00 2001 From: Istvan Csomortani Date: Fri, 27 Sep 2019 15:55:58 +0300 Subject: [PATCH] adi_project_xilinx: Add constraint files to constr_1 file set --- projects/scripts/adi_project_xilinx.tcl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/projects/scripts/adi_project_xilinx.tcl b/projects/scripts/adi_project_xilinx.tcl index 5393f002a..6a033dbaa 100644 --- a/projects/scripts/adi_project_xilinx.tcl +++ b/projects/scripts/adi_project_xilinx.tcl @@ -209,7 +209,14 @@ proc adi_project {project_name {mode 0} {parameter_list {}} } { # proc adi_project_files {project_name project_files} { - add_files -norecurse -fileset sources_1 $project_files + foreach pfile $project_files { + if {[string range $pfile [expr 1 + [string last . $pfile]] end] == "xdc"} { + add_files -norecurse -fileset constrs_1 $pfile + } else { + add_files -norecurse -fileset sources_1 $pfile + } + } + # NOTE: top file name is always system_top set_property top system_top [current_fileset] }