-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIRRTL] Move SIntType and UIntType to ODS (#4529)
- Make WidthQualifiedTrait a type trait, renaming it to WidthQualifiedTypeTrait. - Rather than have users implement getWidth(), have users implement getWidthOrSentinel(). - enshrine the idea that the "widthOrSentinel/int32_t" is the most primitive format for widths of types. - this means that if a type has an attribute called widthOrSentinel, then it can use this trait for free - rename to WidthQualifiedTypeTrait - Remove WidthQualifiedType and WidthTypeStorage - In AnalogType, rename the widthBase attribute to widthOrSentinel - Make IntType use WidthQualifiedTypeTrait - Verify the widthOrSentinel value in a type verifier, rather than in the builder - Add a verifier for AnalogType - Let FIRRTLImplType take a baseCppClass parameter - Used to let S/UIntType to inherit from IntType.
- Loading branch information
Showing
3 changed files
with
124 additions
and
131 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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