Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17264 Discussions

How to initialize this array

Altera_Forum
Honored Contributor II
1,487 Views

hi my friends! 

how to initialize this array: 

type dataout is array (6 downto 0,11 downto 0) of std_logic_vector(7 downto 0);
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
573 Views

that is not an array - it is a type declaration. You initialise the signal/variable/constant when you declare it. 

 

constant some_array : dataout := (others => (others => (others =>'0'))); 

 

btw - dataout is a very poor name choice for a type. At least call it dataout_type or similar.
0 Kudos
Reply