verilog可用的FSDB dump命令
命令总览
$fsdbAutoSwitchDumpfile
$fsdbDumpfile
$fsdbDumpflush
$fsdbDumpon, $fsdbDumpoff
$fsdbDumpvars
$fsdbDumpvarsByFile
$fsdbDumpvarsES
$fsdbDumpFinish
$fsdbDumpMDA
$fsdbDumpSVA
$fsdbLog
$fsdbReplay
$fsdbSuppress
$fsdbSwitchDumpfile
命令描述
详见附件
$fsdbDumpfile
描述
To specify the FSDB file name created by the Novas object files for FSDB dumping. If not specified, the default FSDB file name is “novas.fsdb”. This command is valid only before $fsdbDumpvars is executed and is ignored if specified after $fsdbDumpvars.
To restrict the largest dump file size to the user-defined size limitation, please specify the limit size in megabyte format. This function will affect the FSDB file that is specified in “FSDB_Name”. The FSDB dumper uses the sliding window scheme to keep the last signal values in the FSDB file. It drops the old values if file size exceeds the user-specified limitation.
For $fsdbDumpvars, $fsdbDumpMDA, $fsdbDumpvarsES, $fsdbDumpSVA and $fsdbDumpvarsByFile, user can use the option “+fsdbfile+filename.fsdb” to specify the target FSDB file to dump. It is equal to using $fsdbDumpfile then $fsdbDumpvars.
语法
$fsdbDumpfile(“FSDB_Name” | FSDB_Name_var [ ,Limit_Size | ,Limit_Size_var ]);
FSDB_Name
Specify the name of the FSDB file generated by the Novas object files for FSDB dumping.
FSDB_Name_var
Specify the FSDB file name in a variable.
Limit_Size
Specify the maximum FSDB file size in megabyte.
Limit_Size_var
Specify the maximum FSDB file size in a variable.
举例
$fsdbDumpfile("novas.fsdb", 32);
/* Specify dump file as novas.fsdb and limit to 32 megabytes */
$fsdbDumpvars(0, design_top);
fsdbAutoSwitchDumpfile
描述
Automatically switch to a new dump file when the working FSDB file hits the
specified size limitation. The unit associated with $fsdbAutoSwitchDumpfile’s
File_Size parameter is a megabyte.
语法
$fsdbAutoSwitchDumpfile(File_Size | File_Size_var, “FSDB_Name” | FSDB_Name_var, Number_of_Files | Number_of_Files_var
[ ,“log_filename” | ,log_filename_var ]);
File_Size
The FSDB file size limit.
File_Size_var
Specify the FSDB file size in a variable.
FSDB_Name
Specify the FSDB file generated by the Novas object files for FSDB dumping.
FSDB_Name_var
Specify the FSDB file name in a variable.
Number_of_Files
The maximum number of FSDB files to generate.
Number_of_Files_var
Specify the maximum number of FSDB files to generate in a variable.
Log_filename
This argument is optional. Specify the file name for the log file.
log_filename_var
Specify the log file name in a variable.
举例
$fsdbAutoSwitchDumpfile(10, "test.fsdb", 20);
$fsdbDumpvars(0, system);