diff --git a/vhdlpp/library.cc b/vhdlpp/library.cc index 91c197267..08a67d586 100644 --- a/vhdlpp/library.cc +++ b/vhdlpp/library.cc @@ -345,7 +345,7 @@ static void import_ieee_use(ActiveScope*res, perm_string package, perm_string na const VTypePrimitive primitive_BOOLEAN(VTypePrimitive::BOOLEAN, true); const VTypePrimitive primitive_BIT(VTypePrimitive::BIT, true); -const VTypePrimitive primitive_INTEGER(VTypePrimitive::INTEGER); +const VTypePrimitive primitive_INTEGER(VTypePrimitive::INTEGER, true); const VTypePrimitive primitive_REAL(VTypePrimitive::REAL); const VTypePrimitive primitive_STDLOGIC(VTypePrimitive::STDLOGIC, true); const VTypePrimitive primitive_CHARACTER(VTypePrimitive::CHARACTER); diff --git a/vhdlpp/vtype_emit.cc b/vhdlpp/vtype_emit.cc index fd65f9649..d0dea54bd 100644 --- a/vhdlpp/vtype_emit.cc +++ b/vhdlpp/vtype_emit.cc @@ -153,11 +153,11 @@ int VTypePrimitive::emit_primitive_type(ostream&out) const out << "logic"; break; case INTEGER: - out << "integer"; + out << "bool[31:0]"; + break; + case REAL: + out << "real"; break; - case REAL: - out << "real"; - break; case CHARACTER: out << "char"; break;