verilog-auto-inout-param

verilog-auto-inout-param is a compiled Lisp function in `verilog-mode.el'.

(verilog-auto-inout-param)

Expand AUTOINOUTPARAM statements, as part of M-x verilog-auto.
Take input/output/inout statements from the specified module and insert
into the current module. This is useful for making null templates and
shell modules which need to have identical I/O with another module.
Any I/O which are already defined in this module will not be redefined.
For the complement of this function, see `verilog-auto-inout-comp',
and to make monitors with all inputs, see `verilog-auto-inout-in'.

Limitations:
If placed inside the parenthesis of a module declaration, it creates
Verilog 2001 style, else uses Verilog 1995 style.

Module names must be resolvable to filenames. See `verilog-auto-inst'.

Parameters are inserted in the same order as in the original module.

Parameters do not have values, which is SystemVerilog 2009 syntax.

An example:

module ExampShell ();
/*AUTOINOUTPARAM("ExampMain")*/
endmodule

module ExampMain ();
parameter PARAM = 22;
endmodule

Typing M-x verilog-auto will make this into:

module ExampShell (/*AUTOARG*/i,o,io);
/*AUTOINOUTPARAM("ExampMain")*/
// Beginning of automatic parameters (from specific module)
parameter PARAM;
// End of automatics
endmodule

You may also provide an optional regular expression, in which case only
parameters matching the regular expression will be included. For example the
same expansion will result from only extracting parameters starting with i:

/*AUTOINOUTPARAM("ExampMain","^i")*/