mirror of
https://github.com/olofk/serv.git
synced 2026-02-27 08:49:04 +00:00
Add SERV_CLEAR_RAM parameter
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -24,7 +24,7 @@ filesets:
|
||||
targets:
|
||||
default:
|
||||
filesets : [core]
|
||||
parameters : [RISCV_FORMAL]
|
||||
parameters : [RISCV_FORMAL, SERV_CLEAR_RAM]
|
||||
|
||||
lint:
|
||||
default_tool : verilator
|
||||
@@ -39,3 +39,7 @@ parameters:
|
||||
datatype : bool
|
||||
paramtype : vlogdefine
|
||||
|
||||
SERV_CLEAR_RAM:
|
||||
datatype : bool
|
||||
paramtype : vlogdefine
|
||||
|
||||
|
||||
Reference in New Issue
Block a user