0
votes

I want to be able to pass information from System Verilog testbench to a c++ program through a pipe. Is there a way to implement this.

1
from system verilog you can call a 'C' function using the DPI interface. The latter can do whatever you want. - Serge

1 Answers

1
votes

If you are running on Linux, you can a named pipe file and have your testbench write to it. Then you can use that file as input to your program.

But a much more efficient solution is using SystemVerilog's DPI to pass the information by linking your C++ program into the simulation.