Summary
This chapter has presented two short examples which illustrate how PLI applications are created using the VPI routine library in the PLI standard. The $hello PLI application showed how a Verilog simulation can execute another C program. The $show_value application illustrated how arguments can be passed from a Verilog simulation to a PLI application, and how the application can access information about the arguments.
The principles illustrated by the $show_value example can be readily expanded to provide much more powerful and useful capabilities. In Chapter 3, the functionality of $show_value will be extended to create an application called $list_nets, which automatically finds all nets in a module and prints the values of each net. Another example in the same chapter extends $show_value to create $list_signals, which automatically finds all nets, regs and variables in a module and prints the values of each one.
The next chapter presents much greater detail on how PLI applications interact with Verilog simulations. Subsequent chapters in Part One of this book will discuss the complete VPI library, and include many examples of how the VPI routines are used to create PLI applications which interact with Verilog simulators.
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). Creating PLI Applications Using VPI Routines. 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_2
Download citation
DOI: https://doi.org/10.1007/0-306-47665-7_2
Publisher Name: Springer, Boston, MA
Print ISBN: 978-0-7923-7658-3
Online ISBN: 978-0-306-47665-5
eBook Packages: Springer Book Archive