Skip to content

Commit c2d8cb0

Browse files
committed
Update incisive vhdl fixup so that contexts are replaced with correct packages.
1 parent cc0e0fd commit c2d8cb0

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

tools/incisive_vhdl_fixup.py

+27-10
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,45 @@ def replace_context_with_use_clauses(file_name):
4747

4848
text = text.replace("context vunit_lib.vunit_context;", """\
4949
-- context vunit_lib.vunit_context; -- Not supported by Cadence Incisive
50-
use vunit_lib.lang.all;
50+
51+
use vunit_lib.integer_vector_ptr_pkg.all;
52+
use vunit_lib.integer_vector_ptr_pool_pkg.all;
53+
use vunit_lib.integer_array_pkg.all;
54+
use vunit_lib.string_ptr_pkg.all;
55+
use vunit_lib.queue_pkg.all;
56+
use vunit_lib.queue_pool_pkg.all;
57+
use vunit_lib.string_ptr_pkg.all;
58+
use vunit_lib.string_ptr_pool_pkg.all;
59+
use vunit_lib.dict_pkg.all;
60+
5161
use vunit_lib.string_ops.all;
5262
use vunit_lib.dictionary.all;
5363
use vunit_lib.path.all;
54-
use vunit_lib.log_types_pkg.all;
55-
use vunit_lib.log_special_types_pkg.all;
56-
use vunit_lib.check_types_pkg.all;
57-
use vunit_lib.check_special_types_pkg.all;
64+
use vunit_lib.print_pkg.all;
65+
use vunit_lib.log_levels_pkg.all;
66+
use vunit_lib.logger_pkg.all;
67+
use vunit_lib.log_handler_pkg.all;
68+
use vunit_lib.log_deprecated_pkg.all;
69+
use vunit_lib.ansi_pkg.all;
70+
use vunit_lib.checker_pkg.all;
5871
use vunit_lib.check_pkg.all;
72+
use vunit_lib.check_deprecated_pkg.all;
5973
use vunit_lib.run_types_pkg.all;
60-
use vunit_lib.run_special_types_pkg.all;
61-
use vunit_lib.run_base_pkg.all;
62-
use vunit_lib.run_pkg.all;""")
74+
use vunit_lib.run_pkg.all;
75+
use vunit_lib.run_deprecated_pkg.all;""")
6376

6477
text = text.replace("context vunit_lib.com_context;", """\
6578
-- context vunit_lib.com_context; -- Not supported by Cadence Incisive
6679
use vunit_lib.com_pkg.all;
6780
use vunit_lib.com_types_pkg.all;
68-
use vunit_lib.com_codec_pkg.all;
81+
use vunit_lib.codec_pkg.all;
82+
use vunit_lib.codec_2008_pkg.all;
6983
use vunit_lib.com_string_pkg.all;
84+
use vunit_lib.codec_builder_pkg.all;
85+
use vunit_lib.codec_builder_2008_pkg.all;
7086
use vunit_lib.com_debug_codec_builder_pkg.all;
71-
use vunit_lib.com_std_codec_builder_pkg.all;
87+
use vunit_lib.com_deprecated_pkg.all;
88+
use vunit_lib.com_common_pkg.all;
7289
""")
7390

7491
with open(file_name, "w") as fptr:

0 commit comments

Comments
 (0)