Update $clog2() to add support for two-state variables.

The $clog2() routine can consider any two state variable argument
as numeric.
This commit is contained in:
Cary R 2011-09-05 17:11:40 -07:00 committed by Stephen Williams
parent 57f296455a
commit dc0e66ab90
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include <math.h>
#include <string.h>
#include "vpi_user.h"
#include "sv_vpi_user.h"
/*
* This routine returns 1 if the argument supports has a numeric value,
@ -42,6 +43,11 @@ static unsigned is_numeric_obj(vpiHandle obj)
/* These can have a valid numeric value. */
case vpiIntegerVar:
case vpiBitVar:
case vpiByteVar:
case vpiShortIntVar:
case vpiIntVar:
case vpiLongIntVar:
case vpiMemoryWord:
case vpiNet:
case vpiPartSelect: