Various minor enum bugs.

This commit is contained in:
Stephen Williams 2010-11-22 19:41:00 -08:00
parent 3b91a22791
commit da18ba6e4e
3 changed files with 4 additions and 3 deletions

View File

@ -170,7 +170,7 @@ static PLI_INT32 ivl_method_next_calltf(PLI_BYTE8*data)
} while (! compare_value_eequal(&item_value, &memb_value, use_width));
if (memb != 0);
if (memb != 0)
memb = vpi_scan(enum_list);
if (memb != 0)

View File

@ -131,7 +131,7 @@ static void enum_name_get_value(vpiHandle obj, p_vpi_value value)
if (ref->val4.size() > 0)
vpip_vec4_get_value(ref->val4, ref->val4.size(), false, value);
else
vpip_vec2_get_value(ref->val2, ref->val2.size(), true, value);
vpip_vec2_get_value(ref->val2, ref->val2.size(), false, value);
}
static const struct __vpirt enum_name_rt = {

View File

@ -26,6 +26,7 @@
# include <cassert>
# include <cstdlib>
# include <cmath>
# include <iostream>
vpi_mode_t vpi_mode_flag = VPI_MODE_NONE;
FILE*vpi_trace = 0;
@ -728,7 +729,7 @@ void vpip_vec2_get_value(const vvp_vector2_t&word_val, unsigned width,
case vpiObjTypeVal:
vp->format = vpiIntVal;
case vpiIntVal:
vector2_to_value(word_val, vp->value.integer, true);
vector2_to_value(word_val, vp->value.integer, signed_flag);
break;
case vpiVectorVal: {