From c9206433b54d8ec81e2ff740fb0c888381d793fc Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Wed, 15 Apr 2015 14:28:27 +0200 Subject: [PATCH] adi_ip.tcl: Allow to specify processing order for adi_ip_constraints In order to be able to use get_clocks in a constraint file the constraint file needs to run after the constraint file that creates the clock. Allow to specify the processing order when adding a constraint file to a core. Signed-off-by: Lars-Peter Clausen --- library/scripts/adi_ip.tcl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/library/scripts/adi_ip.tcl b/library/scripts/adi_ip.tcl index 8861d34f9..6870cd445 100644 --- a/library/scripts/adi_ip.tcl +++ b/library/scripts/adi_ip.tcl @@ -45,12 +45,15 @@ proc adi_ip_files {ip_name ip_files} { set_property "top" "$ip_name" $proj_fileset } -proc adi_ip_constraints {ip_name ip_constr_files} { +proc adi_ip_constraints {ip_name ip_constr_files {processing_order early}} { set proj_filegroup [ipx::get_file_groups xilinx_verilogsynthesis -of_objects [ipx::current_core]] - ipx::add_file $ip_constr_files $proj_filegroup - set_property type {{xdc}} [ipx::get_files $ip_constr_files -of_objects $proj_filegroup] - set_property library_name {} [ipx::get_files $ip_constr_files -of_objects $proj_filegroup] + set f [ipx::add_file $ip_constr_files $proj_filegroup] + set_property -dict [list \ + type xdc \ + library_name {} \ + processing_order $processing_order \ + ] $f } proc adi_ip_properties {ip_name} {