Repository navigation
mem_dump: add summary of inferred memory usage - #3855
Merged
Merged
Conversation
Signed-off-by: Nishanth <ndszz306@gmail.com>
NishDs-06
force-pushed
the
mem-dump-summary
branch
from
February 2, 2026 13:54
780b12e to
987eed6
Compare
oharboe
reviewed
Feb 2, 2026
oharboe
left a comment
Collaborator
There was a problem hiding this comment.
Probably better that @povik comments on this. I just hacked together something that read in the .json file and that has done the job for a year or two...
These days, I think the best way to do this is to query the AST in Yosys directly?
That's what @povik did when updating synth.tcl to handle mocking of large memories which ties into the motivation for this report/error: avoid synthesis getting stuck silently forever on unintentional massive flip flop memories.
OpenROAD-flow-scripts/flow/scripts/synth.tcl
Lines 92 to 117 in 3666173
maliberty
approved these changes
Feb 2, 2026
Member
|
I think suggesting a different approach entirely is beyond the scope of this PR |
Collaborator
|
Thanks! I tried to clean up this code, but failed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR improves the usability of mem_dump.py by adding a small summary section
after the inferred memory table.
The summary highlights:
This makes it easier for users to understand why synthesis may be slow or fail
early due to large inferred memories, and complements the existing fail-fast
and memory mocking mechanisms discussed in #3645.