Summary
This chapter has presented one of the more powerful aspects of the VPI routines and the Programming Language Interface—the ability to synchronize PLI application calls with different types of simulation activity. The examples presented in this chapter have shown ways to synchronize PLI applications with the start of simulation, with the end of a simulation time step, with future simulation times, and with logic value changes. Another important topic presented in this chapter was how to allocate and store instance-specific data, and share this data between the different routines that make up a PLI application. A critical consideration in sharing and preserving data is that the data must be instance specific. This means unique storage for the data must be allocated for each instance of a system task or system function.
The next chapter presents how the PLI can be used to interface C language models with Verilog simulation. This interface will utilize many of the concepts which were presented in this chapter.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2002 Kluwer Academic Publishers
About this chapter
Cite this chapter
(2002). Synchronizing to Simulations Using VPI Callbacks. 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_7
Download citation
DOI: https://doi.org/10.1007/0-306-47665-7_7
Publisher Name: Springer, Boston, MA
Print ISBN: 978-0-7923-7658-3
Online ISBN: 978-0-306-47665-5
eBook Packages: Springer Book Archive