Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

how 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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);