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: Concatenation variable in auto_template #1040

Closed
veripoolbot opened this issue Mar 4, 2016 · 1 comment
Closed

Question: Concatenation variable in auto_template #1040

veripoolbot opened this issue Mar 4, 2016 · 1 comment
Labels

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Yaacov Marko
Original Redmine Message: 1823 from https://www.veripool.org


Hi,
I'm having these two modules:
module_with_outputs (
output [1:0] sig1,
output [3:0] sig2
)

module_with_inputs (
input [3:0] sig1,
input [3:0] sig2
)

I'm trying to write an auto_template for instancing the second module ('module_with_inputs') to concatenate the missing MSBs for sig1:
.sig1 ({2'b0,sig1[1:0]}),
.sig2 (sig2[3:0]),

Can you please help me writing this template? I can't find a way to pass the 'module_with_inputs' template the information regarding the signals width of 'module_with_outputs'.

Thanks!

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2016-03-04T23:01:10Z


Short of writing an very large amount of custom Lisp code, there's no way to do that, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant