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
-ffile list withlibrarylines. It then runsjhdl --analyze-onlyonce, with--cachepointing 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
jhdlwith the same file list, cache and analysis flags, plus--top lib.entity,-ggenerics and--stop-level/--exit-levelset tovhdl_assert_stop_level. Test runs only read the cache, so parallel tests can share it. --gui: records--waveand opens the result injhdlw.- Options:
janushdl.a_flags(compile) andjanushdl.sim_flags(sim).
Fails early, with a clear message, on
--elaborate: jhdl has no elaborate-only mode.- Mixed VHDL standards: a
-flist takes a single--std. - Different
janushdl.a_flagsbetween 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.pysuites exceptpythonpass: 1323 of 1323 (check, com, data_types, dictionary, logging, path, random, run, string_ops, verification_components). tests/acceptance/test_artificial.pyandtest_dependencies.pypass, excepttest_artificial_elaborate_only, because--elaborateis rejected on purpose.- The analysis cache's SHA-256 is unchanged after a
-p 8run of thechecksuite, and again after touching a source file, so test runs never rewrite the cache. --guinot 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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.