Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Help:about perl script

Status
Not open for further replies.

hustyw

Newbie level 6
Joined
Jun 11, 2006
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,374
Hi,all:
--------------------------------------------------------------------------------

I wanna write a perl script to control and run a design flow . I'd like my script can find and print each level depth module(submodule) of netlist after RTL synthesis. Another words:When given a netlist, the chosen depth of submodule and nodes can be listed out just use "cmd [option] netlistname.v" .
How to realized it by perl program?Any references and scripts model?I need your help because I'm not very familiar with perl and only study it a short time.

Added after 2 minutes:

My e-mail address is :yinwen(at)ic.sjtu.edu.cn Msn :yinwen372(at)hotmail.com
Looking forward to hearing from you !!
 

Don't know if this is what you want:

my @file;
while (<>)
{
if ($line =~ /^module/g && $line != /^endmodule/g)
{
next;
push($file, $_);
}
}
 

Steven852, Its not that easy!!!
He wants the module heirarchy out of a single netlist file. We need to put some nested loops to get into each hierarchy and print according to hierarchy.
Also, he needs the port list with each module!!

I guess its too much work to be one for free of cost :D
 

I have done it within a week,it really a tough job. It takes a lot of time to parse the module hierachy and macro , and key words etraction should be careful to avoid duplicate and lost of each submodule linked to top.

Added after 5 minutes:

By the way , r there any forums or websites that disscuss about perl ,shell,or tcl for IC designers .
Thx a lot!
 

Oops, sorry I misunderstood the question. I may ask this question next time.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top