Skip to content

Commit

Permalink
Override unsupported CSR method in cfg cva6 env, to remove unsupporte…
Browse files Browse the repository at this point in the history
…d CSR for STEP1 cfg
  • Loading branch information
AyoubJalali committed Aug 11, 2023
1 parent dfdcefe commit b6bd966
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cva6/env/uvme/uvme_cva6_cfg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ class uvme_cva6_cfg_c extends uvma_core_cntrl_cfg_c;
*/
extern virtual function void sample_parameters(uvma_core_cntrl_cntxt_c cntxt);

/**
* Set unsupported_csr_mask based on extensions/modes supported
*/
extern virtual function void set_unsupported_csr_mask();

endclass : uvme_cva6_cfg_c


Expand Down Expand Up @@ -227,4 +232,13 @@ function void uvme_cva6_cfg_c::sample_parameters(uvma_core_cntrl_cntxt_c cntxt);

endfunction : sample_parameters

function void uvme_cva6_cfg_c::set_unsupported_csr_mask();

super.set_unsupported_csr_mask();

// Remove unsupported CSRs for STEP1 configuration
unsupported_csr_mask[uvma_core_cntrl_pkg::MCOUNTINHIBIT] = 1;

endfunction : set_unsupported_csr_mask

`endif // __UVME_CVA6_CFG_SV__

0 comments on commit b6bd966

Please sign in to comment.