@@ -73,11 +73,23 @@ def from_argv(
73
73
74
74
:example:
75
75
76
- .. code-block:: python
76
+ .. code-block:: python
77
+
78
+ from vunit import VUnit
79
+ prj = VUnit.from_argv()
80
+
81
+ .. IMPORTANT::
82
+ Option ``compile_builtins`` is deprecated and it will be removed in an upcoming release.
83
+ VHDL users will need to call method :meth:`add_vhdl_builtins` explicitly in order to preserve the
84
+ functionality.
85
+ See :vunit_issue:`777`.
86
+ It is therefore recommended to now use the following procedure:
77
87
78
- from vunit import VUnit
79
- prj = VUnit.from_argv()
88
+ .. code-block:: python
80
89
90
+ from vunit import VUnit
91
+ prj = VUnit.from_argv(compile_builtins=False)
92
+ prj.add_vhdl_builtins()
81
93
"""
82
94
args = VUnitCLI ().parse_args (argv = argv )
83
95
return cls .from_args (args , compile_builtins = compile_builtins , vhdl_standard = vhdl_standard )
@@ -101,6 +113,11 @@ def from_args(
101
113
if None the VUNIT_VHDL_STANDARD environment variable is used
102
114
:returns: A :class:`.VUnit` object instance
103
115
116
+ .. IMPORTANT::
117
+ Option ``compile_builtins`` is deprecated and it will be removed in an upcoming release.
118
+ VHDL users will need to call method :meth:`add_vhdl_builtins` explicitly in order to preserve the
119
+ functionality.
120
+ See :vunit_issue:`777`.
104
121
"""
105
122
return cls (args , compile_builtins = compile_builtins , vhdl_standard = vhdl_standard )
106
123
@@ -169,9 +186,7 @@ def test_filter(name, attribute_names):
169
186
* Use `from_argv(compile_builtins=False)` or `from_args(compile_builtins=False)`.
170
187
* Add an explicit call to 'add_vhdl_builtins'.
171
188
172
- Refs:
173
- * http://vunit.github.io/py/vunit.html#vunit.ui.VUnit.from_args
174
- * http://vunit.github.io/py/vunit.html#vunit.ui.VUnit.from_argv
189
+ See https://github.com/VUnit/vunit/issues/777.
175
190
"""
176
191
)
177
192
print (hline )
@@ -257,7 +272,7 @@ def add_source_files_from_csv(self, project_csv_path: Union[str, Path], vhdl_sta
257
272
csv file
258
273
:param vhdl_standard: The VHDL standard used to compile files,
259
274
if None, the VUNIT_VHDL_STANDARD environment variable is used
260
- :returns: A list of files (:class `.SourceFileList`) that were added
275
+ :returns: A list of files (:class: `.SourceFileList`) that were added
261
276
262
277
"""
263
278
libs : Set [str ] = set ()
@@ -944,13 +959,18 @@ def _run_test(self, test_cases, report):
944
959
945
960
def add_verilog_builtins (self ):
946
961
"""
947
- Add VUnit Verilog builtin libraries
962
+ Add VUnit Verilog builtin libraries.
963
+
964
+ .. IMPORTANT::
965
+ Class ``vunit.verilog`` is deprecated and it will be removed in an upcoming release.
966
+ Verilog users will need to call this method explicitly in order to preserve the functionality.
967
+ See :vunit_issue:`777`.
948
968
"""
949
969
self ._builtins .add_verilog_builtins ()
950
970
951
971
def add_vhdl_builtins (self , external = None ):
952
972
"""
953
- Add VUnit VHDL builtin libraries
973
+ Add VUnit VHDL builtin libraries.
954
974
955
975
:param external: struct to provide bridges for the external VHDL API.
956
976
@@ -962,6 +982,12 @@ def add_vhdl_builtins(self, external=None):
962
982
'string': ['path/to/custom/file'],
963
983
'integer': ['path/to/custom/file']}
964
984
)
985
+
986
+ .. IMPORTANT::
987
+ Option ``compile_builtins`` of methods :meth:`from_argv` and :meth:`from_args` is deprecated and it will be
988
+ removed in an upcoming release.
989
+ VHDL users will need to call this method explicitly in order to preserve the functionality.
990
+ See :vunit_issue:`777`.
965
991
"""
966
992
self ._builtins .add_vhdl_builtins (external = external )
967
993
0 commit comments