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

Add Randomization Logic to Generated Memories #8170

Merged
merged 2 commits into from
Feb 2, 2025

Conversation

seldridge
Copy link
Member

When lowering hw.module.generated, copy any emit dialect fragments that
were on the original operation. This allows for fragments created
earlier to be propagated along without having to teach HWMemSimImpl
about them.

When generating modules as part of the SeqToSV conversion, put appropriate
memory generation fragments onto the created hw.module.generated. No
longer put memory randomization fragments onto the original module.

Fixes #8164.

Copy link
Member

@youngar youngar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

When lowering `hw.module.generated`, copy any emit dialect fragments that
were on the original operation.  This allows for fragments created
earlier to be propagated along without having to teach `HWMemSimImpl`
about them.

Signed-off-by: Schuyler Eldridge <[email protected]>
When generating modules as part of the SeqToSV conversion, put appropriate
memory generation fragments onto the created `hw.module.generated`.  No
longer put memory randomization fragments onto the original module.

Fixes #8164.

Signed-off-by: Schuyler Eldridge <[email protected]>
@seldridge seldridge force-pushed the dev/seldridge/issue-8164 branch from 9cb6175 to d47a9d2 Compare February 2, 2025 03:11
@seldridge seldridge merged commit d47a9d2 into main Feb 2, 2025
5 checks passed
@seldridge seldridge deleted the dev/seldridge/issue-8164 branch February 2, 2025 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[firtool] Memories are compiled with randomization logic, but not macros
2 participants