Get parameter output syntax right for vhdlpp.

This commit is contained in:
Stephen Williams 2011-10-16 11:01:32 -07:00
parent d9acfe57b1
commit 93e5a72d84
1 changed files with 2 additions and 3 deletions

View File

@ -40,7 +40,8 @@ int Entity::emit(ostream&out)
{
int errors = 0;
out << "module ";
out << "module \\" << get_name() << " ";
// If there are generics, emit them
if (parms_.size() > 0) {
out << "#(";
@ -56,8 +57,6 @@ int Entity::emit(ostream&out)
out << ") ";
}
out << get_name();
// If there are ports, emit them.
if (ports_.size() > 0) {
out << "(";