Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion rtl/serv_csr.v
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,14 @@ module serv_csr
always @(posedge i_clk) begin
/*
Note: To save resources mstatus_mpie (mstatus bit 7) is not
readable or writable from sw
readable from sw
*/
if (i_mstatus_en & i_cnt3)
mstatus_mie <= csr_in;

if (i_mstatus_en & i_cnt7)
mstatus_mpie <= csr_in;

if (i_mie_en & i_cnt7)
mie_mtie <= csr_in;

Expand Down