File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -319,6 +319,15 @@ def _vcs_run(ctx):
319
319
args .append ("+vcs+dumpon+0+0" )
320
320
args .append ("+vcs+dumparrays" )
321
321
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
+
322
331
outputs += trace_vcd + trace_vpd
323
332
result .append (WaveformInfo (
324
333
vpd_files = depset (trace_vpd ),
@@ -434,6 +443,10 @@ vcs_run = rule(
434
443
doc = "Enable trace output in VCD format" ,
435
444
default = False ,
436
445
),
446
+ "trace_fsdb" : attr .bool (
447
+ doc = "Enable trace output in FSDB format" ,
448
+ default = False ,
449
+ ),
437
450
"trace_vpd" : attr .bool (
438
451
doc = "Enable trace output in VPD format" ,
439
452
default = False ,
You can’t perform that action at this time.
0 commit comments