You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was interested in creating a template that adds a suffix to all the input wires in an instance. I was having trouble figuring it out based on the examples. Wilson helped me out, so I am posting the result here:
Author Name: Yervant Dermenjian
Original Redmine Message: 623 from https://www.veripool.org
I was interested in creating a template that adds a suffix to all the input wires in an instance. I was having trouble figuring it out based on the examples. Wilson helped me out, so I am posting the result here:
/* digital_block AUTO_TEMPLATE (
.(.) (\1@"(if (equal vl-dir "output") nil "_sh")"[]),
);/
dig_block(/autoinst/);
turns into:
dig_block(/autoinst/
// Outputs
.out1 (out1),
.out1 (out2[3:0]),
...
// Inputs
.in1 (in1_sh),
.in2 (in2_sh[3:0]),
...);
Thanks.
The text was updated successfully, but these errors were encountered: