shaiko
Advanced Member level 5
- Joined
- Aug 20, 2011
- Messages
- 2,644
- Helped
- 303
- Reputation
- 608
- Reaction score
- 297
- Trophy points
- 1,363
- Activity points
- 18,302
Code:
signal x : ( A downto B ) ; -- A and B are entity generics
If A is 7 and B is 0 then signal x becomes ( 7 downto 0 ) and we can write:
Code:
x <= ( 7 downto 1 => '0' , 0 => '1' );
Code:
x <= ( x ' high downto x ' low + 1 => '0' , x ' low => '1' ) ;
Please advice.Non-locally static choice (association #1, choice #1) is allowed only if it is the only choice of the only association.