[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

Embedding comments in parameter lists

Added by Ray Stevens 7 months ago

If you need verilog-mode to properly parse an included file that has multi-line parameter lists with embedded comments, then this simple patch might be helpful. As mentioned elsewhere, the current best approach is to list each parameter in a separate verilog statement. But I was dealing with a generated file so that was not an easy option for me. This 2 line edit did the trick, and allowed verilog-mode to successfully read in my parameters.

verilog-mode.el.paramComments.patch - verilog-mode patch to handle embedded comments in parameter lists within include file (2.1 kB)


Replies (3)

RE: Embedding comments in parameter lists - Added by Wilson Snyder 7 months ago

Well done. I'll take this, but first please post an example that needs it so I can add it to the tests (or it'll break in a year ;)

RE: Embedding comments in parameter lists - Added by Ray Stevens 7 months ago

Thanks!

I've attached 2 verilog files that demonstrate the patch. Put them both in the same directory, and then recompute AUTOs in testMultiLineParamsInclude.v. You should see an incorrect auto-sense list without the patch, and a correct list with the patch.

testMultiLineParams.v - module (417 Bytes)

testMultiLineParamsInclude.v - include (148 Bytes)

RE: Embedding comments in parameter lists - Added by Wilson Snyder 7 months ago

In rev722, thanks for the work.

(1-3/3)