Skip to main content

Interfacing VPI Applications to Verilog Simulators

  • Chapter
The Verilog PLI Handbook

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

  • 424 Accesses

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.

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). 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

Publish with us

Policies and ethics