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.

Extrecting information from netlist using perl

Status
Not open for further replies.

subhashbaraiya

Newbie level 2
Joined
Aug 1, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
Hi All,


i want to make perl script which find input/output pin from perticular module in netlist and append it to another text file.....


Thanks&Regards,
Subhash
 

vijayR15

Full Member level 3
Joined
Dec 10, 2011
Messages
173
Helped
69
Reputation
136
Reaction score
63
Trophy points
1,308
Activity points
2,381
hai subhashbaraiya,

Have this scipt. I wrote this for u..

enjoy

Code:
open(VERINPUT,"io_ring.v") or die "Could not open input file..\n Please check it out.. \n";
open(VEROUTPUT,">io_ring_pin.v") or die "Could not open output file..\n Please check it out.. \n";
$line=<VERINPUT>;
while($line ne "")
{
	if ($line =~ /^module mphy_io_ring/) {
			$line=<VERINPUT>;
			while($line !~ /endmodule/) {
				if ($line =~ /input/ or $line =~ /output/) {
				print VEROUTPUT $line;
			while($line !~ /\;/)
				{
				print VEROUTPUT $line;
	$line=<VERINPUT>;
		}			
}
$line=<VERINPUT>;
}
}
$line=<VERINPUT>;
}
close $VERINPUT;
close $VEROUTPUT;

mention the module name instead of this in script "module mphy_io_ring".

- - - Updated - - -

:razz:
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top