verilog-mode icon indicating copy to clipboard operation
verilog-mode copied to clipboard

Making printing "// Templated" an option?

Open aolofsson opened this issue 5 months ago • 2 comments

I make extensive use of AUTOINST for stitching together designs and I do find that the static comments at the end of each instance port add little value, except on rare occasions as a quick filter to see if I messed up a templates. Very few of the next generation of designers use emacs (it's pretty much 100% vs code in my team) and they find that the "// Templated" clutter up the code. My goal is always write once, read many times so making the code cleaner looking is important.

I know this is probably low on the priority list, but if there is a way to enable something like what we have elsewhere, I sure would appreciate it. I suspect others might like it as well.

eg. (setq verilog-auto-endcomments nil)

                 .RXRDY                (NRXRDY[i]),             // Templated
                  .TXCKP                (NTXCKP[i]),             // Templated
                  .TXCKN                (NTXCKN[i]),             // Templated
                  .TXVLD                (NTXVLD[i]),             // Templated
                  .TXD                  (NTXD[i*IOW+:IOW]),      // Templated
                  .TXTRK                (NTXTRK[i]),             // Templated
                  .TXCKSB               (NTXCKSB[i]),            // Templated
                  .TXDSB                (NTXDSB[i*IOW+:IOW]),    // Templated
                  .io_txck              (no_txck[i]),            // Templated
                  .io_txvld             (no_txvld[i]),           // Templated

Previous issue:

https://github.com/veripool/verilog-mode/issues/1764

aolofsson avatar Jul 21 '25 12:07 aolofsson

Hi Andreas! There's already verilog-auto-inst-template-numbers we could add 'none to that. Might you be willing to make a pull for this including a test?

wsnyder avatar Jul 21 '25 12:07 wsnyder

Thanks Wilson! I will give it a shot.

aolofsson avatar Jul 21 '25 12:07 aolofsson