Bump CVV 2465 and adapt cva6pkg (#2263)

This commit is contained in:
MarioOpenHWGroup 2024-06-17 16:49:10 +02:00 committed by GitHub
parent c93587b1f9
commit c78ede91f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

@ -1 +1 @@
Subproject commit 835720badada8c2416ec990caad8bdac7559b56b
Subproject commit 91c94e854b5a1fa589375b35aa521ac5cb0766ea

View file

@ -36,7 +36,7 @@ function st_core_cntrl_cfg cva6pkg_to_core_cntrl_cfg(st_core_cntrl_cfg cfg);
cfg.ext_zcb_supported = CVA6Cfg.RVZCB;
cfg.ext_zifencei_supported = 1;
cfg.ext_zicsr_supported = 1;
cfg.ext_zicntr_supported = 1;
cfg.ext_zicntr_supported = 0;
cfg.ext_cv32a60x_supported = 1;
@ -71,8 +71,9 @@ function st_core_cntrl_cfg cva6pkg_to_core_cntrl_cfg(st_core_cntrl_cfg cfg);
void'(spike_set_param_uint64_t(base, "mtvec_vectored_alignment", 64 * 4));
void'(spike_set_param_str(base, "extensions", "cv32a60x"));
void'(spike_set_param_bool(base, "status_xs_field_we_enable", 1'b1));
void'(spike_set_param_bool(base, "status_xs_field_we", 1'b0));
// All enabled except XS and TW bits
void'(spike_set_param_uint64_t(base, "mstatus_write_mask", 'hFDFE_7FFF));
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));