vvp: __vpiArray::get_word_value handles StrVal variants.

This commit is contained in:
Maciej Suminski 2014-11-26 11:26:14 +01:00
parent a236c274f3
commit 4ddef32631
1 changed files with 12 additions and 0 deletions

View File

@ -342,7 +342,19 @@ void __vpiArray::get_word_value(struct __vpiArrayWord*word, p_vpi_value vp)
vals4->width(), signed_flag, vp);
} else if(vals) {
switch(vp->format) {
case vpiBinStrVal:
case vpiOctStrVal:
case vpiDecStrVal:
case vpiHexStrVal:
case vpiScalarVal:
case vpiIntVal:
{
vvp_vector4_t v;
vals->get_word(index, v);
vpip_vec4_get_value(v, vals_width, signed_flag, vp);
}
break;
case vpiVectorVal:
{
vvp_vector4_t v;