-
Notifications
You must be signed in to change notification settings - Fork 908
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
CXXRTL: (* top *) attribute causes wildcard port connections (.*) to break #2589
Comments
Sorry, I forgot: I'm not sure if it is a CXXRTL problem specifically. I just wasn't able to reproduce it when using the synth_ice40 command. |
Wildcard port connections are elaborated as part of the |
|
Thank you guys. I didn't know that |
The hierarchy pass does a lot more than just finding the top module, mainly resolving implicit (positional, wildcard) module connections. Fixes YosysHQ#2589.
Steps to reproduce the issue
test.sv:
Generate test.cc with:
Expected behavior
The output file test.cc should contain an eval function similar to this:
Actual behavior
The output file test.cc does not contain the line marked with the comment "IMPORTANT LINE" in the code snipped above. If the top-attribute is removed from the top module or if the port connections are done more explicit (.clk, .seq) instead of the wildcard, then the output file is correct and works as expected.
I'm not sure, maybe I'm not supposed to assign the top-attribute to the top module manually. In that case I apologize, please just close this issue, I will get the message.
The text was updated successfully, but these errors were encountered: