[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

verilog-mode v2k enable

Added by Alon Rachmani over 2 years ago

Hi I am trying to use verilog-mode for verilog 2001 ansi-style input. When I add the AUTOINPUT,AUTOOUTPUT in the module parenthesis as mentioned in the FAQ below. “How do I use Verilog 2001 style port lists? Place AUTOINPUT/AUTOOUTPUT etc inside the module () parenthesis.”

The outcome is verilog 95 style in the parenthesis. As far as I understood I need to set the verilog-mode-v2k parameter somewhere in the init.el. How do I add this and in which file to make the AUTO understand that a want verilog 2001 syntax? Regard Alon


Replies (4)

RE: verilog-mode v2k enable - Added by Wilson Snyder over 2 years ago

The below example works. If this is what you tried, then perhaps you're running a old version?

module parent
  (
   /*AUTOINPUT*/
   // Beginning of automatic inputs (from unused autoinst inputs)
   input [3:0]          a,                      // To sub_module of child_a.v
   // End of automatics
   /*AUTOOUTPUT*/
   // Beginning of automatic outputs (from unused autoinst outputs)
   output               d                       // From sub_module of child_a.v
   // End of automatics
   );
  child_a sub_module
    (/*AUTOINST*/
     // Outputs
     .d                                 (d),
     // Inputs
     .a                                 (a[3:0]));
endmodule // parent

module child_a
  (input [3:0]   a,
   output        d);
endmodule

RE: verilog-mode v2k enable - Added by Alon Rachmani over 2 years ago

Thanks Wilson, I downloaded the last version of verilog-mode yesterday and it still does not work. when you say "old version"; of which file you refer to?

Alon

RE: verilog-mode v2k enable - Added by Wilson Snyder over 2 years ago

What does M-x describe-variable verilog-mode-version

show? The most recent is 496. The feature you want was added in ~194.

RE: verilog-mode v2k enable - Added by Wilson Snyder over 2 years ago

This what i get, is it reasonable? again it is a PC version. Value: "Revision: 4.2"

That's not newer than 194, you misinstalled or have multiple versions of verilog-mode in your emacs search path.

(1-4/4)