Hi techies,
I am declaring constant value of four dimension array as below.
Type Ostates is array (0 to 1) of std_logic_vector (1 downto 0);
Type Outstates is array (0 to 1) of Ostates ;
Type VaryStates is array (0 to 1) of Outstates;
Type User is array (0 to 1) of VaryStates;
CONSTANT fourdarray : User := ( ( (("11","01"),
("10","11")),
(("11","01"),
("10","11")) ),
( (("11","01"),
("10","11")),
(("11","01"),
("10","11")) ) );
any of the value in constant is accessed by fourdarray (x)(x)(x)(x). for example, fourdarray (0)(0)(1)(1) access the value 11.
I am able to synthesize as well as implement the design in xilinx ISE tool.
But i wanna know whether this approach is correct??
I am declaring constant value of four dimension array as below.
Type Ostates is array (0 to 1) of std_logic_vector (1 downto 0);
Type Outstates is array (0 to 1) of Ostates ;
Type VaryStates is array (0 to 1) of Outstates;
Type User is array (0 to 1) of VaryStates;
CONSTANT fourdarray : User := ( ( (("11","01"),
("10","11")),
(("11","01"),
("10","11")) ),
( (("11","01"),
("10","11")),
(("11","01"),
("10","11")) ) );
any of the value in constant is accessed by fourdarray (x)(x)(x)(x). for example, fourdarray (0)(0)(1)(1) access the value 11.
I am able to synthesize as well as implement the design in xilinx ISE tool.
But i wanna know whether this approach is correct??