From 522f30ce213fe64a88bfb47f50fe26300e85d55e Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Tue, 15 Sep 2015 18:59:35 +0200 Subject: [PATCH] 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 --- library/scripts/adi_ip.tcl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/library/scripts/adi_ip.tcl b/library/scripts/adi_ip.tcl index b13f4efa6..572c407aa 100644 --- a/library/scripts/adi_ip.tcl +++ b/library/scripts/adi_ip.tcl @@ -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 .