vhdlpp: Enums are based on integer type.

This way than can be used as output ports.
This commit is contained in:
Maciej Suminski 2015-06-24 21:59:26 +02:00
parent 49253c43ba
commit 5509b3c7a5
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ int VTypeArray::emit_with_dims_(std::ostream&out, bool packed, perm_string name)
int VTypeEnum::emit_def(ostream&out, perm_string name) const
{
int errors = 0;
out << "enum {";
out << "enum integer {";
assert(names_.size() >= 1);
out << "\\" << names_[0] << " ";
for (size_t idx = 1 ; idx < names_.size() ; idx += 1)