Skip to main content

Creating PLI Applications Using VPI Routines

  • Chapter
The Verilog PLI Handbook

Part of the book series: The International Series in Engineering and Computer Science ((SECS,volume 666))

  • 432 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics