24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UM-588 D - Verilog PLI / VPI / DPI<br />

PLI object h<strong>and</strong>les<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong><br />

Many of the object h<strong>and</strong>les returned by the PLI ACC routines are pointers to objects that<br />

naturally exist in the simulation data structures, <strong>and</strong> the h<strong>and</strong>les to these objects are valid<br />

throughout the simulation, even after the acc_close() routine is called. However, some of<br />

the objects are created on dem<strong>and</strong>, <strong>and</strong> the h<strong>and</strong>les to these objects become invalid after<br />

acc_close() is called. The following object types are created on dem<strong>and</strong> in <strong>ModelSim</strong><br />

Verilog:<br />

accOperator (acc_h<strong>and</strong>le_condition)<br />

accWirePath (acc_h<strong>and</strong>le_path)<br />

accTerminal (acc_h<strong>and</strong>le_terminal, acc_next_cell_load, acc_next_driver, <strong>and</strong><br />

acc_next_load)<br />

accPathTerminal (acc_next_input <strong>and</strong> acc_next_output)<br />

accTchkTerminal (acc_h<strong>and</strong>le_tchkarg1 <strong>and</strong> acc_h<strong>and</strong>le_tchkarg2)<br />

accPartSelect (acc_h<strong>and</strong>le_conn, acc_h<strong>and</strong>le_pathin, <strong>and</strong> acc_h<strong>and</strong>le_pathout)<br />

If your PLI application uses these types of objects, then it is important to call acc_close()<br />

to free the memory allocated for these objects when the application is done using them.<br />

If your PLI application places value change callbacks on accRegBit or accTerminal objects,<br />

do not call acc_close() while these callbacks are in effect.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!