ISSUE 524

Edit Proposal  Edit Class, Environment, or Release
Number 524
Notify-List
Category errata
Synopsis 27.7 vpi_get_cb_info() - who owns the data structure memory?
State proposal
Class errata-ptf
Arrival-DateJan 05 2004
Originator chas@cadence.com (Behavioral Task Force)
Release
Environment
Description
The data structure passed to vpi_get_cb_info() is allocated by the user. This is specified. However, there are several pointers in this structure which are populated by the simulator, and these structures are owned by the simulator and need to be saved by the application before another call to vpi_get_cb_info() is made.
Fix
Modify the following paragraph:

The VPI routine vpi_get_cb_info() shall return information
about a simulation-related callback in an s_cb_data
structure. The memory for this structure shall be
allocated by the user.

To:

The VPI routine vpi_get_cb_info() shall return information
about a simulation-related callback in an s_cb_data
structure. The memory for this structure shall be
allocated by the user. This structure contains several
pointers. The data to which these pointers point is owned
by the simulator. The applications should copy any of this
information if necessary prior to returning control to the
simulator.
Audit-Trail

Fix replaced by chas@cadence.com on Fri Jan 30 07:54:03 2004
Modify the following paragraph:

The VPI routine vpi_get_cb_info() shall return information
about a simulation-related callback in an s_cb_data
structure. The memory for this structure shall be
allocated by the user.

To:

The VPI routine vpi_get_cb_info() shall return information
about a simulation-related callback in an s_cb_data
structure. The memory for this structure shall be
allocated by the user. This structure contains several
pointers. The data to which these pointers point is owned
by the simulator. The applications should copy any of this
information if necessary prior to returning control to the
simulator.


Unformatted




Hosted by Boyd Technology