Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

[TCL] Problem in Tcl scripting

Status
Not open for further replies.

maulin sheth

Advanced Member level 1
Joined
Oct 24, 2010
Messages
494
Helped
90
Reputation
179
Reaction score
88
Trophy points
1,318
Location
Ahmedabad,INDIA
Activity points
4,100
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...
 

rca

Advanced Member level 4
Joined
May 20, 2010
Messages
1,485
Helped
354
Reputation
708
Reaction score
326
Trophy points
1,363
Location
Marin
Activity points
8,522
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];
}
 

maulin sheth

Advanced Member level 1
Joined
Oct 24, 2010
Messages
494
Helped
90
Reputation
179
Reaction score
88
Trophy points
1,318
Location
Ahmedabad,INDIA
Activity points
4,100
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.
Toggle Sidebar

Part and Inventory Search


Welcome to EDABoard.com

Sponsor

Sponsor

Design Fast


×
Top