In reply to dave_59:
Since I constraint the max value of int1 to 22 , v[22 +: 10] i.e v[ 31 : 22 ]
Even for the min. value as 0 the range would be v[ 0+:10 ] i.e v [ 9:0 ] .
As these are Valid Index range I am confused why and when ( for which value of int1 ) does the Out of range Occur ?
Won’t the if condition ensure that the Indexes are within Valid range ?