G
gblake@beigebag.com
Guest
Hi,
I'm trying to extract the next scheduled event time from the simulation
time queue and it does not seem to be working. I need to access this
information because I am interfacing an analog simulator with the
Verilog simulation, and I need to keep them synched up properly.
I'm using the following VPI code with GPL CVer under Cygwin:
GetTimeofNextEvent()
{
vpiHandle nxt_event_itr, nxt_event;
s_vpi_time next_event_time;
nxt_event_itr = vpi_iterate(vpiTimeQueue, NULL);
if (nxt_event_itr == NULL)
{ vpi_printf("ERROR: No time queue\n"); }
nxt_event = vpi_scan(nxt_event_itr);
next_event_time.type = vpiScaledRealTime;
vpi_get_time(nxt_event, &next_event_time);
vpi_printf("Next event time: %lf\n", next_event_time.real);
}
It always gets a NULL iterator and will just return the current
simulation time. Any help would be appreciated. I believe I'm
interpretting the IEEE diagrams correctly.
Thanks,
Geoff Blake
I'm trying to extract the next scheduled event time from the simulation
time queue and it does not seem to be working. I need to access this
information because I am interfacing an analog simulator with the
Verilog simulation, and I need to keep them synched up properly.
I'm using the following VPI code with GPL CVer under Cygwin:
GetTimeofNextEvent()
{
vpiHandle nxt_event_itr, nxt_event;
s_vpi_time next_event_time;
nxt_event_itr = vpi_iterate(vpiTimeQueue, NULL);
if (nxt_event_itr == NULL)
{ vpi_printf("ERROR: No time queue\n"); }
nxt_event = vpi_scan(nxt_event_itr);
next_event_time.type = vpiScaledRealTime;
vpi_get_time(nxt_event, &next_event_time);
vpi_printf("Next event time: %lf\n", next_event_time.real);
}
It always gets a NULL iterator and will just return the current
simulation time. Any help would be appreciated. I believe I'm
interpretting the IEEE diagrams correctly.
Thanks,
Geoff Blake