1
0
mirror of https://github.com/olofk/serv.git synced 2026-01-26 19:51:52 +00:00

Add SERV_CLEAR_RAM parameter

This commit is contained in:
Olof Kindgren
2019-06-24 11:22:06 +02:00
parent 70bdce9d8e
commit fe9d2677ba
3 changed files with 13 additions and 1 deletions

View File

@@ -164,6 +164,10 @@ module serv_mpram
end
`ifdef RISCV_FORMAL
`define SERV_CLEAR_RAM
`endif
`ifdef SERV_CLEAR_RAM
integer i;
initial
for (i=0;i<256;i=i+1)

View File

@@ -74,6 +74,10 @@ module serv_regfile
end
`ifdef RISCV_FORMAL
`define SERV_CLEAR_RAM
`endif
`ifdef SERV_CLEAR_RAM
integer i;
initial
for (i=0;i<512;i=i+1)