veripool / verilog-perl

Verilog parser, preprocessor, and related tools for the Verilog-Perl package
https://www.veripool.org/verilog-perl
Artistic License 2.0
121 stars 34 forks source link

Question: AUTO_TEMPLATE with mutiple modules and regexp #1180

Closed veripoolbot closed 7 years ago

veripoolbot commented 7 years ago

Author Name: George Cuan Original Redmine Message: 2324 from https://www.veripool.org


Hi,

Is the following form for AUTO_TEMPLATE supported? It doesn't seem to work.

/* 
modnameA AUTO_TEMPLATE "\(.*\)"
modnameB AUTO_TEMPLATE "\(.*\)"
(
.in(in_@),
.out(out_@),
)
*/

Above is simple example of the form. It will be nice to apply this form to a more complicated case using more modname's and more port connections. Thanks!

veripoolbot commented 7 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2017-09-03T20:17:52Z


Presently the same template can't be used multiple times, sorry, I'll see if that could be easily fixed.

/* 
modnameA AUTO_TEMPLATE "\(.*\)" 
modnameB AUTO_TEMPLATE "\(.*\)" 
(
.in(in_@),
.out(out_@),
)
*/