Fix GitHub issue #243 - support arbitrary width static bit arrays in vvp.

This commit is contained in:
Martin Whitaker 2019-07-24 09:13:41 +01:00
parent 89cbc42094
commit 8cd8bed22e
1 changed files with 1 additions and 2 deletions

View File

@ -902,8 +902,7 @@ void compile_var2_array(char*label, char*name, int last, int first,
} else if (lsb == 0 && msb == 63 && !signed_flag) {
arr->vals = new vvp_darray_atom<uint64_t>(arr->get_size());
} else {
// For now, only support the atom sizes.
assert(0);
arr->vals = new vvp_darray_vec2(arr->get_size(), arr->vals_width);
}
count_var_arrays += 1;
count_var_array_words += arr->get_size();