Skip to content

Commit

Permalink
Fix CSR width issues in debug module
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Oct 17, 2024
1 parent 9bf8672 commit cd60abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtl/serv_debug.v
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module serv_debug
input wire i_ibus_ack,
input wire [4:0] i_rd_addr,
input wire i_cnt_en,
input wire i_csr_in,
input wire [B:0] i_csr_in,
input wire i_csr_mstatus_en,
input wire i_csr_mie_en,
input wire i_csr_mcause_en,
Expand Down Expand Up @@ -149,7 +149,7 @@ module serv_debug
end

if (i_cnt_en)
dbg_csr <= {i_csr_in, dbg_csr[31:1]};
dbg_csr <= {i_csr_in, dbg_csr[31:W]};
if (update_rd)
if (i_csr_mstatus_en)
dbg_mstatus <= dbg_csr;
Expand Down

0 comments on commit cd60abe

Please sign in to comment.