From 92c36f152d5747142d9503e9cefa777f5ef9a212 Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 14 Feb 2007 05:59:24 +0000 Subject: [PATCH] Treat BOOL and LOGIC the same according to VPI functions. --- tgt-vvp/draw_vpi.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tgt-vvp/draw_vpi.c b/tgt-vvp/draw_vpi.c index 0475e02cc..769af0294 100644 --- a/tgt-vvp/draw_vpi.c +++ b/tgt-vvp/draw_vpi.c @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: draw_vpi.c,v 1.16 2007/01/30 05:28:23 steve Exp $" +#ident "$Id: draw_vpi.c,v 1.17 2007/02/14 05:59:24 steve Exp $" #endif # include "vvp_priv.h" @@ -147,7 +147,8 @@ static void draw_vpi_taskfunc_args(const char*call_string, realloc(vec, (vecs+1)*sizeof(struct vector_info)); switch (ivl_expr_value(expr)) { - case IVL_VT_VECTOR: + case IVL_VT_LOGIC: + case IVL_VT_BOOL: vec[vecs] = draw_eval_expr(expr, 0); break; case IVL_VT_REAL: @@ -248,7 +249,8 @@ static void draw_vpi_taskfunc_args(const char*call_string, switch (ivl_expr_value(expr)) { - case IVL_VT_VECTOR: + case IVL_VT_LOGIC: + case IVL_VT_BOOL: fprintf(vvp_out, ", T<%u,%u,%s>", vec[veci].base, vec[veci].wid, ivl_expr_signed(expr)? "s" : "u"); break; @@ -315,6 +317,9 @@ int draw_vpi_rfunc_call(ivl_expr_t fnet) /* * $Log: draw_vpi.c,v $ + * Revision 1.17 2007/02/14 05:59:24 steve + * Treat BOOL and LOGIC the same according to VPI functions. + * * Revision 1.16 2007/01/30 05:28:23 steve * Treat VPI argument array with constant index specially. *