mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
Internals: Fix VFlagBitPacked giving 4-state types.
This commit is contained in:
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user