Skip to content

Commit

Permalink
Merge pull request #789 from silabs-oysteink/silabs-oysteink_csr-latc…
Browse files Browse the repository at this point in the history
…h-fix

Removed accidental latches in csr_wdata_int when DEBUG=0.
  • Loading branch information
Silabs-ArjanB authored Feb 21, 2023
2 parents 6c0340d + 95bd006 commit c0800cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rtl/cv32e40x_cs_registers.sv
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ module cv32e40x_cs_registers import cv32e40x_pkg::*;
csr_rdata_int = dcsr_rdata;
illegal_csr_read = !ctrl_fsm_i.debug_mode;
end else begin
csr_rdata_int = '0;
illegal_csr_read = 1'b1;
end
end
Expand All @@ -548,6 +549,7 @@ module cv32e40x_cs_registers import cv32e40x_pkg::*;
csr_rdata_int = dpc_rdata;
illegal_csr_read = !ctrl_fsm_i.debug_mode;
end else begin
csr_rdata_int = '0;
illegal_csr_read = 1'b1;
end
end
Expand All @@ -557,6 +559,7 @@ module cv32e40x_cs_registers import cv32e40x_pkg::*;
csr_rdata_int = dscratch0_rdata;
illegal_csr_read = !ctrl_fsm_i.debug_mode;
end else begin
csr_rdata_int = '0;
illegal_csr_read = 1'b1;
end
end
Expand All @@ -566,6 +569,7 @@ module cv32e40x_cs_registers import cv32e40x_pkg::*;
csr_rdata_int = dscratch1_rdata;
illegal_csr_read = !ctrl_fsm_i.debug_mode;
end else begin
csr_rdata_int = '0;
illegal_csr_read = 1'b1;
end
end
Expand Down

0 comments on commit c0800cb

Please sign in to comment.