Closed longhorngeek closed 3 years ago
The text in the template is what will come out (after substitution)
.out_@ (this_is_out_[(@*8)+\1]),
Will thus make out_[...], so the simple answer is don't put the brackets into the template. But I think your larger question is probably how to get the @ to become a string. To do this you need to use lisp to calculate and convert it to a string.
/* a AUTO_TEMPLATE(
.out_@ (this_is_out_@"(number-to-string (+ (* @ 8) \1))"),
) */
Thank you! It works exactly as intended.
Hello Wilson,
I can't figure out the regex in AUTO_TEMPLATE to get the following output for 2 consecutive instances that each have 8 ports. I can make it work in bus form, but I need the signals to remain separate - not in a bus.
This puts it into a bus
Thanks and regards,
Jim