Altera_Forum
Honored Contributor
9 years agoArray of integer to std_logic_vector !?
Hello guys !
Description : the input is an std_logic_vector ..... the outpout must be an std_logic_vector BUT, I read every element of the input and check if it is '1' then write 1 to an array else write -1 . the final array should be converted to an output which is an std_logic_vector !!!! For example INput : std_logic_vector (5 downto 0) :="010101"; ====> array = { -1 1 -1 1 -1 1} OUTput : std_logic_vector (5 downto 0); What are the possible solution to go from array to my output?!!!