Solution:
If you use Synplify Pro, check the Verilog standard used by the tool.
To check the Verilog standard:
1. Open Lattice Diamond project.
2. Go to Strategy->Synplify Pro->Verilog Input.
Verilog 2001 standard does not support multidimensional packed array, but it supports multidimensional unpacked array.