cocotb 2.0.0rc2__cp39-cp39-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cocotb might be problematic. Click here for more details.

Files changed (115) hide show
  1. cocotb/_ANSI.py +65 -0
  2. cocotb/__init__.py +125 -0
  3. cocotb/_base_triggers.py +515 -0
  4. cocotb/_bridge.py +186 -0
  5. cocotb/_decorators.py +515 -0
  6. cocotb/_deprecation.py +36 -0
  7. cocotb/_exceptions.py +7 -0
  8. cocotb/_extended_awaitables.py +419 -0
  9. cocotb/_gpi_triggers.py +385 -0
  10. cocotb/_init.py +301 -0
  11. cocotb/_outcomes.py +54 -0
  12. cocotb/_profiling.py +46 -0
  13. cocotb/_py_compat.py +148 -0
  14. cocotb/_scheduler.py +448 -0
  15. cocotb/_test.py +248 -0
  16. cocotb/_test_factory.py +312 -0
  17. cocotb/_test_functions.py +42 -0
  18. cocotb/_typing.py +7 -0
  19. cocotb/_utils.py +274 -0
  20. cocotb/_version.py +4 -0
  21. cocotb/_xunit_reporter.py +66 -0
  22. cocotb/clock.py +419 -0
  23. cocotb/debug.py +24 -0
  24. cocotb/handle.py +1752 -0
  25. cocotb/libs/libcocotb.so +0 -0
  26. cocotb/libs/libcocotbfli_modelsim.so +0 -0
  27. cocotb/libs/libcocotbutils.so +0 -0
  28. cocotb/libs/libcocotbvhpi_aldec.so +0 -0
  29. cocotb/libs/libcocotbvhpi_ius.so +0 -0
  30. cocotb/libs/libcocotbvhpi_modelsim.so +0 -0
  31. cocotb/libs/libcocotbvhpi_nvc.so +0 -0
  32. cocotb/libs/libcocotbvpi_aldec.so +0 -0
  33. cocotb/libs/libcocotbvpi_dsim.so +0 -0
  34. cocotb/libs/libcocotbvpi_ghdl.so +0 -0
  35. cocotb/libs/libcocotbvpi_icarus.vpl +0 -0
  36. cocotb/libs/libcocotbvpi_ius.so +0 -0
  37. cocotb/libs/libcocotbvpi_modelsim.so +0 -0
  38. cocotb/libs/libcocotbvpi_vcs.so +0 -0
  39. cocotb/libs/libcocotbvpi_verilator.so +0 -0
  40. cocotb/libs/libembed.so +0 -0
  41. cocotb/libs/libgpi.so +0 -0
  42. cocotb/libs/libgpilog.so +0 -0
  43. cocotb/libs/libpygpilog.so +0 -0
  44. cocotb/logging.py +424 -0
  45. cocotb/py.typed +0 -0
  46. cocotb/queue.py +225 -0
  47. cocotb/regression.py +896 -0
  48. cocotb/result.py +38 -0
  49. cocotb/share/def/.gitignore +2 -0
  50. cocotb/share/def/README.md +4 -0
  51. cocotb/share/def/aldec.def +61 -0
  52. cocotb/share/def/ghdl.def +43 -0
  53. cocotb/share/def/icarus.def +43 -0
  54. cocotb/share/def/modelsim.def +138 -0
  55. cocotb/share/include/cocotb_utils.h +70 -0
  56. cocotb/share/include/embed.h +33 -0
  57. cocotb/share/include/exports.h +20 -0
  58. cocotb/share/include/gpi.h +459 -0
  59. cocotb/share/include/gpi_logging.h +291 -0
  60. cocotb/share/include/py_gpi_logging.h +33 -0
  61. cocotb/share/include/vhpi_user_ext.h +26 -0
  62. cocotb/share/include/vpi_user_ext.h +33 -0
  63. cocotb/share/lib/verilator/verilator.cpp +209 -0
  64. cocotb/simtime.py +230 -0
  65. cocotb/simulator.cpython-39-darwin.so +0 -0
  66. cocotb/simulator.pyi +107 -0
  67. cocotb/task.py +590 -0
  68. cocotb/triggers.py +67 -0
  69. cocotb/types/__init__.py +31 -0
  70. cocotb/types/_abstract_array.py +151 -0
  71. cocotb/types/_array.py +295 -0
  72. cocotb/types/_indexing.py +17 -0
  73. cocotb/types/_logic.py +333 -0
  74. cocotb/types/_logic_array.py +868 -0
  75. cocotb/types/_range.py +197 -0
  76. cocotb/types/_resolve.py +76 -0
  77. cocotb/utils.py +110 -0
  78. cocotb-2.0.0rc2.dist-info/METADATA +60 -0
  79. cocotb-2.0.0rc2.dist-info/RECORD +115 -0
  80. cocotb-2.0.0rc2.dist-info/WHEEL +5 -0
  81. cocotb-2.0.0rc2.dist-info/entry_points.txt +2 -0
  82. cocotb-2.0.0rc2.dist-info/licenses/LICENSE +29 -0
  83. cocotb-2.0.0rc2.dist-info/top_level.txt +23 -0
  84. cocotb_tools/__init__.py +0 -0
  85. cocotb_tools/_coverage.py +33 -0
  86. cocotb_tools/_vendor/__init__.py +3 -0
  87. cocotb_tools/_vendor/distutils_version.py +346 -0
  88. cocotb_tools/check_results.py +65 -0
  89. cocotb_tools/combine_results.py +152 -0
  90. cocotb_tools/config.py +241 -0
  91. cocotb_tools/ipython_support.py +99 -0
  92. cocotb_tools/makefiles/Makefile.deprecations +27 -0
  93. cocotb_tools/makefiles/Makefile.inc +198 -0
  94. cocotb_tools/makefiles/Makefile.sim +96 -0
  95. cocotb_tools/makefiles/simulators/Makefile.activehdl +72 -0
  96. cocotb_tools/makefiles/simulators/Makefile.cvc +61 -0
  97. cocotb_tools/makefiles/simulators/Makefile.dsim +39 -0
  98. cocotb_tools/makefiles/simulators/Makefile.ghdl +84 -0
  99. cocotb_tools/makefiles/simulators/Makefile.icarus +80 -0
  100. cocotb_tools/makefiles/simulators/Makefile.ius +93 -0
  101. cocotb_tools/makefiles/simulators/Makefile.modelsim +9 -0
  102. cocotb_tools/makefiles/simulators/Makefile.nvc +60 -0
  103. cocotb_tools/makefiles/simulators/Makefile.questa +29 -0
  104. cocotb_tools/makefiles/simulators/Makefile.questa-compat +143 -0
  105. cocotb_tools/makefiles/simulators/Makefile.questa-qisqrun +149 -0
  106. cocotb_tools/makefiles/simulators/Makefile.riviera +144 -0
  107. cocotb_tools/makefiles/simulators/Makefile.vcs +65 -0
  108. cocotb_tools/makefiles/simulators/Makefile.verilator +79 -0
  109. cocotb_tools/makefiles/simulators/Makefile.xcelium +104 -0
  110. cocotb_tools/py.typed +0 -0
  111. cocotb_tools/runner.py +1868 -0
  112. cocotb_tools/sim_versions.py +140 -0
  113. pygpi/__init__.py +0 -0
  114. pygpi/entry.py +42 -0
  115. pygpi/py.typed +0 -0
@@ -0,0 +1,151 @@
1
+ # Copyright cocotb contributors
2
+ # Licensed under the Revised BSD License, see LICENSE for details.
3
+ # SPDX-License-Identifier: BSD-3-Clause
4
+ from abc import abstractmethod
5
+ from typing import Generic, Iterable, Iterator, Optional, TypeVar, Union, overload
6
+
7
+ from cocotb.types._range import Range
8
+
9
+ T_co = TypeVar("T_co", covariant=True)
10
+ T = TypeVar("T")
11
+
12
+
13
+ class AbstractArray(Generic[T_co]):
14
+ r"""Abstract base class for non-mutating Array-like collections.
15
+
16
+ Arrays are similar to :class:`~collections.abc.Sequence`\ s,
17
+ but their size cannot change after creation and they support arbitrary indexing schemes.
18
+
19
+ Abstract methods
20
+ ^^^^^^^^^^^^^^^^
21
+
22
+ * :attr:`range`
23
+ * :meth:`!__getitem__`
24
+
25
+ Mixin methods
26
+ ^^^^^^^^^^^^^
27
+
28
+ * :attr:`left`, :attr:`right`, and :attr:`direction`
29
+ * :meth:`!__len__`
30
+ * :meth:`!__iter__` and :meth:`!__reversed__`
31
+ * :meth:`!__contains__`
32
+ * :meth:`index` and :meth:`count`
33
+ """
34
+
35
+ @property
36
+ def left(self) -> int:
37
+ """Leftmost index of the array."""
38
+ return self.range.left
39
+
40
+ @property
41
+ def direction(self) -> str:
42
+ """``"to"`` if indexes are ascending, ``"downto"`` otherwise."""
43
+ return self.range.direction
44
+
45
+ @property
46
+ def right(self) -> int:
47
+ """Rightmost index of the array."""
48
+ return self.range.right
49
+
50
+ @property
51
+ @abstractmethod
52
+ def range(self) -> Range:
53
+ """:class:`Range` of the indexes of the array."""
54
+
55
+ @range.setter
56
+ @abstractmethod
57
+ def range(self, new_range: Range) -> None:
58
+ """Set a new indexing scheme on the array.
59
+
60
+ Must be the same size.
61
+ """
62
+
63
+ def __len__(self) -> int:
64
+ return len(self.range)
65
+
66
+ def __iter__(self) -> Iterator[T_co]:
67
+ for i in self.range:
68
+ yield self[i]
69
+
70
+ def __reversed__(self) -> Iterator[T_co]:
71
+ for i in reversed(self.range):
72
+ yield self[i]
73
+
74
+ def __contains__(self, item: object) -> bool:
75
+ return any(v == item for v in self)
76
+
77
+ @overload
78
+ def __getitem__(self, item: int) -> T_co: ...
79
+
80
+ @overload
81
+ def __getitem__(self, item: slice) -> "AbstractArray[T_co]": ...
82
+
83
+ @abstractmethod
84
+ def __getitem__(
85
+ self, item: Union[int, slice]
86
+ ) -> Union[T_co, "AbstractArray[T_co]"]: ...
87
+
88
+ def index(
89
+ self,
90
+ value: object,
91
+ start: Optional[int] = None,
92
+ stop: Optional[int] = None,
93
+ ) -> int:
94
+ """Find first occurrence of value.
95
+
96
+ Args:
97
+ value: Value to search for.
98
+ start: Index to start search at.
99
+ stop: Index to stop search at.
100
+
101
+ Returns:
102
+ Index of first occurrence of *value*.
103
+
104
+ Raises:
105
+ ValueError: If the value is not present.
106
+ """
107
+ if start is None:
108
+ start = self.left
109
+ if stop is None:
110
+ stop = self.right
111
+ for i in Range(start, self.direction, stop):
112
+ if self[i] == value:
113
+ return i
114
+ raise IndexError(f"{value!r} not in array")
115
+
116
+ def count(self, value: object) -> int:
117
+ """Return number of occurrences of value.
118
+
119
+ Args:
120
+ value: Value to search for.
121
+
122
+ Returns:
123
+ Number of occurrences of *value*.
124
+ """
125
+ count: int = 0
126
+ for v in self:
127
+ if v == value:
128
+ count += 1
129
+ return count
130
+
131
+
132
+ class AbstractMutableArray(AbstractArray[T]):
133
+ """Abstract base class for mutating Array-like collections.
134
+
135
+ See :class:`.AbstractArray` for more details.
136
+
137
+ Additional abstract methods:
138
+
139
+ * :meth:`!__setitem__`
140
+ """
141
+
142
+ @overload
143
+ def __setitem__(self, item: int, value: T) -> None: ...
144
+
145
+ @overload
146
+ def __setitem__(self, item: slice, value: Iterable[T]) -> None: ...
147
+
148
+ @abstractmethod
149
+ def __setitem__(
150
+ self, item: Union[int, slice], value: Union[T, Iterable[T]]
151
+ ) -> None: ...
cocotb/types/_array.py ADDED
@@ -0,0 +1,295 @@
1
+ # Copyright cocotb contributors
2
+ # Licensed under the Revised BSD License, see LICENSE for details.
3
+ # SPDX-License-Identifier: BSD-3-Clause
4
+ import copy
5
+ import warnings
6
+ from typing import Any, Dict, Iterable, Iterator, List, TypeVar, Union, cast, overload
7
+
8
+ from cocotb.types._abstract_array import AbstractMutableArray
9
+ from cocotb.types._indexing import IndexingChangedWarning
10
+ from cocotb.types._range import Range
11
+
12
+ T = TypeVar("T")
13
+
14
+
15
+ class Array(AbstractMutableArray[T]):
16
+ r"""Fixed-size, arbitrarily-indexed, homogeneous collection type.
17
+
18
+ Arrays are similar to, but different from Python :class:`list`\ s.
19
+ An array can store values of any type or values of multiple types at a time, just like a :class:`!list`.
20
+ Array constructor values can be any Iterable.
21
+
22
+ .. code-block:: pycon3
23
+
24
+ >>> Array([1, False, "example", None])
25
+ Array([1, False, 'example', None], Range(0, 'to', 3))
26
+
27
+ >>> Array("Hello!")
28
+ Array(['H', 'e', 'l', 'l', 'o', '!'], Range(0, 'to', 5))
29
+
30
+ Unlike :class:`!list`\ s, an array's size cannot change.
31
+ This means they do not support methods like :meth:`~list.append` or :meth:`~list.insert`.
32
+
33
+ The indexes of an Array can start or end at any integer value, they are not limited to 0-based indexing.
34
+ Indexing schemes are selected using :class:`Range` objects.
35
+ If *range* is not given, the range ``Range(0, "to", len(value)-1)`` is used.
36
+ If an :class:`int` is passed for *range*, the range ``Range(0, "to", range-1)`` is used.
37
+
38
+ .. code-block:: pycon3
39
+
40
+ >>> a = Array([0, 1, 2, 3], Range(-1, "downto", -4))
41
+ >>> a[-1]
42
+ 0
43
+ >>> a[-4]
44
+ 3
45
+
46
+ Arrays can also have 0 length using "null" :class:`Range`\ s.
47
+
48
+ .. code-block:: pycon3
49
+
50
+ >>> Array([], Range(1, "to", 0)) # 1 to 0 is a null Range
51
+ Array([], Range(1, 'to', 0))
52
+
53
+ Indexing and slicing is very similar to :class:`!list`\ s, but it uses the indexing scheme specified with the *range*.
54
+ Unlike :class:`!list`, slicing uses an inclusive right bound, which is common in HDLs.
55
+ But like :class:`!list`, if a start or stop index is not specified in the slice, it is inferred as the start or end of the array.
56
+ Slicing an Array returns a new :class:`~cocotb.types.Array` object, whose bounds are the slice indexes.
57
+
58
+ .. code-block:: pycon3
59
+
60
+ >>> a = Array("1234abcd")
61
+ >>> a[7]
62
+ 'd'
63
+ >>> a[2:5]
64
+ Array(['3', '4', 'a', 'b'], Range(2, 'to', 5))
65
+ >>> a[2:5] = reversed(a[2:5])
66
+ >>> "".join(a)
67
+ '12ba43cd'
68
+
69
+ >>> b = Array("1234", Range(0, -3))
70
+ >>> b[-2]
71
+ '3'
72
+ >>> b[-1:]
73
+ Array(['2', '3', '4'], Range(-1, 'downto', -3))
74
+ >>> b[:] = reversed(b)
75
+ >>> b
76
+ Array(['4', '3', '2', '1'], Range(0, 'downto', -3))
77
+
78
+ .. warning::
79
+ Arrays behave differently in certain situations than Python's built-in sequence types (:class:`list`, :class:`tuple`, etc.).
80
+
81
+ - Arrays are not necessarily 0-based and slices use inclusive right bounds,
82
+ so many functions that work on Python sequences by index (like :mod:`bisect`) may not work on arrays.
83
+ - Slice indexes must be specified in the same direction as the array and do not support specifying a "step".
84
+ - When setting a slice, the new value must be an iterable of the same size as the slice.
85
+ - Negative indexes are *not* treated as an offset from the end of the array, but are treated literally.
86
+
87
+ Arrays are equal to other arrays of the same length with the same values (structural equality).
88
+ Bounds do not matter for equality.
89
+
90
+ .. code-block:: pycon3
91
+
92
+ >>> a = Array([1, 1, 2, 3, 5], Range(4, "downto", 0))
93
+ >>> b = Array([1, 1, 2, 3, 5], Range(-2, "to", 2))
94
+ >>> a == b
95
+ True
96
+
97
+ You can change the bounds of an array by setting the :attr:`range` to a new value.
98
+ The new bounds must be the same length of the array.
99
+
100
+ .. code-block:: pycon3
101
+
102
+ >>> a = Array("1234")
103
+ >>> a.range
104
+ Range(0, 'to', 3)
105
+ >>> a.range = Range(3, "downto", 0)
106
+ >>> a.range
107
+ Range(3, 'downto', 0)
108
+
109
+ Arrays support many of the methods and semantics defined by :class:`collections.abc.Sequence`.
110
+
111
+ .. code-block:: pycon3
112
+
113
+ >>> a = Array("stuff", Range(2, "downto", -2))
114
+ >>> len(a)
115
+ 5
116
+ >>> "t" in a
117
+ True
118
+ >>> a.index("u")
119
+ 0
120
+ >>> for c in a:
121
+ ... print(c)
122
+ s
123
+ t
124
+ u
125
+ f
126
+ f
127
+
128
+ Args:
129
+ value: Initial value for the Array.
130
+ range: The indexing scheme of the Array.
131
+
132
+ Raises:
133
+ ValueError: When argument values cannot be used to construct an Array.
134
+ TypeError: When invalid argument types are used.
135
+ """
136
+
137
+ __slots__ = ("_value", "_range", "_warn_indexing")
138
+
139
+ def __init__(
140
+ self, value: Iterable[T], range: Union[Range, int, None] = None
141
+ ) -> None:
142
+ self._warn_indexing = False
143
+ self._value = list(value)
144
+ if range is None:
145
+ self._range = Range(0, "to", len(self._value) - 1)
146
+ else:
147
+ if isinstance(range, int):
148
+ self._range = Range(0, "to", range - 1)
149
+ elif isinstance(range, Range):
150
+ self._range = range
151
+ else:
152
+ raise TypeError(
153
+ f"Expected Range or int for parameter 'range', not {type(range).__qualname__}"
154
+ )
155
+
156
+ if len(self._value) != len(self._range):
157
+ raise ValueError(
158
+ f"Value of length {len(self._value)!r} does not fit in {self._range!r}"
159
+ )
160
+
161
+ @classmethod
162
+ def _from_handle(
163
+ cls, value: List[T], range: Range, warn_indexing: bool
164
+ ) -> "Array[T]":
165
+ self = cls.__new__(cls)
166
+ self._warn_indexing = warn_indexing
167
+ self._value = value
168
+ self._range = range
169
+ return self
170
+
171
+ @property
172
+ def range(self) -> Range:
173
+ """:class:`Range` of the indexes of the array."""
174
+ return self._range
175
+
176
+ @range.setter
177
+ def range(self, new_range: Range) -> None:
178
+ """Sets a new indexing scheme on the array, must be the same size"""
179
+ if not isinstance(new_range, Range):
180
+ raise TypeError("range argument must be of type 'Range'")
181
+ if len(new_range) != len(self):
182
+ raise ValueError(
183
+ f"{new_range!r} not the same length as old range ({self._range!r})."
184
+ )
185
+ self._range = new_range
186
+
187
+ def __iter__(self) -> Iterator[T]:
188
+ return iter(self._value)
189
+
190
+ def __reversed__(self) -> Iterator[T]:
191
+ return reversed(self._value)
192
+
193
+ def __contains__(self, item: object) -> bool:
194
+ return item in self._value
195
+
196
+ def __eq__(self, other: object) -> bool:
197
+ if isinstance(other, Array):
198
+ return self._value == other._value
199
+ elif isinstance(other, list):
200
+ return self._value == other
201
+ elif isinstance(other, tuple):
202
+ return tuple(self._value) == other
203
+ else:
204
+ return NotImplemented
205
+
206
+ @overload
207
+ def __getitem__(self, item: int) -> T: ...
208
+
209
+ @overload
210
+ def __getitem__(self, item: slice) -> "Array[T]": ...
211
+
212
+ def __getitem__(self, item: Union[int, slice]) -> Union[T, "Array[T]"]:
213
+ if isinstance(item, int):
214
+ if self._warn_indexing:
215
+ warnings.warn(
216
+ f"Update index {item} to {self.range[item]}",
217
+ IndexingChangedWarning,
218
+ stacklevel=2,
219
+ )
220
+ idx = self._translate_index(item)
221
+ return self._value[idx]
222
+ elif isinstance(item, slice):
223
+ if self._warn_indexing:
224
+ start = item.start if item.start is not None else 0
225
+ stop = item.stop if item.stop is not None else len(self) - 1
226
+ warnings.warn(
227
+ f"Update slice {start}:{stop} to {self.range[start]}:{self.range[stop]}",
228
+ IndexingChangedWarning,
229
+ stacklevel=2,
230
+ )
231
+ start = item.start if item.start is not None else self.left
232
+ stop = item.stop if item.stop is not None else self.right
233
+ if item.step is not None:
234
+ raise IndexError("do not specify step")
235
+ start_i = self._translate_index(start)
236
+ stop_i = self._translate_index(stop)
237
+ if start_i > stop_i:
238
+ raise IndexError(
239
+ f"slice [{start}:{stop}] direction does not match array direction [{self.left}:{self.right}]"
240
+ )
241
+ value = self._value[start_i : stop_i + 1]
242
+ range = Range(start, self.direction, stop)
243
+ return Array(value=value, range=range)
244
+ raise TypeError(f"indexes must be ints or slices, not {type(item).__name__}")
245
+
246
+ @overload
247
+ def __setitem__(self, item: int, value: T) -> None: ...
248
+
249
+ @overload
250
+ def __setitem__(self, item: slice, value: Iterable[T]) -> None: ...
251
+
252
+ def __setitem__(
253
+ self, item: Union[int, slice], value: Union[T, Iterable[T]]
254
+ ) -> None:
255
+ if isinstance(item, int):
256
+ idx = self._translate_index(item)
257
+ self._value[idx] = cast("T", value)
258
+ elif isinstance(item, slice):
259
+ start = item.start if item.start is not None else self.left
260
+ stop = item.stop if item.stop is not None else self.right
261
+ if item.step is not None:
262
+ raise IndexError("do not specify step")
263
+ start_i = self._translate_index(start)
264
+ stop_i = self._translate_index(stop)
265
+ if start_i > stop_i:
266
+ raise IndexError(
267
+ f"slice [{start}:{stop}] direction does not match array direction [{self.left}:{self.right}]"
268
+ )
269
+ value = list(cast("Iterable[T]", value))
270
+ if len(value) != (stop_i - start_i + 1):
271
+ raise ValueError(
272
+ f"value of length {len(value)!r} will not fit in slice [{start}:{stop}]"
273
+ )
274
+ self._value[start_i : stop_i + 1] = value
275
+ else:
276
+ raise TypeError(
277
+ f"indexes must be ints or slices, not {type(item).__name__}"
278
+ )
279
+
280
+ def __repr__(self) -> str:
281
+ return f"{type(self).__name__}({self._value!r}, {self._range!r})"
282
+
283
+ def _translate_index(self, item: int) -> int:
284
+ try:
285
+ return self._range.index(item)
286
+ except ValueError:
287
+ raise IndexError(f"index {item} out of range") from None
288
+
289
+ def __copy__(self) -> "Array":
290
+ return Array(self._value, self._range)
291
+
292
+ def __deepcopy__(self, memo: Dict[int, Any]) -> "Array":
293
+ return Array(
294
+ copy.deepcopy(self._value, memo=memo), copy.deepcopy(self._range, memo=memo)
295
+ )
@@ -0,0 +1,17 @@
1
+ # Copyright cocotb contributors
2
+ # Licensed under the Revised BSD License, see LICENSE for details.
3
+ # SPDX-License-Identifier: BSD-3-Clause
4
+
5
+ import os
6
+
7
+ from cocotb.types._range import Range
8
+
9
+ do_indexing_changed_warning = os.environ.get("COCOTB_INDEXING_CHANGED_WARNING")
10
+
11
+
12
+ def indexing_changed(range: Range) -> bool:
13
+ return not (range.left == 0 and range.direction == "to")
14
+
15
+
16
+ class IndexingChangedWarning(UserWarning):
17
+ """Warning issued when a value is indexed in a way that is different between cocotb 1.x and 2.x."""