From e7a705d8e6227c96b32a70afd8d6843ac469a072 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 5 Sep 2011 17:19:38 -0700 Subject: [PATCH] The $queue routines can use two-state variables. Update the various $queue routines to use the appropriate two-state variables depending on the context. --- vpi/sys_queue.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vpi/sys_queue.c b/vpi/sys_queue.c index f7312c0fc..c45fb63ec 100644 --- a/vpi/sys_queue.c +++ b/vpi/sys_queue.c @@ -493,6 +493,10 @@ static unsigned is_32_or_smaller_obj(vpiHandle obj) /* These can have valid 32 bit or smaller numeric values. */ case vpiIntegerVar: + case vpiBitVar: + case vpiByteVar: + case vpiShortIntVar: + case vpiIntVar: case vpiMemoryWord: case vpiNet: case vpiPartSelect: @@ -518,6 +522,7 @@ static void check_var_arg_32(vpiHandle arg, vpiHandle callh, switch (vpi_get(vpiType, arg)) { case vpiMemoryWord: case vpiPartSelect: + case vpiBitVar: case vpiReg: // Check that we have exactly 32 bits. if (vpi_get(vpiSize, arg) != 32) { vpi_printf("ERROR: %s:%d: ", vpi_get_str(vpiFile, callh), @@ -527,6 +532,7 @@ static void check_var_arg_32(vpiHandle arg, vpiHandle callh, vpi_control(vpiFinish, 1); } case vpiIntegerVar: + case vpiIntVar: break; default: vpi_printf("ERROR: %s:%d: ", vpi_get_str(vpiFile, callh), @@ -548,6 +554,7 @@ static void check_var_arg_large(vpiHandle arg, vpiHandle callh, switch (vpi_get(vpiType, arg)) { case vpiMemoryWord: case vpiPartSelect: + case vpiBitVar: case vpiReg: // Check that we have at least 32 bits. if (vpi_get(vpiSize, arg) < 32) { vpi_printf("ERROR: %s:%d: ", vpi_get_str(vpiFile, callh), @@ -557,6 +564,8 @@ static void check_var_arg_large(vpiHandle arg, vpiHandle callh, vpi_control(vpiFinish, 1); } case vpiIntegerVar: + case vpiIntVar: + case vpiLongIntVar: case vpiTimeVar: break; default: