while simulating my VHDL code in Model Sim, it stops when it reaches the line:
codeWord <= d_table_99_a(to_integer(total_zeros))(to...
and the parameters are:
codeWord : OUT unsigned (dataArrayLen - 1 DOWNTO 0);
total_zeros : IN unsigned (3 DOWNTO 0);
tzVlcIndex : IN unsigned (3 DOWNTO 0);
TYPE Chroma_2x2_tzVlcIndex IS ARRAY (0 TO 2) of unsigned(2 DOWNTO 0); -- tz
TYPE Chroma_2x2_total_zeros IS ARRAY (0 TO 3) of Chroma_2x2_tzVlcIndex; -- total_zero
CONSTANT d_table_99_a : Chroma_2x2_total_zeros :=
(("001","001","001"),
("001","001","000"),
("001","000","000"),
("000","000","000")
);
and the error is:
# Fatal error at D:/ModelSim/totalZeros.vhd line 148
Tags: