[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

instantiate modules in same file

Added by sathi perumal about 1 year ago

How do I instantiate module in same file?

for example

module foo (/*AUTOINST*/ /*AUTOINPUT*/ /*AUTOOUTPUT*/ endmodule

module foo_1 (/*AUTOINST*/) /*AUTOINPUT*/ /*AUTOOUTPUT*/ foo i_foo (/*AUTOINST*/); endmodule

Thanks Sathi


Replies (2)

RE: instantiate modules in same file - Added by Wilson Snyder about 1 year ago

Verilog-mode doesn't well support multiple modules in the same file, it's considered a bad practice; don't do it.

RE: instantiate modules in same file - Added by sathi perumal about 1 year ago

Thanks the reply. I will create a differetn file for the new module. Then I will "`include new_file.v" in the parent file.

Sathi

(1-2/2)