File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ foreach waiver $waiver_list {
45
45
}
46
46
47
47
# Check the design
48
- analyze -format sverilog -vcs " $sources -sverilog"
48
+ analyze -format sverilog -vcs " $sources -sverilog $vcs_opts "
49
49
elaborate $top_module
50
50
check_lint
51
51
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ def _vc_static_lint(ctx):
77
77
"report_file" : report_file .path ,
78
78
"sources" : [f .path for f in all_srcs ],
79
79
"top_module" : ctx .attr .module_top ,
80
+ "vcs_opts" : ctx .attr .vcs_opts ,
80
81
"waiver_files" : [f .path for f in ctx .files .waiver_files ],
81
82
}
82
83
@@ -175,6 +176,9 @@ vc_static_lint = rule(
175
176
mandatory = True ,
176
177
allow_single_file = [".sh" ],
177
178
),
179
+ "vcs_opts" : attr .string (
180
+ doc = "Additional option to pass to vc-static 'analyze -vcs' command." ,
181
+ ),
178
182
"waiver_files" : attr .label_list (
179
183
doc = "Waiver files" ,
180
184
allow_files = True ,
You can’t perform that action at this time.
0 commit comments