Skip to content

Commit

Permalink
Harden questa yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioOpenHWGroup committed Aug 27, 2024
1 parent 8888380 commit 8b05d94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,15 @@ incdir := $(CVA6_REPO_DIR)/vendor/pulp-platform/common_cells/include/ $(CVA6_REP
compile_flag += -incr -64 -nologo -quiet -suppress 13262 -suppress 8607 +permissive -svinputport=compat +define+$(defines) -suppress 8386 -suppress vlog-2577
vopt_flag += -suppress 2085 -suppress 7063 -suppress 2698 -suppress 13262

ifdef config-file
spike-yaml-plusarg = +config_file=$(spike_yaml)
endif

uvm-flags += +UVM_NO_RELNOTES +UVM_VERBOSITY=UVM_LOW
questa-flags += -t 1ns -64 $(gui-sim) $(QUESTASIM_FLAGS) \
+tohost_addr=$(shell ${RISCV}/bin/${CV_SW_PREFIX}nm -B $(elf) | grep -w tohost | cut -d' ' -f1) \
+core_name=$(target) +define+QUESTA -suppress 3356 -suppress 3579 +report_file=$(report_file) \
+config_file=$(iss_yaml)
$(spike-yaml-plusarg)
compile_flag_vhd += -64 -nologo -quiet -2008

# Iterate over all include directories and write them with +incdir+ prefixed
Expand Down
3 changes: 2 additions & 1 deletion verif/sim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ spike_params_final = $(spike_params)
ifneq ($(wildcard $(spike_yaml)),)
spike_params_final := $(spike_params_final) --param-file $(spike_yaml)
spike-yaml-plusarg = +config_file=$(spike_yaml)
spike-yaml-makearg = config_file=$(spike_yaml)
endif

##############################################
Expand Down Expand Up @@ -430,7 +431,7 @@ xrun-testharness:
questa-testharness:
mkdir -p $(path_var)/tmp
make -C $(path_var) sim target=$(target) defines=$(subst +define+,,$(isscomp_opts)+core_name=$(target)) batch-mode=1 elf_file=$(elf) \
report_file=$(log).yaml iss_yaml=$(spike_yaml)
report_file=$(log).yaml $(spike-yaml-makearg)
# TODO: Add support for waveform collection.
$(tool_path)/spike-dasm --isa=$(variant) < $(path_var)/trace_rvfi_hart_00.dasm > $(log)
grep $(isspostrun_opts) $(path_var)/trace_rvfi_hart_00.dasm
Expand Down

0 comments on commit 8b05d94

Please sign in to comment.