Skip to content

Commit 49cd730

Browse files
committed
[wip] vcs/defs: Added options for fsdb
Signed-off-by: Jan Bylicki <[email protected]>
1 parent e4b5044 commit 49cd730

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

vcs/defs.bzl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,15 @@ def _vcs_run(ctx):
319319
args.append("+vcs+dumpon+0+0")
320320
args.append("+vcs+dumparrays")
321321

322+
trace_fsdb = []
323+
if ctx.attr.trace_fsdb:
324+
file = ctx.actions.declare_file("{}.fsdb".format(ctx.label.name))
325+
trace_fsdb.append(file)
326+
args.append("+fsdb=" + file.path)
327+
args.append("+vcs+dumparrays")
328+
args.append("+vcs+dumparrays")
329+
330+
322331
outputs += trace_vcd + trace_vpd
323332
result.append(WaveformInfo(
324333
vpd_files = depset(trace_vpd),
@@ -434,6 +443,10 @@ vcs_run = rule(
434443
doc = "Enable trace output in VCD format",
435444
default = False,
436445
),
446+
"trace_fsdb": attr.bool(
447+
doc = "Enable trace output in FSDB format",
448+
default = False,
449+
),
437450
"trace_vpd": attr.bool(
438451
doc = "Enable trace output in VPD format",
439452
default = False,

0 commit comments

Comments
 (0)