IVL_VT_BOOL variables generate .var/2x records.

IVL_VT_BOOL variables at the code generator should generate
.var/2x records so that the run time can do 2-value optimizations
and otherwise support atom2 values.
This commit is contained in:
Stephen Williams 2010-10-10 10:32:19 -07:00
parent dd7fecb577
commit ee25f0f217
1 changed files with 6 additions and 0 deletions

View File

@ -428,6 +428,12 @@ static void draw_reg_in_scope(ivl_signal_t sig)
const char*local_flag = ivl_signal_local(sig)? "*" : "";
switch (ivl_signal_data_type(sig)) {
case IVL_VT_BOOL:
if (ivl_signal_signed(sig))
datatype_flag = "/2s";
else
datatype_flag = "/2u";
break;
case IVL_VT_REAL:
datatype_flag = "/real";
break;