From 0e5f7b95f913194912c016cb0a6becb1ce50dcd6 Mon Sep 17 00:00:00 2001 From: Mike Thompson Date: Wed, 20 Dec 2023 16:52:26 +0000 Subject: [PATCH] Remove magic number --- cv32e40p/env/uvme/uvme_cv32e40p_tdefs.sv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv32e40p/env/uvme/uvme_cv32e40p_tdefs.sv b/cv32e40p/env/uvme/uvme_cv32e40p_tdefs.sv index a8a3b0eaed..cfd7abf688 100644 --- a/cv32e40p/env/uvme/uvme_cv32e40p_tdefs.sv +++ b/cv32e40p/env/uvme/uvme_cv32e40p_tdefs.sv @@ -115,7 +115,8 @@ typedef struct { } ins_t; -typedef logic [7:0] mem_arr[2**22]; +// UVME_CV32E40P_MEM_SIZE is defined in uvme_cv32e40p_macros.sv +typedef logic [7:0] mem_arr[2**`UVME_CV32E40P_MEM_SIZE]; typedef enum { FETCH_CONSTANT,