Interfacing with C

  • Chris Spear


In Verilog. you can communicate with C routines using the Programming Language Interface. With the three generations of the PLI (TF, ACC, and VPI routines), you can create delay calculators, connect and synchronize multiple simulators, and add debug tools such as waveform displays. However, the PLI’s greatest strength is also its greatest weakness. If you just want to connect a simple C routine using the PLI, you need to write dozens of lines of code, and understand many different concepts such as synchronizing with multiple simulation phases, call frames, and instance pointers. Additionally, the PLI adds overhead to your simulation as it copies data between the Verilog and C domains, in order to protect Verilog data structures from corruption.


Input Logic Function Void Open Array Pure Function Fibonacci Series 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer Science+Business Media, LLC 2008

Authors and Affiliations

  • Chris Spear
    • 1
  1. 1.Synopsys, Inc.Marlboro.USA

Personalised recommendations