vhpi 0.4.0

Rust wrapper around the IEEE 1076 VHPI
Documentation

vhpi

This crate provides a high-level wrapper around VHPI (VHDL Procedural Interface) allowing the user to inspect and control a VHDL simulation. See nvc for a supported simulator.

A full description of VHPI capabilities can be found in the VHDL LRM.

Usage

Add vhpi to your Cargo.toml:

[dependencies]
vhpi = "0.3.0"

VHPI programs are usually compiled as plugins and loaded into the simulator which requires:

[lib]
crate-type = ["cdylib"]

If you get linker errors on Windows and macOS because you are trying to build a stand-alone plugin, use the dynamic feature:

[dependencies]
vhpi = { version = "0.3.0", features = ["dynamic"] }

or, if you have nvc installed, link with $PREFIX/lib/nvc/libnvcimp.a.