Hi,
I have a requirement to process an intermediate file. This is a UVM and system Verilog env. I do use $system to process some of the unix commands. Would like to know if I can use $system to execute a shell/python script. Does system Verilog allow this.?
Thanks.
In reply to wasim.raza:
SystemVerilog does not care what you pass to $system(). It’s going to invoke a shell and execute the string. That string has to be valid for the OS/shell platform you are running the simulation on.
A better option would be to use the DPI layer to C and then call python from your C code.
In reply to dave_59:
Thanks Dave.
I was able to run my script using the $system command.
But i will try to re-implement the same usng DPI as per your suggestion.