Add the ability to place callbacks on bit, byte, short, int and long variables.

You can place a callback on the new SystemVerilog 2-state variables.
This commit is contained in:
Cary R 2011-09-05 14:55:58 -07:00 committed by Stephen Williams
parent 40c37be307
commit 4f8cace5a9
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2001-2010 Stephen Williams (steve@icarus.com) * Copyright (c) 2001-2011 Stephen Williams (steve@icarus.com)
* *
* This source code is free software; you can redistribute it * This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU * and/or modify it in source code form under the terms of the GNU
@ -148,6 +148,11 @@ static struct __vpiCallback* make_value_change(p_cb_data data)
case vpiReg: case vpiReg:
case vpiNet: case vpiNet:
case vpiIntegerVar: case vpiIntegerVar:
case vpiBitVar:
case vpiByteVar:
case vpiShortIntVar:
case vpiIntVar:
case vpiLongIntVar:
/* Attach the callback to the vvp_fun_signal node by /* Attach the callback to the vvp_fun_signal node by
putting it in the vpi_callbacks list. */ putting it in the vpi_callbacks list. */
struct __vpiSignal*sig; struct __vpiSignal*sig;