vhdlpp: Do not emit explicit 'reg' for user-defined types.

This commit is contained in:
Maciej Suminski 2016-02-10 15:43:29 +01:00
parent d20549b27a
commit f88b48c7da
1 changed files with 2 additions and 2 deletions

View File

@ -245,8 +245,8 @@ int VTypeDef::emit_decl(ostream&out, perm_string name, bool reg_flag) const
{
int errors = 0;
if (!dynamic_cast<const VTypeEnum*>(type_))
out << (reg_flag ? "reg " : "wire ");
if(!reg_flag)
out << "wire ";
if(dynamic_cast<const VTypeArray*>(type_)) {
errors += type_->emit_def(out, name);