diff --git a/vhdlpp/vsignal.cc b/vhdlpp/vsignal.cc index 82c5f0760..ab949d7e1 100644 --- a/vhdlpp/vsignal.cc +++ b/vhdlpp/vsignal.cc @@ -22,6 +22,7 @@ # include "vsignal.h" # include "expression.h" # include "vtype.h" +# include "std_types.h" # include using namespace std; @@ -64,7 +65,7 @@ int Signal::emit(ostream&out, Entity*ent, ScopeBase*scope) Expression*init_expr = peek_init_expr(); if (init_expr) { /* Emit initialization value for wires as a weak assignment */ - if(!decl.reg_flag) + if(!decl.reg_flag && !type->type_match(&primitive_REAL)) out << ";" << endl << "/*init*/ assign (weak1, weak0) " << peek_name(); out << " = ";