Working with multi-dimensional associative arrays

In reply to dave_59:

Some tools are treating array literal(one which is defined with '{}), concatenation( {}) in the same way.(I feel that mostly all tools does this)

First of all the array is two dimensional and the value stored is of type int. So VCS is printing concatenation equivalent value of {0,1,2,3} == 3 (because all 4 are int type and result should go to int type.)

Your tool is somewhat intelligent so it throwing an error. But that error is because of width mismatch. If you have following declaration in the inner brackets then i think you don’t even see the error.


{8'h01,8'h30,8'h10,8'h3};

So care must be taken while declaring array dimension.