Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17267 Discussions

How to initialize this array

Altera_Forum
Honored Contributor II
1,495 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
581 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