Various minor enum bugs.
This commit is contained in:
parent
3b91a22791
commit
da18ba6e4e
|
|
@ -170,7 +170,7 @@ static PLI_INT32 ivl_method_next_calltf(PLI_BYTE8*data)
|
||||||
|
|
||||||
} while (! compare_value_eequal(&item_value, &memb_value, use_width));
|
} while (! compare_value_eequal(&item_value, &memb_value, use_width));
|
||||||
|
|
||||||
if (memb != 0);
|
if (memb != 0)
|
||||||
memb = vpi_scan(enum_list);
|
memb = vpi_scan(enum_list);
|
||||||
|
|
||||||
if (memb != 0)
|
if (memb != 0)
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ static void enum_name_get_value(vpiHandle obj, p_vpi_value value)
|
||||||
if (ref->val4.size() > 0)
|
if (ref->val4.size() > 0)
|
||||||
vpip_vec4_get_value(ref->val4, ref->val4.size(), false, value);
|
vpip_vec4_get_value(ref->val4, ref->val4.size(), false, value);
|
||||||
else
|
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 = {
|
static const struct __vpirt enum_name_rt = {
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
# include <cassert>
|
# include <cassert>
|
||||||
# include <cstdlib>
|
# include <cstdlib>
|
||||||
# include <cmath>
|
# include <cmath>
|
||||||
|
# include <iostream>
|
||||||
|
|
||||||
vpi_mode_t vpi_mode_flag = VPI_MODE_NONE;
|
vpi_mode_t vpi_mode_flag = VPI_MODE_NONE;
|
||||||
FILE*vpi_trace = 0;
|
FILE*vpi_trace = 0;
|
||||||
|
|
@ -728,7 +729,7 @@ void vpip_vec2_get_value(const vvp_vector2_t&word_val, unsigned width,
|
||||||
case vpiObjTypeVal:
|
case vpiObjTypeVal:
|
||||||
vp->format = vpiIntVal;
|
vp->format = vpiIntVal;
|
||||||
case vpiIntVal:
|
case vpiIntVal:
|
||||||
vector2_to_value(word_val, vp->value.integer, true);
|
vector2_to_value(word_val, vp->value.integer, signed_flag);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case vpiVectorVal: {
|
case vpiVectorVal: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue