Skip to main content

vunit-janushdl

A VUnit package providing support for JanusHDL.

Overview

Adds a simulator interface for JanusHDL (jhdl), selected with VUNIT_SIMULATOR=janushdl.

Installation

pip install vunit-janushdl

Adding vunit-janushdl to a VUnit Project

The vunit-janushdl package is added to a VUnit project by calling the add_package method from the VUnit run script. See example below.

from vunit import VUnit

vu = VUnit.from_argv()

# Note that a simulator package must be added before any method calls depending on it, for example add_vhdl_builtins.
vu.add_package("vunit-janushdl", allow_setup=True)

vu.add_vhdl_builtins()

How it works

Library Cache

JanusHDL keeps no libraries on disk. So the interface doesn't compile file by file:

  • Compile: it writes the whole project, in compile order, to one -f file list with library lines. It then runs jhdl --analyze-only once, with --cache pointing to an analysis cache under the output path. This step always runs, even when VUnit sees no changed files: jhdl reloads an up-to-date cache in milliseconds, so jhdl alone decides whether the cache is stale.
  • Simulate: each test runs jhdl with the same file list, cache and analysis flags, plus --top lib.entity, -g generics and --stop-level/--exit-level set to vhdl_assert_stop_level. Test runs only read the cache, so parallel tests can share it.
  • --gui: records --wave and opens the result in jhdlw.
  • Options: janushdl.a_flags (compile) and janushdl.sim_flags (sim).

Fails early, with a clear message, on

  • --elaborate: jhdl has no elaborate-only mode.
  • Mixed VHDL standards: a -f list takes a single --std.
  • Different janushdl.a_flags between files: everything is analyzed in one call, and a run with different flags would analyze again into the shared cache.
  • External libraries and non-VHDL files.
  • The Python bridge fails at setup with VUnit's existing message, since no foreign interface is supported.

Testing (JanusHDL 0.7.0, Linux x86-64)

  • All vunit/vhdl/*/run.py suites except python pass: 1323 of 1323 (check, com, data_types, dictionary, logging, path, random, run, string_ops, verification_components).
  • tests/acceptance/test_artificial.py and test_dependencies.py pass, except test_artificial_elaborate_only, because --elaborate is rejected on purpose.
  • The analysis cache's SHA-256 is unchanged after a -p 8 run of the check suite, and again after touching a source file, so test runs never rewrite the cache.
  • --gui not yet supported
  • jhdl 0.7.0 ignores the status argument of std.env.stop(1)/finish(1) (it exits 0). VUnit still reports failures correctly from its results file.

Metadata

Release files for vunit-janushdl 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vunit-janushdl 0.1.0
File Size Uploaded Provenance Actions
vunit_janushdl-0.1.0.tar.gz 6.2 kB Without provenance Details for vunit_janushdl-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vunit-janushdl 0.1.0
File Interpreter ABI Platform Actions
vunit_janushdl-0.1.0-py3-none-any.whl Python 3 none any Details for vunit_janushdl-0.1.0-py3-none-any.whl

Total release size: 12.5 kB

Release files / vunit_janushdl-0.1.0.tar.gz

Download URL vunit_janushdl-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0e1b1dccf65bb13124533e3d0f383533bef50ff955d29d764c89da2fa20c98cd
BLAKE2b-256 checksum
How to use checksums
af3446c667fe34815febb990bb604826d009428a57683086ad1c9699dc63f2a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / vunit_janushdl-0.1.0-py3-none-any.whl

Download URL vunit_janushdl-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e26357d4666da5bdb2d5ac8e847e86cee02a21afb95d55f6119f934d7d1fc33
BLAKE2b-256 checksum
How to use checksums
e3ed9e3ede06cf5ede8a97990dfb769499bf1bf84deac4e8f8b53753671f346d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for vunit-janushdl 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page