CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [per'l'over] Failed to read the particular block in the given file: Edit Log



toolic
User

Aug 29, 2009, 6:02 PM


Views: 3111
Re: [per'l'over] Failed to read the particular block in the given file

When I use your Perl code to parse your Verilog file,
the 'always.txt' file is not empty, but it is incomplete.
Your regular expression does not account for consecutive
blank lines within an always block. One improvement might
be to change your '\n\n' to '\n\n\n'. However, this will not
account for 3 consecutive blank lines with your always block.

Verilog code is extremely difficult to parse. The best Perl tool
I have found is the CPAN Verilog::Parser suite. It does a great job
of finding module ports, but I have never tried to parse always
blocks with it.

Obviously, if you could guarantee that your Verilog code were
formatted more consistently, you would have an easier time parsing it.

PS. I realize I am replying to a question which is 1 year old (I just joined this forum).
But, perhaps my answer will be of use to someone searching
this forum.


(This post was edited by toolic on Sep 10, 2009, 12:37 PM)


Edit Log:
Post edited by toolic (User) on Aug 29, 2009, 6:04 PM
Post edited by toolic (User) on Sep 10, 2009, 12:37 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives