How to execute shell command from SystemVerilog testbench


#1

How do I run a shell command from the SystemVerilog test bench?


#2

You can use the $system() function.

$system("echo \"Bacon Bacon Bacon!\"");