Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library/scripts/adi_ip_xilinx: adi_ip_files update #1543

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions library/scripts/adi_ip_xilinx.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Loading