Forum Discussion
Altera_Forum
Honored Contributor
10 years agoVerilog Error
Could you please let me know how to declare a synthesizable array of constants? The constants are shown in the define directive. The below is giving an error. I am new to verilog . Thanks `de...
Altera_Forum
Honored Contributor
10 years agoThe trouble is not your defines. With Verilog, you cannot initialise a 2D array in that way.
You should instead use an initial block:
initial begin
IDATA = DATA_0;
IDATA = DATA_1;
...
end
Also, you appear to have only 8 initialisation values, but there are 32 elements in the array to be initialised.