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:
Guillaume Chauvon 2025-03-31 12:51:11 +02:00 committed by GitHub
parent c3507a1223
commit 31dd1d232b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;