qwerty_asdf
Member level 4
I have this:
but of course is not acceptable by compiler.
Can you suggest me an alternative way?
address_length is a generic so it can be used if you wish. What I want is obvious, give a value to the first 2 bits and the rest of them be '0'.
The error I get is:
Code:
constant offset_A: std_logic_vector(address_length+1 downto 0) :="01"&(others=>'0');
constant offset_B: std_logic_vector(address_length+1 downto 0) := "10"&(others=>'0');
Can you suggest me an alternative way?
address_length is a generic so it can be used if you wish. What I want is obvious, give a value to the first 2 bits and the rest of them be '0'.
The error I get is:
Code:
OTHERS aggregate cannot be operand of operator with unconstrained array formal.