vhdlpp: ExpBitstring elaborate_expr().

This commit is contained in:
Maciej Suminski 2015-01-27 16:30:56 +01:00
parent 51ce9f1a60
commit 60077f4f06
1 changed files with 4 additions and 0 deletions

View File

@ -594,6 +594,10 @@ const VType*ExpBitstring::fit_type(Entity*, ScopeBase*, const VTypeArray*atype)
int ExpBitstring::elaborate_expr(Entity*, ScopeBase*, const VType*)
{
int errors = 0;
std::vector<VTypeArray::range_t> range;
range.push_back(VTypeArray::range_t(new ExpInteger(value_.size() - 1), new ExpInteger(0)));
const VTypeArray*type = new VTypeArray(&primitive_STDLOGIC, range);
set_type(type);
return errors;
}