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
parent
88abf98bd6
commit
8a47d0f94b
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue