From 1c4b1c12e41ab40c4efd4b50ab3531056067f5d0 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 7 Dec 2015 15:02:30 +0100 Subject: [PATCH] vhdlpp: Fixes for 'wait for' statements emission. --- vhdlpp/sequential_emit.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vhdlpp/sequential_emit.cc b/vhdlpp/sequential_emit.cc index 8c2ea1fa7..c5309c039 100644 --- a/vhdlpp/sequential_emit.cc +++ b/vhdlpp/sequential_emit.cc @@ -567,7 +567,7 @@ int WaitForStmt::emit(ostream&out, Entity*ent, ScopeBase*scope) out << "#("; errors += delay_->emit(out, ent, scope); - out << ")"; + out << ");" << std::endl; return errors; } @@ -590,6 +590,7 @@ int WaitStmt::emit(ostream&out, Entity*ent, ScopeBase*scope) case UNTIL: if(!sens_list_.empty()) { out << "@("; + for(std::set::iterator it = sens_list_.begin(); it != sens_list_.end(); ++it) { if(it != sens_list_.begin()) @@ -598,7 +599,7 @@ int WaitStmt::emit(ostream&out, Entity*ent, ScopeBase*scope) (*it)->emit(out, ent, scope); } - out << ");"; + out << "); "; } out << "wait(";