From ab07d64195898be7e4b1436ec9c6368ea707c004 Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Sat, 6 Jan 2024 00:41:57 -0600 Subject: [PATCH] Fixes coremark. Maybe works with verilator. --- testbench/testbench.sv | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/testbench/testbench.sv b/testbench/testbench.sv index 7b5877e9c..2d947a591 100644 --- a/testbench/testbench.sv +++ b/testbench/testbench.sv @@ -387,7 +387,15 @@ module testbench; end end end - + + // *** 06 January 2024 RT: may have to uncomment this block for vcs/verilator + integer adrindex; + if (P.UNCORE_RAM_SUPPORTED) + always @(posedge clk) + if (ResetMem) // program memory is sometimes reset + for (adrindex=0; adrindex<(P.UNCORE_RAM_RANGE>>1+(P.XLEN/32)); adrindex = adrindex+1) + dut.uncore.uncore.ram.ram.memory.RAM[adrindex] = '0; + //////////////////////////////////////////////////////////////////////////////// // Actual hardware ////////////////////////////////////////////////////////////////////////////////