mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 21:27:10 -04:00
Increase code coverage priv_lvl in csr_regfile (#2885)
Co-authored-by: André Sintzoff <61976467+ASintzoff@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
c3507a1223
commit
31dd1d232b
1 changed files with 4 additions and 3 deletions
|
@ -2570,10 +2570,11 @@ module csr_regfile
|
|||
priv_lvl_o != riscv::PRIV_LVL_M && v_q)
|
||||
? 1'b1
|
||||
: 1'b0;
|
||||
end else if (CVA6Cfg.RVS) begin
|
||||
assign en_translation_o = (satp_mode_is_sv && priv_lvl_o != riscv::PRIV_LVL_M) ? 1'b1 : 1'b0;
|
||||
assign en_g_translation_o = 1'b0;
|
||||
end else begin
|
||||
assign en_translation_o = (satp_mode_is_sv && priv_lvl_o != riscv::PRIV_LVL_M)
|
||||
? 1'b1
|
||||
: 1'b0;
|
||||
assign en_translation_o = 1'b0;
|
||||
assign en_g_translation_o = 1'b0;
|
||||
end
|
||||
assign mxr_o = mstatus_q.mxr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue