In reply to stanley_sam:
As per your current code you have a component "comp" with N different imps like ch0_imp . ch1_imp etc .
Change these to an unpacked array of imp .
// Within comp
uvm_*_imp ch_imp[ 8 ] ;
So now within the parent component you can use only one Variable 'i'
foreach ( comp[ i] )
comp[i].connect( comp.ch_imp[ i ] ) ;