vhdlpp: Do not emit explicit 'reg' for user-defined types.
This commit is contained in:
parent
d20549b27a
commit
f88b48c7da
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue