fahim1
Member level 4
hi
how can i initialize a 1d 1d vector that the length and columns of vector are generic?
like this :
how can i initialize a 1d 1d vector that the length and columns of vector are generic?
like this :
Code:
generic (n :integer :=4; --number of coefficients
m :integer :=4); --number of bits represent coefficients
.
.
.
.
type registers is array (n-2 downto 0) of std_logic_vector(m-1 downto 0);
.
.
.
signal reg : registers; ????(how to initialize all the values zero)
Last edited by a moderator: