Correctly pass if a darray element is signed or unsigned.

This commit is contained in:
Cary R 2014-12-05 18:21:47 -08:00
parent d62a307c34
commit 77ebfcacb9
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ static int eval_darray_new(ivl_expr_t ex)
int wid = msb>=lsb? msb - lsb : lsb - msb;
wid += 1;
fprintf(vvp_out, " %%new/darray %u, \"sb%d\";\n", size_reg, wid);
fprintf(vvp_out, " %%new/darray %u, \"%sb%d\";\n", size_reg,
ivl_type_signed(element_type) ? "s" : "", wid);
break;
default: