Forum Discussion
Altera_Forum
Honored Contributor
14 years agoconv_std_logic_vector
I have the following code but after compiling it said there is error in conv_std_logic_vector , can someone help me ?? library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_AR...
Altera_Forum
Honored Contributor
14 years agoOops, as Tricky pointed out, they're actually the same size. For some reason, when I read your code, I thought that "Position" was a larger vector.
However, you still would be better off getting rid of std_logic_arith and std_logic_unsigned. If you declare "Count" as UNSIGNED, then your assignment would just be:
Position <= std_logic_vector(Count);