Skip to content

Commit

Permalink
Issue #2 - VCS provides signal value when registering a value change cb
Browse files Browse the repository at this point in the history
  • Loading branch information
chiggs committed Jun 14, 2013
1 parent 902972c commit e706b1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vpi_shim/gpi_vpi.c
Expand Up @@ -214,6 +214,7 @@ typedef struct t_vpi_cb_user_data {
int (*gpi_function)(void *);
int (*gpi_cleanup)(struct t_vpi_cb_user_data *);
vpiHandle cb_hdl;
s_vpi_value cb_value;
} s_vpi_cb_user_data, *p_vpi_cb_user_data;


Expand Down Expand Up @@ -311,7 +312,7 @@ gpi_cb_hdl gpi_register_value_change_callback(int (*gpi_function)(void *), void
cb_data_s.cb_rtn = handle_vpi_callback;
cb_data_s.obj = (vpiHandle)gpi_hdl;
cb_data_s.time = &vpi_time_s;
cb_data_s.value = NULL;
cb_data_s.value = &user_data->cb_value;
cb_data_s.user_data = (char *)user_data;

user_data->cb_hdl = vpi_register_cb(&cb_data_s);
Expand Down

0 comments on commit e706b1e

Please sign in to comment.