me0414013
Junior Member level 3
- Joined
- Aug 30, 2012
- Messages
- 28
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- ongole
- Activity points
- 1,504
inputs and signals:
Iam getting the warning in the above line of the code.
since sig_word expects a range upto 23. but the to_integer is upto 31(since sig_counter is of 5 bits).
so how to specify the range(0 to 23) when i convert to integer??
Code:
sig_word : in unsigned( 23 downto 0 );
signal sig_data : std_logic;
signal sig_counter : unsigned( 4 downto 0 );
sig_data <= sig_word(to_integer(sig_counter) );
Iam getting the warning in the above line of the code.
---Index value(s) does not match array range, simulation mismatch.
since sig_word expects a range upto 23. but the to_integer is upto 31(since sig_counter is of 5 bits).
so how to specify the range(0 to 23) when i convert to integer??
Last edited by a moderator: