alexz
Full Member level 5

vhdl initialize array
How to Initialize 2D array in VHDL?
Is there any more clever form of doing this?
How to Initialize 2D array in VHDL?
Code:
subtype latchType is std_logic_vector(15 downto 0) ;
type latchesType is array (9 downto 0) of latchType ;
signal mylatches : latchesType := ((others=>'0'),(others=>'0'),(others=>'0'),(others=>'0'),(others=>'0'),(others=>'0'),(others=>'0'),(others=>'0'),(others=>'0'),(others=>'0'));
Is there any more clever form of doing this?