Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHi, first of all, delete
USE ieee.std_logic_signed.ALL;
USE ieee.std_logic_unsigned.ALL;
They are not compatible with "numeric_std" Second, you can't convert integer to std_logic_vector directly, you need Integer---> Signed/unsigned---->std_logic_vector. But I can't see where you are wrong in conversions, maube the MOD function. Pdt2_int should be 11-bit wide be careful using process like this, you will create latch and unexpected results. You should give all signal that enters the process in the sensitivity list. and Why are you using a process ? I think "(integer) MOD (integer)" doesn't work. It would be "(signed) MOD (integer)" or "(integer) MOD (signed)"