Skip to content

Commit 1b864e6

Browse files
authored
Support excluding files in TOML (#370)
1 parent cb5eaf4 commit 1b864e6

File tree

3 files changed

+165
-257
lines changed

3 files changed

+165
-257
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,15 @@ lib1.files = [
157157
'tb_ent.vhd'
158158
]
159159

160-
# Wildcards are supported
160+
# Wildcards and exclude patterns are supported
161161
lib3.files = [
162162
'test/*.vhd',
163163
'src/*.vhd',
164164
'src/*/*.vhd',
165165
]
166+
lib3.exclude = [
167+
'test/*_old.vhd',
168+
]
166169

167170
# Libraries can be marked as third-party to disable some analysis warnings, such as unused declarations
168171
UNISIM.files = [

example_project/vhdl_ls.toml

Lines changed: 11 additions & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -1,201 +1,20 @@
11
[libraries]
22

33
vunit_lib.files = [
4-
"vunit/vunit/vhdl/check/src/check_api.vhd",
5-
"vunit/vunit/vhdl/check/src/check.vhd",
6-
"vunit/vunit/vhdl/check/src/checker_pkg-body.vhd",
7-
"vunit/vunit/vhdl/check/src/checker_pkg.vhd",
8-
"vunit/vunit/vhdl/com/src/com_api.vhd",
9-
"vunit/vunit/vhdl/com/src/com_common.vhd",
10-
"vunit/vunit/vhdl/com/src/com_context.vhd",
11-
"vunit/vunit/vhdl/com/src/com_debug_codec_builder.vhd",
12-
"vunit/vunit/vhdl/com/src/com_deprecated.vhd",
13-
"vunit/vunit/vhdl/com/src/com_messenger.vhd",
14-
"vunit/vunit/vhdl/com/src/com_string.vhd",
15-
"vunit/vunit/vhdl/com/src/com_support.vhd",
16-
"vunit/vunit/vhdl/com/src/com_types.vhd",
17-
"vunit/vunit/vhdl/com/src/com.vhd",
18-
"vunit/vunit/vhdl/core/src/core_pkg.vhd",
19-
"vunit/vunit/vhdl/core/src/stop_body_2008p.vhd",
20-
"vunit/vunit/vhdl/core/src/stop_pkg.vhd",
21-
"vunit/vunit/vhdl/data_types/src/api/external_integer_vector_pkg.vhd",
22-
"vunit/vunit/vhdl/data_types/src/api/external_string_pkg.vhd",
23-
"vunit/vunit/vhdl/data_types/src/byte_vector_ptr_pkg.vhd",
24-
"vunit/vunit/vhdl/data_types/src/codec_builder-2008p.vhd",
25-
"vunit/vunit/vhdl/data_types/src/codec_builder.vhd",
26-
"vunit/vunit/vhdl/data_types/src/codec-2008p.vhd",
27-
"vunit/vunit/vhdl/data_types/src/codec.vhd",
28-
"vunit/vunit/vhdl/data_types/src/data_types_context.vhd",
29-
"vunit/vunit/vhdl/data_types/src/data_types_private_pkg.vhd",
30-
"vunit/vunit/vhdl/data_types/src/dict_pkg-2008p.vhd",
31-
"vunit/vunit/vhdl/data_types/src/dict_pkg-body.vhd",
32-
"vunit/vunit/vhdl/data_types/src/dict_pkg.vhd",
33-
"vunit/vunit/vhdl/data_types/src/id_pkg.vhd",
34-
"vunit/vunit/vhdl/data_types/src/integer_array_pkg-body.vhd",
35-
"vunit/vunit/vhdl/data_types/src/integer_array_pkg.vhd",
36-
"vunit/vunit/vhdl/data_types/src/integer_vector_ptr_pkg-body-2002p.vhd",
37-
"vunit/vunit/vhdl/data_types/src/integer_vector_ptr_pkg.vhd",
38-
"vunit/vunit/vhdl/data_types/src/integer_vector_ptr_pool_pkg.vhd",
39-
"vunit/vunit/vhdl/data_types/src/queue_pkg-2008p.vhd",
40-
"vunit/vunit/vhdl/data_types/src/queue_pkg-body.vhd",
41-
"vunit/vunit/vhdl/data_types/src/queue_pkg.vhd",
42-
"vunit/vunit/vhdl/data_types/src/queue_pool_pkg.vhd",
43-
"vunit/vunit/vhdl/data_types/src/string_ptr_pkg-body-2002p.vhd",
44-
"vunit/vunit/vhdl/data_types/src/string_ptr_pkg.vhd",
45-
"vunit/vunit/vhdl/data_types/src/string_ptr_pool_pkg.vhd",
46-
"vunit/vunit/vhdl/data_types/src/types.vhd",
47-
"vunit/vunit/vhdl/data_types/src/event_common_pkg.vhd",
48-
"vunit/vunit/vhdl/data_types/src/event_pkg.vhd",
49-
"vunit/vunit/vhdl/data_types/src/event_private_pkg.vhd",
50-
"vunit/vunit/vhdl/data_types/test/tb_event_pkg.vhd",
51-
"vunit/vunit/vhdl/data_types/test/tb_event_private_pkg.vhd",
52-
"vunit/vunit/vhdl/dictionary/src/dictionary.vhd",
53-
"vunit/vunit/vhdl/logging/src/common_log_pkg.vhd",
54-
"vunit/vunit/vhdl/logging/src/common_log_pkg-body.vhd",
55-
"vunit/vunit/vhdl/logging/src/ansi_pkg.vhd",
56-
"vunit/vunit/vhdl/logging/src/file_pkg.vhd",
57-
"vunit/vunit/vhdl/logging/src/location_pkg-body-2008m.vhd",
58-
"vunit/vunit/vhdl/logging/src/location_pkg.vhd",
59-
"vunit/vunit/vhdl/logging/src/log_handler_pkg-body.vhd",
60-
"vunit/vunit/vhdl/logging/src/log_handler_pkg.vhd",
61-
"vunit/vunit/vhdl/logging/src/log_levels_pkg-body.vhd",
62-
"vunit/vunit/vhdl/logging/src/log_levels_pkg.vhd",
63-
"vunit/vunit/vhdl/logging/src/logger_pkg-body.vhd",
64-
"vunit/vunit/vhdl/logging/src/logger_pkg.vhd",
65-
"vunit/vunit/vhdl/logging/src/print_pkg-body.vhd",
66-
"vunit/vunit/vhdl/logging/src/print_pkg.vhd",
67-
"vunit/vunit/vhdl/path/src/path.vhd",
68-
"vunit/vunit/vhdl/run/src/run_api.vhd",
69-
"vunit/vunit/vhdl/run/src/run_types.vhd",
70-
"vunit/vunit/vhdl/run/src/run.vhd",
71-
"vunit/vunit/vhdl/run/src/runner_pkg.vhd",
72-
"vunit/vunit/vhdl/string_ops/src/string_ops.vhd",
73-
"vunit/vunit/vhdl/verification_components/src/avalon_master.vhd",
74-
"vunit/vunit/vhdl/verification_components/src/avalon_pkg.vhd",
75-
"vunit/vunit/vhdl/verification_components/src/avalon_sink.vhd",
76-
"vunit/vunit/vhdl/verification_components/src/avalon_slave.vhd",
77-
"vunit/vunit/vhdl/verification_components/src/avalon_source.vhd",
78-
"vunit/vunit/vhdl/verification_components/src/avalon_stream_pkg.vhd",
79-
"vunit/vunit/vhdl/verification_components/src/axi_lite_master_pkg.vhd",
80-
"vunit/vunit/vhdl/verification_components/src/axi_lite_master.vhd",
81-
"vunit/vunit/vhdl/verification_components/src/axi_pkg.vhd",
82-
"vunit/vunit/vhdl/verification_components/src/axi_read_slave.vhd",
83-
"vunit/vunit/vhdl/verification_components/src/axi_slave_pkg.vhd",
84-
"vunit/vunit/vhdl/verification_components/src/axi_slave_private_pkg.vhd",
85-
"vunit/vunit/vhdl/verification_components/src/axi_statistics_pkg.vhd",
86-
"vunit/vunit/vhdl/verification_components/src/axi_stream_master.vhd",
87-
"vunit/vunit/vhdl/verification_components/src/axi_stream_monitor.vhd",
88-
"vunit/vunit/vhdl/verification_components/src/axi_stream_pkg.vhd",
89-
"vunit/vunit/vhdl/verification_components/src/axi_stream_private_pkg.vhd",
90-
"vunit/vunit/vhdl/verification_components/src/axi_stream_protocol_checker.vhd",
91-
"vunit/vunit/vhdl/verification_components/src/axi_stream_slave.vhd",
92-
"vunit/vunit/vhdl/verification_components/src/axi_write_slave.vhd",
93-
"vunit/vunit/vhdl/verification_components/src/bus_master_pkg-body.vhd",
94-
"vunit/vunit/vhdl/verification_components/src/bus_master_pkg.vhd",
95-
"vunit/vunit/vhdl/verification_components/src/bus2memory.vhd",
96-
"vunit/vunit/vhdl/verification_components/src/memory_pkg-body.vhd",
97-
"vunit/vunit/vhdl/verification_components/src/memory_pkg.vhd",
98-
"vunit/vunit/vhdl/verification_components/src/memory_utils_pkg.vhd",
99-
"vunit/vunit/vhdl/verification_components/src/ram_master.vhd",
100-
"vunit/vunit/vhdl/verification_components/src/signal_checker_pkg.vhd",
101-
"vunit/vunit/vhdl/verification_components/src/std_logic_checker.vhd",
102-
"vunit/vunit/vhdl/verification_components/src/stream_master_pkg-body.vhd",
103-
"vunit/vunit/vhdl/verification_components/src/stream_master_pkg.vhd",
104-
"vunit/vunit/vhdl/verification_components/src/stream_slave_pkg-body.vhd",
105-
"vunit/vunit/vhdl/verification_components/src/stream_slave_pkg.vhd",
106-
"vunit/vunit/vhdl/verification_components/src/sync_pkg-body.vhd",
107-
"vunit/vunit/vhdl/verification_components/src/sync_pkg.vhd",
108-
"vunit/vunit/vhdl/verification_components/src/uart_master.vhd",
109-
"vunit/vunit/vhdl/verification_components/src/uart_pkg.vhd",
110-
"vunit/vunit/vhdl/verification_components/src/uart_slave.vhd",
111-
"vunit/vunit/vhdl/verification_components/src/vc_context.vhd",
112-
"vunit/vunit/vhdl/verification_components/src/wishbone_master.vhd",
113-
"vunit/vunit/vhdl/verification_components/src/wishbone_pkg.vhd",
114-
"vunit/vunit/vhdl/verification_components/src/wishbone_slave.vhd",
115-
"vunit/vunit/vhdl/vunit_context.vhd",
116-
"vunit/vunit/vhdl/vunit_run_context.vhd",
117-
"vunit/vunit/vhdl/random/src/random_pkg.vhd",
118-
119-
# Also add tests
120-
'vunit/vunit/vhdl/run/test/*.vhd',
121-
'vunit/vunit/vhdl/logging/test/*.vhd',
122-
'vunit/vunit/vhdl/string_ops/test/*.vhd',
123-
'vunit/vunit/vhdl/run/test/*.vhd',
124-
125-
'vunit/vunit/vhdl/check/test/tb_checker.vhd',
126-
'vunit/vunit/vhdl/check/test/tb_check_next.vhd',
127-
'vunit/vunit/vhdl/check/test/tb_check_relation_2008p.vhd',
128-
'vunit/vunit/vhdl/check/test/tb_check_stable.vhd',
129-
'vunit/vunit/vhdl/check/test/test_support.vhd',
130-
'vunit/vunit/vhdl/check/test/tb_check_passed.vhd',
131-
'vunit/vunit/vhdl/check/test/tb_check_failed.vhd',
132-
#'vunit/vunit/vhdl/check/test/tb_deprecated.vhd',
133-
'vunit/vunit/vhdl/check/test/tb_check_implication.vhd',
134-
'vunit/vunit/vhdl/check/test/tb_check_sequence.vhd',
135-
'vunit/vunit/vhdl/check/test/tb_check_zero_one_hot.vhd',
136-
'vunit/vunit/vhdl/check/test/tb_check_equal_real.vhd',
137-
'vunit/vunit/vhdl/check/test/tb_check_one_hot.vhd',
138-
'vunit/vunit/vhdl/check/test/tb_result.vhd',
139-
'vunit/vunit/vhdl/check/test/tb_check_not_unknown.vhd',
140-
'vunit/vunit/vhdl/check/test/tb_check_false.vhd',
141-
'vunit/vunit/vhdl/check/test/tb_check_relation.vhd',
142-
'vunit/vunit/vhdl/check/test/tb_check.vhd',
143-
144-
'vunit/vunit/vhdl/verification_components/test/*.vhd',
145-
146-
'vunit/vunit/vhdl/data_types/test/*.vhd',
147-
148-
149-
'vunit/vunit/vhdl/path/test/*.vhd',
150-
151-
'vunit/vunit/vhdl/com/test/constants.vhd',
152-
'vunit/vunit/vhdl/com/test/more_constants.vhd',
153-
#'vunit/vunit/vhdl/com/test/tb_com_codec.vhd',
154-
'vunit/vunit/vhdl/com/test/custom_types.vhd',
155-
'vunit/vunit/vhdl/com/test/tb_com_msg_building.vhd',
156-
'vunit/vunit/vhdl/com/test/tb_com_deprecated.vhd',
157-
'vunit/vunit/vhdl/com/test/tb_com.vhd',
158-
159-
'vunit/vunit/vhdl/dictionary/test/*.vhd',
4+
"vunit/vunit/vhdl/**/*.vhd",
5+
]
6+
vunit_lib.exclude = [
7+
"vunit/vunit/vhdl/**/*93*",
8+
"vunit/vunit/vhdl/**/*2019*",
9+
'vunit/vunit/vhdl/com/test/tb_com_codec.vhd',
16010
]
16111

16212
osvvm.files = [
163-
'OSVVM/AlertLogPkg.vhd',
164-
'OSVVM/CoveragePkg.vhd',
165-
'OSVVM/MemoryGenericPkg.vhd',
166-
'OSVVM/MemoryPkg.vhd',
167-
#'OSVVM/MemoryPkg_c.vhd',
168-
#'OSVVM/MemoryPkg_orig_c.vhd',
169-
'OSVVM/MemorySupportPkg.vhd',
170-
'OSVVM/MessageListPkg.vhd',
171-
'OSVVM/MessagePkg.vhd',
172-
'OSVVM/NamePkg.vhd',
173-
'OSVVM/NameStorePkg.vhd',
174-
'OSVVM/OsvvmContext.vhd',
175-
'OSVVM/OsvvmScriptSettingsPkg.vhd',
176-
'OSVVM/OsvvmScriptSettingsPkg_default.vhd',
177-
'OSVVM/OsvvmSettingsPkg.vhd',
178-
'OSVVM/OsvvmSettingsPkg_default.vhd',
179-
'OSVVM/OsvvmGlobalPkg.vhd',
180-
'OSVVM/OsvvmTypesPkg.vhd',
181-
'OSVVM/DelayCoveragePkg.vhd',
182-
'OSVVM/RandomBasePkg.vhd',
183-
'OSVVM/RandomPkg.vhd',
184-
'OSVVM/RandomProcedurePkg.vhd',
185-
'OSVVM/ReportPkg.vhd',
186-
'OSVVM/ResizePkg.vhd',
187-
'OSVVM/ResolutionPkg.vhd',
188-
'OSVVM/ScoreboardGenericPkg.vhd',
189-
'OSVVM/ScoreboardPkg_int.vhd',
190-
#'OSVVM/ScoreboardPkg_int_c.vhd',
191-
'OSVVM/ScoreboardPkg_slv.vhd',
192-
#'OSVVM/ScoreboardPkg_slv_c.vhd',
193-
'OSVVM/SortListPkg_int.vhd',
194-
'OSVVM/TbUtilPkg.vhd',
195-
'OSVVM/TextUtilPkg.vhd',
196-
'OSVVM/TranscriptPkg.vhd',
197-
'OSVVM/VendorCovApiPkg.vhd',
198-
#'OSVVM/VendorCovApiPkg_Aldec.vhd',
13+
'OSVVM/*.vhd',
14+
]
15+
osvvm.exclude = [
16+
'OSVVM/*_c.vhd',
17+
'OSVVM/VendorCovApiPkg_Aldec.vhd',
19918
]
20019

20120
uvvm_util.files = ['UVVM/uvvm_util/**/*.vhd']

0 commit comments

Comments
 (0)