Skip to content

Commit 3dab484

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vcs/defs.bzl

Lines changed: 9 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_vcd:
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),

0 commit comments

Comments
 (0)