vhdlpp: Do not emit reg/wire prefix for enums.

This commit is contained in:
Maciej Suminski 2015-06-24 10:53:28 +02:00
parent 311ffb27f2
commit 49253c43ba
1 changed files with 3 additions and 4 deletions

View File

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