Skip to content

Commit 9e1c13a

Browse files
committed
remove 'array_pkg'
1 parent 1bc4d06 commit 9e1c13a

File tree

5 files changed

+5
-668
lines changed

5 files changed

+5
-668
lines changed

tests/acceptance/test_external_run_scripts.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,6 @@ def test_vhdl_user_guide_93_example_project(self):
228228
def test_vhdl_com_example_project(self):
229229
self.check(ROOT / "examples/vhdl/com/run.py")
230230

231-
def test_array_vhdl_2008(self):
232-
self.check(VHDL_PATH / "array/run.py")
233-
234231
def test_data_types_vhdl_2008(self):
235232
self.check(VHDL_PATH / "data_types/run.py")
236233

vunit/builtins.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from pathlib import Path
1212
from glob import glob
13-
from warnings import warn
1413
import logging
1514

1615
from vunit.vhdl_standard import VHDL, VHDLStandard
@@ -38,7 +37,7 @@ def __init__(self, vunit_obj, vhdl_standard: VHDLStandard, simulator_class):
3837
def add(name, deps=tuple()):
3938
self._builtins_adder.add_type(name, getattr(self, f"_add_{name!s}"), deps)
4039

41-
add("array_util")
40+
add("array_util") # Removed in v5.0.0
4241
add("com")
4342
add("verification_components", ["com", "osvvm"])
4443
add("osvvm")
@@ -95,19 +94,12 @@ def _add_data_types(self, external=None):
9594
allow_empty=False,
9695
)
9796

98-
def _add_array_util(self):
97+
@staticmethod
98+
def _add_array_util():
9999
"""
100-
Add array utility
100+
Array utility was removed in v5.0.0. Raise a runtime error.
101101
"""
102-
if not self._vhdl_standard >= VHDL.STD_2008:
103-
raise RuntimeError("Array util only supports vhdl 2008 and later")
104-
105-
arr_deprecation_note = (
106-
"'array_t' is deprecated and it will removed in future releases; use 'integer_array_t' instead"
107-
)
108-
warn(arr_deprecation_note, Warning)
109-
110-
self._vunit_lib.add_source_files(VHDL_PATH / "array" / "src" / "*.vhd")
102+
raise RuntimeError("Array util was removed in v5.0.0; use 'integer_array_t' instead")
111103

112104
def _add_random(self):
113105
"""

vunit/vhdl/array/run.py

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

vunit/vhdl/array/src/array_pkg.vhd

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

0 commit comments

Comments
 (0)