scripts/adi_ip.tcl: adi_set_ports_dependency(): Allow to specify tie-off value

Typically when a port has a enablement dependency it also should have a
tie-off value to the port is connected to when disabled.

Make it possible to specify this tie-off value when calling
adi_set_ports_dependency().

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2017-04-06 19:54:46 +02:00
parent 5f83e20d33
commit f869ac9ed2
1 changed files with 4 additions and 1 deletions

View File

@ -48,9 +48,12 @@ proc adi_ip_infer_mm_interfaces {ip_name} {
}
proc adi_set_ports_dependency {port_prefix dependency} {
proc adi_set_ports_dependency {port_prefix dependency {driver_value {}}} {
foreach port [ipx::get_ports [format "%s%s" $port_prefix "*"]] {
set_property ENABLEMENT_DEPENDENCY $dependency $port
if {$driver_value != {}} {
set_property DRIVER_VALUE $driver_value $port
}
}
}