I am taking an array and printing its values using tcl scripts but when I run the script is says
can't read "ipname(0)": no such element in array
Here is the code I am using
array set ipname {UART TEST SPI I2C}
set asize 4
for {set i 0} {$i < $asize} {incr i} {
puts "$ipname($i) "
}