For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > August 2005 > How to write a Perl script to analyze a Verilog code?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to write a Perl script to analyze a Verilog code?
Fei

2005-08-03, 10:00 pm

Hi All
Here is an interesting question:
"Given a combinational circuit, for each primary output, find the
number of primary inputs that this output depends on."


It is easy to do structual analysis for a small-size circuit. But for a
circuit with million gates, we need to find a effecient way.
Now assume a gate-level Verilog code for this circuit is given, I plan
to write a script (e.g., Perl) to scan this Verilog code, then for each
output, trace back to find the primary input on which it depends. But I
am new to Perl. :(
So could you please give me any suggestion or any script example for
references? or is there other way to address this problem effeceintly?


Thanks very much!
Fei

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com