Introduction to Verilog-Pli¶
Written by Wilson Snyder <wsnyder@wsnyder.org>.
Summary¶
Please note this tool is no longer being actively supported.
Verilog::Pli provides the ability to call Verilog PLI functions from inside Perl.
$cmd ("print 'Inside perl, on ', `date`, \"\\n\";");
$display (" 1 + 2 = %x\n", $cmdval("1+2"));
$cmd ("$Sparse{", 230000, "}", "=", 32'hfeed);
$cmd ("$NET{w} = 0;");
And, the ability to access the value of Verilog nets from Perl.
print 'The value of wire x is ', $NET{x}, "\n";
See also¶
See the buttons at the top of this page, which include: