D
David Perry
Guest
I have a problem with constraining an array.
I have created the array type:
type V_array is array (integer range <>
of std_logic_vector(11 downto 0)
and created an array:
constant V_level_array : V_array := (x"0000",x"0100",x"2000");
so far so good , now the problem:
shared variable Vadc_array : V_array;
Gives me the error "Variable Vadc_array is not constrained", which is to be expected, but I can't figure out how to constrain it.
I want to make it the same size as V_level_array, but I don't want to just put 3 vectors in, I want it to reference the size of V_level_array, but how to do it is eluding me.
Any guidance here would be appreciated.
I have created the array type:
type V_array is array (integer range <>
and created an array:
constant V_level_array : V_array := (x"0000",x"0100",x"2000");
so far so good , now the problem:
shared variable Vadc_array : V_array;
Gives me the error "Variable Vadc_array is not constrained", which is to be expected, but I can't figure out how to constrain it.
I want to make it the same size as V_level_array, but I don't want to just put 3 vectors in, I want it to reference the size of V_level_array, but how to do it is eluding me.
Any guidance here would be appreciated.