Index by title

Installing Verilog-Pli

Download

Download from CPAN/wsnyder.

Prerequisites

Verilog::Pli runs on any operating system with Perl and a PLI compliant Verilog simulator, such as VCS, Cadence Incisive, or Modelsim.

Installation

If you're using a recent version of Perl, just:

cpan install Verilog::Pli

Otherwise, untar, make, test, and install manually: cd Verilog-Pli-* perl Makefile.PL make make test make install

tar xvzf Verilog-Pli*.t*gz

Usage

After installation, see the kit's README for notes on building a simulator using Verilog-Pli.


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