File tree Expand file tree Collapse file tree 5 files changed +24
-1
lines changed Expand file tree Collapse file tree 5 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ set_app_var enable_lint true
32
32
set_app_var report_all_hdl_errors true
33
33
configure_lint_setup -goal lint_rtl
34
34
35
+ # Include lint config files
36
+ set config_list [split $config_files " " ]
37
+ foreach config $config_list {
38
+ source $config
39
+ }
40
+
35
41
# Include waiver file
36
42
set waiver_list [split $waiver_files " " ]
37
43
foreach waiver $waiver_list {
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ def _vc_static_lint(ctx):
59
59
"sources" : [f .path for f in all_srcs ],
60
60
"top_module" : ctx .attr .module_top ,
61
61
"waiver_files" : [f .path for f in ctx .files .waiver_files ],
62
+ "config_files" : [f .path for f in ctx .files .config_files ],
62
63
}
63
64
64
65
# Write the TCL script
@@ -87,7 +88,7 @@ def _vc_static_lint(ctx):
87
88
88
89
ctx .actions .run_shell (
89
90
outputs = outputs ,
90
- inputs = [ctx .file .vc_static_env , tcl_script ] + ctx .files .waiver_files + all_hdrs + all_srcs ,
91
+ inputs = [ctx .file .vc_static_env , tcl_script ] + ctx .files .waiver_files + ctx . files . config_files + all_hdrs + all_srcs ,
91
92
progress_message = "Running VC Static: {}" .format (ctx .label .name ),
92
93
command = " " .join (vc_command ),
93
94
)
@@ -142,6 +143,10 @@ vc_static_lint = rule(
142
143
doc = "Waiver files" ,
143
144
allow_files = True ,
144
145
),
146
+ "config_files" : attr .label_list (
147
+ doc = "Config files" ,
148
+ allow_files = True ,
149
+ ),
145
150
},
146
151
provides = [
147
152
DefaultInfo ,
Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ filegroup(
34
34
],
35
35
)
36
36
37
+ filegroup (
38
+ name = "test_config" ,
39
+ srcs = [
40
+ "test_config.tcl" ,
41
+ ],
42
+ )
43
+
37
44
vc_static_lint (
38
45
name = "rtl_vc_static_lint" ,
39
46
module = ":rtl" ,
@@ -42,4 +49,7 @@ vc_static_lint(
42
49
waiver_files = [
43
50
":test_waiver" ,
44
51
],
52
+ config_files = [
53
+ ":test_config" ,
54
+ ],
45
55
)
Original file line number Diff line number Diff line change 14
14
15
15
module rtl (
16
16
input logic a,
17
+ input logic b,
17
18
output logic out
18
19
);
19
20
Original file line number Diff line number Diff line change
1
+ configure_lint_tag -enable -tag " W240" -severity " info" -goal lint_rtl
You can’t perform that action at this time.
0 commit comments