Skip to content

Commit 2cd6b4e

Browse files
author
1138-4EB
committed
add deprecation warning about 'array_t'; suggest 'integer_array_t' instead
1 parent 5db2744 commit 2cd6b4e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

vunit/builtins.py

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

1111
from os.path import join, abspath, dirname, basename
1212
from glob import glob
13+
from warnings import warn
1314
from vunit.vhdl_standard import VHDL
1415
from vunit.sim_if.common import simulator_check
1516

@@ -128,6 +129,12 @@ def _add_array_util(self):
128129
if not self._vhdl_standard >= VHDL.STD_2008:
129130
raise RuntimeError("Array util only supports vhdl 2008 and later")
130131

132+
arr_deprecation_note = (
133+
"'array_t' is deprecated and it will removed in future releases;"
134+
"use 'integer_array_t' instead"
135+
)
136+
warn(arr_deprecation_note, Warning)
137+
131138
self._vunit_lib.add_source_files(join(VHDL_PATH, "array", "src", "*.vhd"))
132139

133140
def _add_random(self):

0 commit comments

Comments
 (0)