Skip to content

Commit 3ca1909

Browse files
committed
Support additional "analyze -vcs" VCS options for VC Static
Signed-off-by: Maciej Kurc <[email protected]>
1 parent 3085941 commit 3ca1909

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

vc_static/default.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ foreach waiver $waiver_list {
4545
}
4646

4747
# Check the design
48-
analyze -format sverilog -vcs "$sources -sverilog"
48+
analyze -format sverilog -vcs "$sources -sverilog $vcs_opts"
4949
elaborate $top_module
5050
check_lint
5151

vc_static/defs.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def _vc_static_lint(ctx):
7777
"report_file": report_file.path,
7878
"sources": [f.path for f in all_srcs],
7979
"top_module": ctx.attr.module_top,
80+
"vcs_opts": ctx.attr.vcs_opts,
8081
"waiver_files": [f.path for f in ctx.files.waiver_files],
8182
}
8283

@@ -175,6 +176,9 @@ vc_static_lint = rule(
175176
mandatory = True,
176177
allow_single_file = [".sh"],
177178
),
179+
"vcs_opts": attr.string(
180+
doc = "Additional option to pass to vc-static 'analyze -vcs' command.",
181+
),
178182
"waiver_files": attr.label_list(
179183
doc = "Waiver files",
180184
allow_files = True,

0 commit comments

Comments
 (0)