Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/news.d/600.breaking.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[VHDL] Remove ``array_pkg``; use ``integer_array_t`` instead.
3 changes: 0 additions & 3 deletions tests/acceptance/test_external_run_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ def test_vhdl_user_guide_93_example_project(self):
def test_vhdl_com_example_project(self):
self.check(ROOT / "examples/vhdl/com/run.py")

def test_array_vhdl_2008(self):
self.check(VHDL_PATH / "array/run.py")

def test_data_types_vhdl_2008(self):
self.check(VHDL_PATH / "data_types/run.py")

Expand Down
18 changes: 5 additions & 13 deletions vunit/builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from pathlib import Path
from glob import glob
from warnings import warn
import logging

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

add("array_util")
add("array_util") # Removed in v5.0.0
add("com")
add("verification_components", ["com", "osvvm"])
add("osvvm")
Expand Down Expand Up @@ -95,19 +94,12 @@ def _add_data_types(self, external=None):
allow_empty=False,
)

def _add_array_util(self):
@staticmethod
def _add_array_util():
"""
Add array utility
Array utility was removed in v5.0.0. Raise a runtime error.
"""
if not self._vhdl_standard >= VHDL.STD_2008:
raise RuntimeError("Array util only supports vhdl 2008 and later")

arr_deprecation_note = (
"'array_t' is deprecated and it will removed in future releases; use 'integer_array_t' instead"
)
warn(arr_deprecation_note, Warning)

self._vunit_lib.add_source_files(VHDL_PATH / "array" / "src" / "*.vhd")
raise RuntimeError("Array util was removed in v5.0.0; use 'integer_array_t' instead")

def _add_random(self):
"""
Expand Down
17 changes: 0 additions & 17 deletions vunit/vhdl/array/run.py

This file was deleted.

252 changes: 0 additions & 252 deletions vunit/vhdl/array/src/array_pkg.vhd

This file was deleted.

Loading