Skip to content

Commit

Permalink
Merge pull request #2108 from ThalesSiliconSecurity/supportcsr
Browse files Browse the repository at this point in the history
Override unsupported CSR method in cfg cva6 env
  • Loading branch information
MikeOpenHWGroup authored Aug 14, 2023
2 parents 0da8e08 + b6bd966 commit f555300
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 f555300

Please sign in to comment.