[TCL] Problem in Tcl scripting

Status
Not open for further replies.

maulin sheth

Advanced Member level 2
Joined
Oct 24, 2010
Messages
502
Helped
90
Reputation
179
Reaction score
90
Trophy points
1,318
Location
Bangalore, India
Visit site
Activity points
4,161
Hello All,
I want to do tcl scripting like...
I have two lists..
now I want to execute synopsys command with both list...So how can I do that..
e.g.
set scan_in {si1 si2 si3 si4}
set scan_out {so1 so2 so3 so4}


set_dft_signal -port $scan_in (for all 4 scan_in signals)
set_dft_signal -port $scan_out (for all 4 scan out signals)

I want to do this for all 4 chain..
so how to do it in tcl with for command or foreach command?
Pl help me to solve this...
 

for {set i 0} {$i<4} {incr i} {
set_dft_signal -port [string range $scan_in $i $i];
set_dft_signal -port [string range $scan_out $i $i];
}
 
Hello rca, can we use combined like

for {set i 0} {$i<4} {incr i} {

set_scan_path -scan_data_in [string range $scan_in $i $i] -scan_data_out[string range $scan_out $i $i] ;

}
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…