T
Tricky
Guest
so I have this type definition:
type slv_array4_t is array(0 to 3) of std_logic_vector;
but when I try this:
signal some_thing : slv_array4_t(7 downto 0);
I get this error from VCOM:
ERROR: In array constraint at depth 1 the array slv_array4_t has already been constrained.
I get the same error when I try
signal some_thing : slv_array4_t(0 to 3)(7 downto 0);
It has no problem compiling the type delcaration.
So whats the correct syntax for this? or should both dimension be unconstrained (and vcom should flag it?)
type slv_array4_t is array(0 to 3) of std_logic_vector;
but when I try this:
signal some_thing : slv_array4_t(7 downto 0);
I get this error from VCOM:
ERROR: In array constraint at depth 1 the array slv_array4_t has already been constrained.
I get the same error when I try
signal some_thing : slv_array4_t(0 to 3)(7 downto 0);
It has no problem compiling the type delcaration.
So whats the correct syntax for this? or should both dimension be unconstrained (and vcom should flag it?)