[logo] 
Home
News
Activity
About/Contact
 Major Tools
 .. BugVise
 .. Dinotrace
 .. Verilator
 .. Verilog-mode
 .. Verilog-Perl
 .. Vregs
 Other Tools
 .. Gspice
 .. IPC::Locker
 .. Schedule::Load
 .. SVN::S4
 .. Synopsys-modes
 .. SystemPerl
 .. Verilog-Pli
 .. Voneline
 General Info
 .. Book Tips
 .. Papers

Introduction to Verilog-Pli

Written by Wilson Snyder <wsnyder@wsnyder.org>.

Summary

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:

Verilog::Pli installation

Also available in: HTML TXT