Fix emit of struct ports/declarations.
This commit is contained in:
parent
c7366e65cd
commit
7e202bb5ca
5
parse.y
5
parse.y
|
|
@ -3899,6 +3899,11 @@ module_port_list_opt
|
||||||
: '(' list_of_ports ')' { $$ = $2; }
|
: '(' list_of_ports ')' { $$ = $2; }
|
||||||
| '(' list_of_port_declarations ')' { $$ = $2; }
|
| '(' list_of_port_declarations ')' { $$ = $2; }
|
||||||
| { $$ = 0; }
|
| { $$ = 0; }
|
||||||
|
| '(' error ')'
|
||||||
|
{ yyerror(@2, "Errors in port declarations.");
|
||||||
|
yyerrok;
|
||||||
|
$$ = 0;
|
||||||
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
/* Module declarations include optional ANSI style module parameter
|
/* Module declarations include optional ANSI style module parameter
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ int Entity::emit(ostream&out)
|
||||||
|
|
||||||
VType::decl_t&decl = declarations_[port->name];
|
VType::decl_t&decl = declarations_[port->name];
|
||||||
|
|
||||||
if (sep) out << sep;
|
if (sep) out << sep << endl;
|
||||||
else sep = ", ";
|
else sep = ", ";
|
||||||
|
|
||||||
switch (port->mode) {
|
switch (port->mode) {
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ int VTypeRecord::emit_def(ostream&out, perm_string name) const
|
||||||
out << "; ";
|
out << "; ";
|
||||||
}
|
}
|
||||||
|
|
||||||
out << "} ";
|
out << "} \\" << name << " ";
|
||||||
return errors;
|
return errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue