Skip to content

Commit 19d8a5f

Browse files
committed
Removed JSON-for-VHDL submodule.
JSON-for-VHDL support is now provided through a separate VUnit package. Install it with: pip install vunit-json-for-vhdl
1 parent 4090eb5 commit 19d8a5f

15 files changed

Lines changed: 40 additions & 235 deletions

File tree

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[submodule "vunit/vhdl/osvvm"]
22
path = vunit/vhdl/osvvm
33
url = ../../OSVVM/OSVVM.git
4-
[submodule "vunit/vhdl/JSON-for-VHDL"]
5-
path = vunit/vhdl/JSON-for-VHDL
6-
url = ../../Paebbels/JSON-for-VHDL.git

LICENSE.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
**VUnit**, except for the projects below, is released under the terms of `Mozilla Public License, v. 2.0`_.
22
|copy| 2014-2024 Lars Asplund, lars.anders.asplund@gmail.com.
33

4-
The following libraries are `redistributed`_ with VUnit for convenience:
4+
The following library is `redistributed`_ with VUnit for convenience:
55

66
* **OSVVM** (``vunit/vhdl/osvvm``): these files are licensed under the terms of `Apache License, v 2.0`_,
77
|copy| 2010 - 2023 by `SynthWorks Design Inc`_. All rights reserved.
88

9-
* **JSON-for-VHDL** (``vunit/vhdl/JSON-for-VHDL``): these files are licensed under the terms of `Apache License,
10-
v 2.0`_, |copy| 2015 - 2022 Patrick Lehmann.
11-
129
The font used in VUnit's logo and illustrations is 'Tratex', the traffic sign typeface used on swedish road signs:
1310

1411
- `transportstyrelsen.se: Teckensnitt <https://transportstyrelsen.se/sv/vagtrafik/Trafikregler/Om-vagmarken/Teckensnitt/>`__

docs/about.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ Main Features
6060
`actor model <http://en.wikipedia.org/wiki/Actor_model>`__.
6161
* :doc:`Verification Components library <./verification_components/user_guide>` providing verification components (VCs)
6262
for interfaces such as AXI, Avalon or Wishbone, along with utilities for writing your own self-checking VCs.
63-
* Third-party submodules:
64-
65-
* `OSVVM <https://github.com/OSVVM/OSVVM>`__
66-
* `JSON-for-VHDL <https://github.com/Paebbels/JSON-for-VHDL>`__
63+
* Third-party submodule `OSVVM <https://github.com/OSVVM/OSVVM>`__
6764

6865
Overview
6966
--------
@@ -79,7 +76,7 @@ The core of VUnit is the Python plumbing composed by the library and testbench A
7976
runner for interacting with HDL testbenches.
8077
Sibling ``run`` HDL libraries allow specifying tests within testbenches.
8178

82-
Moreover, VUnit includes multiple optional HDL libraries, along with third-party resources such as OSVVM and JSON-for-VHDL.
79+
Moreover, VUnit includes multiple optional HDL libraries, along with the third-party OSVVM library.
8380
Those are made available through the built-ins API, which is based on the library and testbench API.
8481

8582
Both the core and builtins are available in the public :ref:`python_interface` of VUnit.

docs/hdl_libraries.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,6 @@ Moreover, multiple approaches are supported for using `OSVVMLibraries <https://g
7272
VUnit.
7373
See :ref:`OSVB: Examples » SISO AXI4 Stream <osvb:Examples:AXI4Stream>`.
7474

75-
JSON-for-VHDL
76-
-------------
77-
78-
VUnit includes `JSON-for-VHDL <https://github.com/Paebbels/JSON-for-VHDL>`__ as a submodule.
79-
JSON-for-VHDL is an alternative to composite top-level generics, which supports any depth in the content structure.
80-
81-
See :meth:`add_json4vhdl() <vunit.ui.VUnit.add_json4vhdl>`, :vunit_file:`json4vhdl.py <vunit/json4vhdl.py>` and example
82-
:ref:`JSON-for-VHDL <examples:vhdl:json4vhdl>`.
83-
8475
System Verilog
8576
==============
8677

examples/vhdl/json4vhdl/run.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

examples/vhdl/json4vhdl/src/test/data/data.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/vhdl/json4vhdl/src/test/tb_json_gens.vhd

Lines changed: 0 additions & 85 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ setenv=
133133
acceptance-rivierapro: VUNIT_SIMULATOR=rivierapro
134134
135135
commands=
136-
fmt: {envpython} -m black ./ --exclude 'vunit/vhdl/JSON-for-VHDL|.eggs|.git|.hg|.mypy_cache|.nox|.tox|.venv|_build|buck-out|build|dist' {posargs}
136+
fmt: {envpython} -m black ./ --exclude .eggs|.git|.hg|.mypy_cache|.nox|.tox|.venv|_build|buck-out|build|dist' {posargs}
137137
unit: {envpython} -m pytest -v -ra tests/unit {posargs}
138138
lint: {envpython} -m pytest -v -ra tests/lint {posargs}
139139
docs: {envpython} tools/build_docs.py {envtmpdir}/docsbuild {posargs}

tests/acceptance/test_external_run_scripts.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,6 @@ def test_vhdl_configuration_example_project(self):
201201
],
202202
)
203203

204-
@mark.xfail(
205-
not (simulator_is("ghdl") or simulator_is("nvc")),
206-
reason="Support complex JSON strings as generic",
207-
)
208-
def test_vhdl_json4vhdl_example_project(self):
209-
self.check(ROOT / "examples/vhdl/json4vhdl/run.py")
210-
211204
def test_vhdl_array_example_project(self):
212205
self.check(ROOT / "examples/vhdl/array/run.py")
213206

tests/lint/test_license.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ def find_licensed_files():
144144
continue
145145
if file_name == "AlertLogPkg.vhd":
146146
continue
147-
if is_prefix_of(
148-
(VHDL_PATH / "JSON-for-VHDL").resolve(),
149-
(Path(root) / file_name).resolve(),
150-
):
151-
continue
152147
if Path(file_name).suffix in (".vhd", ".vhdl", ".py", ".v", ".sv"):
153148
licensed_files.append(str(Path(root) / file_name))
154149
return licensed_files

0 commit comments

Comments
 (0)