From c32d76b0dba51f67c5af75867a436ff7446e1c9c Mon Sep 17 00:00:00 2001 From: Istvan-Zsolt Szekely Date: Wed, 11 Dec 2024 09:51:35 +0200 Subject: [PATCH] library/scripts/adi_ip_xilinx: adi_ip_files update - Creates a list for design sources and constraints and then imports all the files at once in their respective category Signed-off-by: Istvan-Zsolt Szekely --- library/scripts/adi_ip_xilinx.tcl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/library/scripts/adi_ip_xilinx.tcl b/library/scripts/adi_ip_xilinx.tcl index 9cf28a00bb..190099f512 100644 --- a/library/scripts/adi_ip_xilinx.tcl +++ b/library/scripts/adi_ip_xilinx.tcl @@ -305,13 +305,21 @@ proc adi_ip_create {ip_name} { # proc adi_ip_files {ip_name ip_files} { set proj_fileset [get_filesets sources_1] + set design_source_files [list] + set constraint_files [list] foreach m_file $ip_files { if {[file extension $m_file] eq ".xdc"} { - add_files -norecurse -fileset constrs_1 $m_file + lappend constraint_files $m_file } else { - add_files -norecurse -scan_for_includes -fileset $proj_fileset $m_file + lappend design_source_files $m_file } } + if {$design_source_files != {}} { + add_files -norecurse -scan_for_includes -fileset $proj_fileset $design_source_files + } + if {$constraint_files != {}} { + add_files -norecurse -fileset constrs_1 $constraint_files + } set_property "top" "$ip_name" $proj_fileset }