Make sure offset of IVL_LPM_ARRAY is integer

This commit is contained in:
Nick Gasson 2008-07-17 16:41:34 +01:00
parent 9cf4792d53
commit 7677b59650
1 changed files with 3 additions and 2 deletions

View File

@ -213,7 +213,8 @@ static vhdl_expr *array_lpm_to_expr(vhdl_scope *scope, ivl_lpm_t lpm)
return NULL;
vhdl_var_ref *ref = new vhdl_var_ref(renamed, atype);
ref->set_slice(select);
vhdl_type integer(VHDL_TYPE_INTEGER);
ref->set_slice(select->cast(&integer));
return ref;
}