Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Use AUTO_TEMPLATE number from instance name to control string in port signalname #1452
Author Name: David Rogoff
Original Assignee: Wilson Snyder (@wsnyder)
I'm using something like this to use the instance name to select the correct signal index for multiple instances:
This works fine. However, I have a bunch of signals that are not in the form xxx[index]. Instead, they look like
So, instead of using @ in the replacement string, I need a value of 0 to insert string 'even' and 1 to insert string 'odd'.
Any pointers on how to do this?
Original Redmine Comment
Untested, but hopefully close enough to get you there: