mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-24 05:47:36 -04:00
Dump to VPD in dv/uvm if Verdi is not available (#630)
If VERDI_HOME is not set, calling fsdbDumpfile makes VCS hang with an error message. This patch checks whether we think FSDB dumping is actually going to work and, if not, dumps with the default VCD+ format (also called VPD) instead.
This commit is contained in:
parent
03efdaaf9e
commit
ade643001b
1 changed files with 30 additions and 22 deletions
|
@ -1,28 +1,36 @@
|
|||
# TCL file invoked from VCS's simv at run-time using this: -ucli -do <this file>
|
||||
|
||||
# Syntax: fsdbDumpfile FSDB_Name [Limit_Size]
|
||||
fsdbDumpfile "waves.fsdb"
|
||||
if { [info exists ::env(VERDI_HOME)] } {
|
||||
# Use FSDB for dumping data, but only if we have Verdi set up.
|
||||
|
||||
# Syntax: fsdbDumpvars [depth] [instance] [option]*
|
||||
##############################################################################
|
||||
# Option Description
|
||||
##############################################################################
|
||||
# +mda Dumps memory and MDA signals in all scopes.
|
||||
# +packedmda Dumps packed signals
|
||||
# +struct Dumps structs
|
||||
# +skip_cell_instance=mode Enables or disables cell dumping
|
||||
# +strength Enables strength dumping
|
||||
# +parameter Dumps parameters
|
||||
# +power Dumps power-related signals
|
||||
# +trace_process Dumps VHDL processes
|
||||
# +no_functions Disables dumping of functions
|
||||
# +sva Dumps assertions
|
||||
# +Reg_Only Dumps only reg type signals
|
||||
# +IO_Only Dumps only IO port signals
|
||||
# +by_file=<filename> File to specify objects to add
|
||||
# +all Dumps memories, MDA signals, structs, unions,power, and packed structs
|
||||
fsdbDumpvars 0 core_ibex_tb_top +all
|
||||
fsdbDumpSVA 0 core_ibex_tb_top.dut
|
||||
# Syntax: fsdbDumpfile FSDB_Name [Limit_Size]
|
||||
fsdbDumpfile "waves.fsdb"
|
||||
|
||||
# Syntax: fsdbDumpvars [depth] [instance] [option]*
|
||||
##############################################################################
|
||||
# Option Description
|
||||
##############################################################################
|
||||
# +mda Dumps memory and MDA signals in all scopes.
|
||||
# +packedmda Dumps packed signals
|
||||
# +struct Dumps structs
|
||||
# +skip_cell_instance=mode Enables or disables cell dumping
|
||||
# +strength Enables strength dumping
|
||||
# +parameter Dumps parameters
|
||||
# +power Dumps power-related signals
|
||||
# +trace_process Dumps VHDL processes
|
||||
# +no_functions Disables dumping of functions
|
||||
# +sva Dumps assertions
|
||||
# +Reg_Only Dumps only reg type signals
|
||||
# +IO_Only Dumps only IO port signals
|
||||
# +by_file=<filename> File to specify objects to add
|
||||
# +all Dumps memories, MDA signals, structs, unions,power, and packed structs
|
||||
fsdbDumpvars 0 core_ibex_tb_top +all
|
||||
fsdbDumpSVA 0 core_ibex_tb_top.dut
|
||||
} else {
|
||||
# We don't have VERDI set up, so use VCS's standard dumping format.
|
||||
dump -file "waves.vpd"
|
||||
dump -add { core_ibex_tb_top } -depth 0 -aggregates -scope "."
|
||||
}
|
||||
|
||||
run
|
||||
quit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue