mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Merge pull request #553 from ross144/main
Fixed testbench for coremark. Possibly broke verilator.
This commit is contained in:
commit
7196f8ff79
@ -134,6 +134,8 @@ _start:
|
|||||||
add sp, sp, tp
|
add sp, sp, tp
|
||||||
|
|
||||||
j _init
|
j _init
|
||||||
|
sig_end_canary:
|
||||||
|
nop
|
||||||
|
|
||||||
.align 2
|
.align 2
|
||||||
trap_entry:
|
trap_entry:
|
||||||
|
@ -388,6 +388,14 @@ module testbench;
|
|||||||
end
|
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
|
// Actual hardware
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user