-
Notifications
You must be signed in to change notification settings - Fork 396
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
[LOGGING] Fixed LUT Sizing Issue #2686
[LOGGING] Fixed LUT Sizing Issue #2686
Conversation
Thanks. I suggest adding a total LUTs line as well, and then updating the parsing rule. That should fix CI (seems we were parsing the 6-LUT line as the total LUTs! ). |
@vaughnbetz That makes sense to me! Would you like me to include 0-LUTs in that total? I am not 100% on the semantics of what a "0-LUT" is beyond being a constant generator. |
Sure, I'd count it. It is a constant generator. |
3d6fc1c
to
d2d4254
Compare
@vaughnbetz I have updated the circuit statistics to include the total number of LUTs. I have tried to follow the format of the rest of the logs: Let me know what you think. I personally like it; but I can understand if people may be confused by ".output" coming after all the LUT sizes. |
Looks good to me! |
d2d4254
to
e72dccf
Compare
The size of the LUTs were being calculated incorrectly by using the width of the port instead of the actual number of pins in the port. The parsing scripts for the golden results were also incorrect since they were using the number of 6-LUTs as the total number of LUTs.
e72dccf
to
859276c
Compare
@vaughnbetz This PR has passed CI. Please review and merge when you have a moment. I have updated the parsing script, which required me to regenerate the golden results (since some testcases were mis-counting the number of LUTs in designs). |
Fixed issue where the LUT sizing for printing the circuit statistics was using the port width instead of the number of input pins.
The CLMA example from the issue:
Now looks like this:
Which makes a lot more sense.
closes #2685
EDIT:
Based on Vaughn's comments below, changed the format of the statistics to the following:
This now includes the total number of LUTs (called .names here), as well as a breakdown of their sizes.