配列の動的宣言

icarusでまたもや悲しい制限を発見してしまった。配列のサイズをParameterによって動的に宣言することが出来ない事が分かった。今のところあらかじめ十分に大きなサイズにして回避するしか無さそうだ。

   //reg [DAT_W-1:0] 	  word_list [MAX_FIFO_NUM-1:0]; //NG
   reg [DAT_W-1:0] 	  word_list [1023:0]; //OK

I found the new restriction on icarus. Icarus cannot allocate the size of array dynamically. So we need to allocate the array by an adequately large number.