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;