Way to initialize synthesizable 2D array with constant values in Verilog

前端 未结 4 1181
陌清茗
陌清茗 2021-01-06 00:58

in VHDL, I can easily do this:

constant    cmdbytes       : bytearray(0 to Total) := (x\"05\", x\"00\", x...};

I want synthesizable constan

4条回答
  •  醉酒成梦
    2021-01-06 01:20

    Verilog 2005 doesn't allow array initialization. Though your FPGA vendor should have a means to generate a ROM.

提交回复
热议问题