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 scripting problem

Status
Not open for further replies.

dark_lord14

Newbie level 1
Joined
May 18, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,290
hi all,

i want your help regarding this problem of mine...i am quite new to this tcl scripting....

if suppose i have an instance name a/b/c and a related netlist, how can i write a tcl script which will take an instance ( say c ) and will return the module name under which it is defined ...?

for eg : say this regexp feature will take the instance i_pscore and save it in a variable 'target'.
but please give me an example script which will return the module name for $target ( which is 'pscore' ) from the netlist....

thanx a ton...! :) !!
 

yx.yang

Full Member level 4
Joined
May 29, 2008
Messages
236
Helped
49
Reputation
98
Reaction score
46
Trophy points
1,308
Location
ZhuHai, GuangDong, China
Activity points
2,661
Hi,
1: If you familiar with Perl, it can do it throug trace the RTL code files.
2: If you have DC or PT, you can do it by using some DC/PT command to trace this, DC/PT call them attributes. For example: get_attribute -of_object [get_cells a/b/c] "ref_name".
Thanks.
 

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
Your problem is more to know the Primetime command than the TCL.

get_lib_cells -of_objects $e
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top