Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Using vl-dir direction control #410

Closed
veripoolbot opened this issue Nov 2, 2011 · 0 comments
Closed

Question: Using vl-dir direction control #410

veripoolbot opened this issue Nov 2, 2011 · 0 comments
Labels
question Further information is requested

Comments

@veripoolbot
Copy link
Collaborator


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.

@veripoolbot veripoolbot added the question Further information is requested label Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant