Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Parse for a name after a keyword search in all the files, given directory as input (Verilog)

by toolic (Bishop)
on Feb 17, 2017 at 14:50 UTC ( #1182208=note: print w/replies, xml ) Need Help??


in reply to Parse for a name after a keyword search in all the files, given directory as input

If your Verilog files are very simple, you don't even need Perl. You can just use grep:
grep -w module *.v

If your files are not so simple, then you should use a Verilog parser: Verilog-Perl. For example, if some of your modules are commented out, or if the module keyword is not on the same line as the module name, etc.

  • Comment on Re: Parse for a name after a keyword search in all the files, given directory as input (Verilog)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1182208]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2022-01-19 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?