DVLib

Documentation
Source

Run a registry, publish a package, and consume it from a testbench.

First package from publish to simulation

Install the tools

python -m pip install -e .

DVLib requires Python 3.11 or newer and installs two entry points: dvlib for clients and dvlib-server for registry operations.

Start a local registry

dvlib-server run --data-dir ./registry-data --port 8000
dvlib-server tokens create --label developer --data-dir ./registry-data
export DVLIB_REGISTRY=http://localhost:8000
dvlib login

Create and publish

cd my_vip
dvlib init --name my_vip
# edit dvlib.toml and put files in exact compile order
dvlib publish

Resolve and compile

cd ../my_testbench
# declare my_vip = "^1.0" under [dependencies]
dvlib install
xrun -f dvlib.f tb/top.sv
  • VCS, Xcelium, and Questa-style flows can consume the generated +incdir+, +define+, and source entries.
  • Use --registry to override DVLIB_REGISTRY for one command.
  • Use --no-dev when an install should omit root-project development dependencies.