Add support for FSDB (#1072)

This commit is contained in:
Jerry Zhao
2022-01-10 09:24:05 -08:00
committed by GitHub
parent 1ce67a0997
commit a72d466646
3 changed files with 22 additions and 3 deletions

14
vcs.mk
View File

@@ -1,4 +1,14 @@
HELP_COMPILATION_VARIABLES += \
" USE_FSDB = set to '1' to build VCS simulator to emit FSDB instead of VPD."
HELP_SIMULATION_VARIABLES += \
" USE_FSDB = set to '1' to run VCS simulator emitting FSDB instead of VPD."
ifdef USE_FSDB
WAVEFORM_FLAG=+fsdbfile=$(sim_out_name).fsdb
else
WAVEFORM_FLAG=+vcdplusfile=$(sim_out_name).vpd
endif
# If ntb_random_seed unspecified, vcs uses 1 as constant seed.
# Set ntb_random_seed_automatic to actually get a random seed
@@ -55,3 +65,7 @@ PREPROC_DEFINES = \
+define+RANDOMIZE_REG_INIT \
+define+RANDOMIZE_GARBAGE_ASSIGN \
+define+RANDOMIZE_INVALID_ASSIGN
ifdef USE_FSDB
PREPROC_DEFINES += +define+FSDB
endif