Summary
This chapter has shown the major parts of PLI applications. For PLI applications which are developed using the VPI library, the main parts of an application are: the name of a system task or system function, a compiletf routine, a calltf routine, a sizetf routine, and simulation callback routines. A system function called $pow, which calculates xy and returns a 32-bit result, was used in this chapter to illustrate the major parts of a PLI application. The VPI interface mechanism is used to interface a PLI application to a Verilog simulator. The interface mechanism involves registering a PLI application using an application-defined register function, and notifying the simulator about the register function by editing a vlog_startup_routines array provided by the simulator. The next four chapters present how to use each of the routines in the VPI library.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2002 Kluwer Academic Publishers
About this chapter
Cite this chapter
(2002). Interfacing VPI Applications to Verilog Simulators. In: The Verilog PLI Handbook. The International Series in Engineering and Computer Science, vol 666. Springer, Boston, MA. https://doi.org/10.1007/0-306-47665-7_3
Download citation
DOI: https://doi.org/10.1007/0-306-47665-7_3
Publisher Name: Springer, Boston, MA
Print ISBN: 978-0-7923-7658-3
Online ISBN: 978-0-306-47665-5
eBook Packages: Springer Book Archive