Forum Discussion
3 Replies
- Altera_Forum
Honored Contributor
variable temp2 : std_logic_vector(2 downto 0);
.... temp2 := temp(5 downto 3); - Altera_Forum
Honored Contributor
i mean temp2 : std_logic_vector(6 downto 0) := "011011"
if want to get from bit 3 to bit 5 which is 101 does it need to write a substring function or is there a function that can do this? - Altera_Forum
Honored Contributor
I dont quite understand what you mean. You can slice an array like I showed you.
temp3 := temp2(5 downto 3);