Skip to content

Commit

Permalink
Issue openhwgroup#840 correction
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Gouedo <[email protected]>
  • Loading branch information
Pascal Gouedo committed Jul 31, 2023
1 parent 6cfb743 commit 6beb822
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rtl/cv32e40p_cs_registers.sv
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,11 @@ module cv32e40p_cs_registers
// marchid: Machine Architecture ID
CSR_MARCHID: csr_rdata_int = MARCHID;

// mimpid, Machine Implementation ID
CSR_MIMPID: csr_rdata_int = (FPU || COREV_PULP || COREV_CLUSTER || (NUM_MHPMCOUNTERS > 1)) ? 32'h1 : 'b0;

// unimplemented, read 0 CSRs
CSR_MIMPID, CSR_MTVAL: csr_rdata_int = 'b0;
CSR_MTVAL: csr_rdata_int = 'b0;

CSR_TSELECT, CSR_TDATA3, CSR_MCONTEXT, CSR_SCONTEXT: csr_rdata_int = 'b0; // Always read 0
CSR_TDATA1: csr_rdata_int = tmatch_control_rdata;
Expand Down

0 comments on commit 6beb822

Please sign in to comment.