Altera_Forum
Honored Contributor
8 years agohow to create matrix in VHDL
Hi guys! I am trying to create a matrix or an array. 4 columns and 2 rows. Is my code correct?
type row_t is array(0 to 3) of std_logic_vector(7 downto 0);
type matrix_t is array(0 to 1, 0 to 3) of std_logic_vector(7 downto 0); Also I want to assign a variable to the first column? what is the syntax for this? thank you.