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 <lars@metafoo.de>main
parent
24df683a2a
commit
c9206433b5
|
@ -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} {
|
||||
|
|
Loading…
Reference in New Issue