verilog-auto-inst-param-value
verilog-auto-inst-param-value is a variable defined in `
verilog-mode.el
'.
Its value is
nil
- This variable is safe as a file local variable if its value
satisfies the predicate `verilog-booleanp'.
Documentation:
Non-nil means AUTOINST will replace parameters with the parameter value.
If nil, leave parameters as symbolic names.
Parameters must be in Verilog 2001 format #(...), and if a parameter is not
listed as such there (as when the default value is acceptable), it will not
be replaced, and will remain symbolic.
For example, imagine a submodule uses parameters to declare the size of its
inputs. This is then used by an upper module:
module InstModule (o,i);
parameter WIDTH;
input [WIDTH-1:0] i;
endmodule
module ExampInst;
InstModule
#(.PARAM(10))
instName
(/*AUTOINST*/
.i (i[PARAM-1:0]));
Note even though PARAM=10, the AUTOINST has left the parameter as a
symbolic name. If `verilog-auto-inst-param-value' is set, this will
instead expand to:
module ExampInst;
InstModule
#(.PARAM(10))
instName
(/*AUTOINST*/
.i (i[9:0]));
You can customize this variable.