adi_ip.tcl: Fix adi_add_multi_bus proc

The loop should iterate through the number of interfaces defined by the
$num attribute,
main
Istvan Csomortani 2019-05-23 15:59:25 +01:00 committed by István Csomortáni
parent bd43b565ce
commit 17afb4d9c5
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ proc adi_add_bus {bus_name mode abs_type bus_type port_maps} {
# \param[dependency] - Dependency (e.g "PARAMETER_NAME == 1") ??? {spirit:decode(id('MODELPARAM_VALUE.PARAM_NAME')) == CONST}
#
proc adi_add_multi_bus {num bus_name_prefix mode abs_type bus_type port_maps dependency} {
for {set i 0} {$i < 8} {incr i} {
for {set i 0} {$i < $num} {incr i} {
set bus_name [format "%s%d" $bus_name_prefix $i]
set bus [ipx::add_bus_interface $bus_name [ipx::current_core]]