From ee25f0f2173fb09dd365a19ba715edf527e7e5f9 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sun, 10 Oct 2010 10:32:19 -0700 Subject: [PATCH] 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. --- tgt-vvp/vvp_scope.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tgt-vvp/vvp_scope.c b/tgt-vvp/vvp_scope.c index 2c1836c83..a31a16233 100644 --- a/tgt-vvp/vvp_scope.c +++ b/tgt-vvp/vvp_scope.c @@ -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;