[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

How to get a list of all include files?

Added by Shareef Jalloq about 2 years ago

Hey there,

perhaps I'm being dim, but I can't find a way to output a list of all the `include files in a tree. You can use Verilog::Getopt and $opt->depend_files to list everything, or Verilog::Netlist::Module to list all modules, but how can I get a list of include files.

Thanks.


Replies (2)

RE: How to get a list of all include files? - Added by Wilson Snyder about 2 years ago

There isn't a single call, but you can either:

1. "subtract" all the module->filenames from the depend_files.

2. Write a derived Netlist::Preproc object that intercepts each call to "sub include".

The two will behave differently if a module was declared from inside a include (first will exclude it, second will list it), which is better depends on your application.

RE: How to get a list of all include files? - Added by Shareef Jalloq about 2 years ago

Thanks a lot, I guess the 'subtract' method would be quickest and easiest for now.

Cheers.

(1-2/2)