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

[FIRRTL] Add support for multi-bit FIRRTL Memory mask type, NFC #1864

Merged
merged 13 commits into from
Sep 24, 2021

Conversation

prithayan
Copy link
Contributor

Add support to add multi-bit mask type for FIRRTL memories.
This is required for flattening an aggregate memory data type, and enabling a finer mask granularity by extracting individual bits from the memory data element.
The mask bit was hard coded to 1 in several places, this PR will remove that restriction.

lib/Dialect/FIRRTL/FIRRTLOps.cpp Outdated Show resolved Hide resolved
lib/Dialect/FIRRTL/FIRRTLOps.cpp Outdated Show resolved Hide resolved
include/circt/Dialect/FIRRTL/FIRRTLDeclarations.td Outdated Show resolved Hide resolved
Comment on lines +1408 to +1409
// Mask of zero bits means, either there are no write/readwrite ports or the
// mask is of aggregate type.
Copy link
Member

Choose a reason for hiding this comment

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

This might be good to move into the main documentation comment for the method, since it's an important thing to know about the return value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, a proper documentation for firrtl.mem is missing. I will add it in a subsequent PR.

@prithayan prithayan merged commit ebd8269 into llvm:main Sep 24, 2021
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.

3 participants