From 0491837ebe928770ef46d57efecb73f43839c9b8 Mon Sep 17 00:00:00 2001 From: Pascal Gouedo Date: Thu, 3 Aug 2023 15:21:29 +0200 Subject: [PATCH] Removed NUM_MHPMCOUNTERS from mimpid computation. Signed-off-by: Pascal Gouedo --- rtl/cv32e40p_cs_registers.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtl/cv32e40p_cs_registers.sv b/rtl/cv32e40p_cs_registers.sv index 5782b2957..455e3cfcb 100644 --- a/rtl/cv32e40p_cs_registers.sv +++ b/rtl/cv32e40p_cs_registers.sv @@ -507,7 +507,7 @@ module cv32e40p_cs_registers // mimpid, Machine Implementation ID CSR_MIMPID: begin - csr_rdata_int = (FPU || COREV_PULP || COREV_CLUSTER || (NUM_MHPMCOUNTERS > 1)) ? 32'h1 : 'b0; + csr_rdata_int = (FPU || COREV_PULP || COREV_CLUSTER) ? 32'h1 : 'b0; end // unimplemented, read 0 CSRs