adi_ip.tcl: Add helper function to add TTCL files to a core

Add a helper function which allows to add TTCL templates files to a core.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2015-09-15 18:59:35 +02:00
parent 7c896ba5f8
commit 522f30ce21
1 changed files with 9 additions and 0 deletions

View File

@ -56,6 +56,15 @@ proc adi_ip_constraints {ip_name ip_constr_files {processing_order late}} {
] $f
}
proc adi_ip_ttcl {ip_name ip_constr_files} {
set proj_filegroup [ipx::get_file_groups xilinx_v*synthesis -of_objects [ipx::current_core]]
set f [ipx::add_file $ip_constr_files $proj_filegroup]
set_property -dict [list \
type ttcl \
] $f
}
proc adi_ip_properties {ip_name} {
ipx::package_project -root_dir .