I haven't tried to synthesize myself but if someone could help to give a quick answer, that would be highly appreciated.
For a regular RAM, I see people do this in their Verilog, but I am told that initial is not synthesizable in Synopsys Design Compiler and I wonder if there is a difference among tools. Or this is doable just for memory initialization.
initial begin
for (count=0;count<2048;count=count+1) RAM[count]=0;
end
This is specifically targeting ASIC instead of FPGA or Xilinx. Thanks in advance!
initial
block, one can also initialize memory by usingreset
condition inalways
procedural block. – sharvil111for
loop terminating condition is fixed. If you are using SystemVerilog, then one can also use default array assignment'{default:'0}
. – sharvil111