Closed 1371906755 closed 8 months ago
You have too many backslashes there. You want:
/* test AUTO_TEMPLATE (
.\(.*\) (\1[]),
); */
Full example here: https://github.com/veripool/verilog-mode/blob/master/tests/autoinst_dedefine.v
verilog_mode have a error
Please attach a complete example as text (not screen shot) and say what the error is.
module example
#(
parameter ID_WIDTH = 6
)
(/*AUTOINPUT*/
/*AUTOOUTPUT*/
);
/*test AUTO_TEMPLATE(
.clk (clk),
.reset_n (reset_n),
.\\(.\*\\) (alloc_\1[]),
);*/
test #(
/*AUTOINSTPARAM*/)u_test(
/*AUTOINST*/);
endmodule
module test
#(
parameter ID_WIDTH = 6
)
(
output[ID_WIDTH -1:0] data_id,
input clk,
input reset_n
);
endmodule
This example will result in an error
See my example in the answer above. You have too many backslashes.
for example: