adi_ip: Add helper function to add dependency to a IP core

Add a helper function that allows to add dependencies to IP cores to the
current IP core, this makes it possible to use a module from the other IP
without having to add the file itself to the current core.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2015-04-08 15:52:15 +02:00
parent 88abf98bd6
commit 8a47d0f94b
1 changed files with 8 additions and 0 deletions

View File

@ -176,3 +176,11 @@ proc adi_add_bus_clock {clock_signal_name bus_inf_name {reset_signal_name ""}} {
set_property value "ACTIVE_LOW" $reset_polarity set_property value "ACTIVE_LOW" $reset_polarity
} }
} }
proc adi_ip_add_core_dependencies {vlnvs} {
foreach file_group [ipx::get_file_groups * -of_objects [ipx::current_core]] {
foreach vlnv $vlnvs {
ipx::add_subcore $vlnv $file_group
}
}
}