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.

The sizetf callback function<br />

The sizetf callback function UM-587<br />

A user-defined system function specifies the width of its return value with the sizetf<br />

callback function, <strong>and</strong> the simulator calls this function while loading the design. The<br />

following details on the sizetf callback function are not found in the IEEE Std 1364:<br />

If you omit the sizetf function, then a return width of 32 is assumed.<br />

The sizetf function should return 0 if the system function return value is of Verilog type<br />

"real".<br />

The sizetf function should return -32 if the system function return value is of Verilog type<br />

"integer".<br />

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

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

Saved successfully!

Ooh no, something went wrong!