According to "The Principles of Verilog PLI", Programming Language Interface (PLI) is a way to provide Application Program Interface (API) to Verilog HDL. Essentially it is a mechanism to invoke a C function from a Verilog code. The construct which invokes a PLI routine in a Verilog code is usually called a system call. The common system calls built-in to most Verilog simulators are $display, $monitor, $finish etc.
The latest version is PLI 2 or Verilog Procedural Interface (VPI).
The following link shows how to use PLI with VCS:
A Verilog LPI website
give a good tutorial:
Introduction |
How it Works | |||||||
Example - Hello World | |||||||
|
Writing PLI Application
PLI Application Specification. | |||||
Calling the C function. | |||||
C Code - Basic | |||||
Verilog Code | |||||
C Code - Full | |||||
Linking With Simulator | |||||
| |||||
Counter Simulation Output |
PLI Routines.
Verilog Procedural Interface (VPI)
Steps : Writing Application Using VPI | |||||||||
| |||||||||
Linking with Simulator | |||||||||
| |||||||||
VPI Routines |
No comments:
Post a Comment