Skip to content

Commit

Permalink
Disable misa we in rm (#2181)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioOpenHWGroup authored Jun 3, 2024
1 parent 3e907d6 commit d89c5b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions verif/sim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,12 @@ COMMON_PLUS_ARGS = \
+tohost_addr=$(shell $$RISCV/bin/$(CV_SW_PREFIX)nm -B $(elf) | grep -w tohost | cut -d' ' -f1) \
+signature=$(elf).signature_output +UVM_TESTNAME=uvmt_cva6_firmware_test_c \
$(spike-yaml-plusarg) \
+report_file=$(log).yaml +core_name=$(target)

ifneq ($(UVM_VERBOSITY),)
COMMON_PLUS_ARGS += +UVM_VERBOSITY=$(UVM_VERBOSITY)
endif

COMMON_RUN_UVM_FLAGS = \
+UVM_TESTNAME=uvmt_cva6_firmware_test_c \
+report_file=$(log).yaml +core_name=$(target)

COMMON_RUN_ARGS = \
$(COMMON_PLUS_ARGS) $(issrun_opts) \
-sv_lib $(SPIKE_INSTALL_DIR)/lib/libcustomext \
Expand Down
2 changes: 2 additions & 0 deletions verif/tb/core/uvma_cva6pkg_utils.sv
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ function st_core_cntrl_cfg cva6pkg_to_core_cntrl_cfg(st_core_cntrl_cfg cfg);
void'(spike_set_param_bool(base, "status_xs_field_we", 1'b0));
void'(spike_set_param_uint64_t(base, "misa_override_value", get_misa(cfg)));
void'(spike_set_param_uint64_t(base, "misa_override_mask", 64'h0FFF_FFFF));
void'(spike_set_param_bool (base, "misa_we_enable", 1'b1));
void'(spike_set_param_bool (base, "misa_we", 1'b0));

return cfg;

Expand Down

0 comments on commit d89c5b6

Please sign in to comment.