Internals: Fix VFlagBitPacked giving 4-state types.
This commit is contained in:
parent
ff0dd26fe5
commit
8a5b8d5f38
|
|
@ -1410,6 +1410,8 @@ public:
|
|||
void dtypeChgWidthSigned(int width, int widthMin, AstNumeric numeric);
|
||||
void dtypeSetBitUnsized(int width, int widthMin, AstNumeric numeric) {
|
||||
dtypep(findBitDType(width, widthMin, numeric)); }
|
||||
void dtypeSetBitSized(int width, AstNumeric numeric) {
|
||||
dtypep(findBitDType(width, width, numeric)); } // Since sized, widthMin is width
|
||||
void dtypeSetLogicUnsized(int width, int widthMin, AstNumeric numeric) {
|
||||
dtypep(findLogicDType(width, widthMin, numeric)); }
|
||||
void dtypeSetLogicSized(int width, AstNumeric numeric) {
|
||||
|
|
|
|||
|
|
@ -1234,7 +1234,7 @@ public:
|
|||
, m_name(name), m_origName(name) {
|
||||
init();
|
||||
combineType(type);
|
||||
dtypeSetLogicSized(wantwidth, AstNumeric::UNSIGNED);
|
||||
dtypeSetBitSized(wantwidth, AstNumeric::UNSIGNED);
|
||||
m_declKwd = AstBasicDTypeKwd::BIT;
|
||||
}
|
||||
AstVar(FileLine* fl, AstVarType type, const string& name, AstVar* examplep)
|
||||
|
|
|
|||
Loading…
Reference in New Issue