Forum Discussion
Altera_Forum
Honored Contributor
16 years agohow can i get part of std_logic_vector
hello
i want to get a part of std_logic_vector i have signal sec_vector : STD_LOGIC_VECTOR(5 DOWNTO 0) ; when i use sec_vector(3 downto 0) i get the error -> Cannot resolve slice name as type std.standard.bit_vector. what can i do ?3 Replies
- Altera_Forum
Honored Contributor
type missmatch
- Altera_Forum
Honored Contributor
my error sorry
- Altera_Forum
Honored Contributor
Sounds like you're trying to assign a std_logic_vector to a bit vector. They are not the same thing.
otherwise, sounds like you're doing it correctly. my_other_vector <= sec_vector(3 downto 0);