From 7988ef04d8eacad18332c293bc1f79947a7d1688 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 18 May 2009 10:58:15 -0700 Subject: [PATCH] Add support for displaying a real parameter using %d. This patch modifies the real parameter get_value routine to use the standard vpip_real_get_value() routine. This routine has support for an integer and a decimal string value. --- vvp/vpi_const.cc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/vvp/vpi_const.cc b/vvp/vpi_const.cc index 0773a4377..78202e521 100644 --- a/vvp/vpi_const.cc +++ b/vvp/vpi_const.cc @@ -696,16 +696,7 @@ static void real_value(vpiHandle ref, p_vpi_value vp) assert((ref->vpi_type->type_code == vpiConstant) || (ref->vpi_type->type_code == vpiParameter)); - switch (vp->format) { - case vpiObjTypeVal: - vp->format = vpiRealVal; - case vpiRealVal: - vp->value.real = rfp->value; - break; - default: - fprintf(stderr, "vvp error: unsupported format %d.\n", vp->format); - assert(0); - } + vpip_real_get_value(rfp->value, vp); } static const struct __vpirt vpip_real_rt = {