I’m looking for a efficient way to instantiate a lot of signals with similar names. For example, I have 20 signals with the name “switch_0”, “switch_1” … “switch_19”. I don’t want to have to replicate the names everytime I need to use it.
Can you help me?
When I was using Specman E I could use “switch: list of simple_ports” (or something like that) to instantiate and work with a large number of signals.
One way to do this would be write up a macro which should get it down to 23 lines of code 3 for the property & 20 for the signals.
Or if you have the option then you could use a script to spit this code out for you or you could check out if a generate statement would do the trick for you.