mirror of
https://github.com/olofk/serv.git
synced 2025-04-23 13:27:05 -04:00
Add SERV_CLEAR_RAM parameter
This commit is contained in:
parent
70bdce9d8e
commit
fe9d2677ba
3 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue