vhdlpp: Fixes for 'wait for' statements emission.
This commit is contained in:
parent
ef3d0e4e0d
commit
1c4b1c12e4
|
|
@ -567,7 +567,7 @@ int WaitForStmt::emit(ostream&out, Entity*ent, ScopeBase*scope)
|
||||||
|
|
||||||
out << "#(";
|
out << "#(";
|
||||||
errors += delay_->emit(out, ent, scope);
|
errors += delay_->emit(out, ent, scope);
|
||||||
out << ")";
|
out << ");" << std::endl;
|
||||||
|
|
||||||
return errors;
|
return errors;
|
||||||
}
|
}
|
||||||
|
|
@ -590,6 +590,7 @@ int WaitStmt::emit(ostream&out, Entity*ent, ScopeBase*scope)
|
||||||
case UNTIL:
|
case UNTIL:
|
||||||
if(!sens_list_.empty()) {
|
if(!sens_list_.empty()) {
|
||||||
out << "@(";
|
out << "@(";
|
||||||
|
|
||||||
for(std::set<ExpName*>::iterator it = sens_list_.begin();
|
for(std::set<ExpName*>::iterator it = sens_list_.begin();
|
||||||
it != sens_list_.end(); ++it) {
|
it != sens_list_.end(); ++it) {
|
||||||
if(it != sens_list_.begin())
|
if(it != sens_list_.begin())
|
||||||
|
|
@ -598,7 +599,7 @@ int WaitStmt::emit(ostream&out, Entity*ent, ScopeBase*scope)
|
||||||
(*it)->emit(out, ent, scope);
|
(*it)->emit(out, ent, scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
out << ");";
|
out << "); ";
|
||||||
}
|
}
|
||||||
|
|
||||||
out << "wait(";
|
out << "wait(";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue