Get parameter output syntax right for vhdlpp.
This commit is contained in:
parent
d9acfe57b1
commit
93e5a72d84
|
|
@ -40,7 +40,8 @@ int Entity::emit(ostream&out)
|
||||||
{
|
{
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
|
|
||||||
out << "module ";
|
out << "module \\" << get_name() << " ";
|
||||||
|
|
||||||
// If there are generics, emit them
|
// If there are generics, emit them
|
||||||
if (parms_.size() > 0) {
|
if (parms_.size() > 0) {
|
||||||
out << "#(";
|
out << "#(";
|
||||||
|
|
@ -56,8 +57,6 @@ int Entity::emit(ostream&out)
|
||||||
out << ") ";
|
out << ") ";
|
||||||
}
|
}
|
||||||
|
|
||||||
out << get_name();
|
|
||||||
|
|
||||||
// If there are ports, emit them.
|
// If there are ports, emit them.
|
||||||
if (ports_.size() > 0) {
|
if (ports_.size() > 0) {
|
||||||
out << "(";
|
out << "(";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue