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.
KeywordsInput Logic Function Void Open Array Pure Function Fibonacci Series
Unable to display preview. Download preview PDF.