File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
vtr_flow/scripts/python_libs/vtr Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ def create_circuits_list(main_circuit, include_files):
25
25
if include_files :
26
26
# Verify that files are Paths or convert them to Paths + check that they exist
27
27
for include in include_files :
28
+ file_extension = os .path .splitext (include )[- 1 ]
29
+ # if the include file is not in the supported HDLs, we drop it
30
+ # NOTE: the include file is already copied to the temp folder
31
+ if file_extension not in FILE_TYPES :
32
+ continue
33
+
28
34
include_file = vtr .verify_file (include , "Circuit" )
29
35
circuit_list .append (include_file .name )
30
36
Original file line number Diff line number Diff line change 29
29
30
30
31
31
def create_circuits_list (main_circuit , include_files ):
32
- """Create a list of all (.v) and (.vh) files"""
32
+ """Create a list of supported HDL files"""
33
33
circuit_list = []
34
34
# Check include files exist
35
35
if include_files :
36
36
# Verify that files are Paths or convert them to Paths + check that they exist
37
37
for include in include_files :
38
+ file_extension = os .path .splitext (include )[- 1 ]
39
+ # if the include file is not in the supported HDLs, we drop it
40
+ # NOTE: the include file is already copied to the temp folder
41
+ if file_extension not in FILE_TYPES :
42
+ continue
43
+
38
44
include_file = vtr .verify_file (include , "Circuit" )
39
45
circuit_list .append (include_file .name )
40
46
You can’t perform that action at this time.
0 commit comments