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
253 stars 90 forks source link

AUTO_TEMPLATE - increment char indexes #1258

Closed veripoolbot closed 6 years ago

veripoolbot commented 6 years ago

Author Name: K W Original Redmine Issue: 1258 from https://www.veripool.org

Original Assignee: Wilson Snyder (@wsnyder)


Hi,

If I have module that uses characters to index the port names, can I use AUTO_TEMPLATE to increment the indexes in multiple instantiations?

For example:

block_name u0_block (.sigA (sigA), .sigB (sigB));

block_name u1_block (.sigA (sigC), .sigB (sigD));

block_name u2_block (.sigA (sigE), .sigB (sigF));

block_name u3_block (.sigA (sigG), .sigB (sigH));

veripoolbot commented 6 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2018-01-16T15:26:02Z


Please use forums for help (versus when reporting a bug).

Try this.

.sigA (sig@"(char-to-string (+ 65 @))"),