veripool / verilog-mode

Verilog-Mode for Emacs with Indentation, Hightlighting and AUTOs. Master repository for pushing to GNU, verilog.com and veripool.org.
http://veripool.org/verilog-mode
GNU General Public License v3.0
246 stars 90 forks source link

Comments added in template can be forwarded to the instantiation? #1832

Closed rahulrbharadwaj closed 1 year ago

rahulrbharadwaj commented 1 year ago

Is the following possible?

/* dummy AUTO_TEMPLATE (

.(.)inp (1'b0), // Tied-off intentionally .out(.) (), // Intentionally left open

) */

dummy u_dummy (/*AUTOINST // Outputs .out_one (), // Intentionally left open .out_two (), // Intentionally left open // Inputs .first_inp (1'b0), // Tied-off intentionally .sec_inp (1'b0), //Tied-off intentionally );

(ie.) Is it possible to propagate the comments to the instance too instead of the Templated comment?

This might help me in reading this file and use it to get some results, so let me know if there is any way to do this.

wsnyder commented 1 year ago

Yes, put it before the AUTOINST see the documentation examples at https://veripool.org/verilog-mode/help/#verilog-auto-inst