Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Hi, first of all, delete
USE ieee.std_logic_signed.ALL;
USE ieee.std_logic_unsigned.ALL;
They are not compatible with "numeric_std" --- Quote End --- They are perfectly compatible with numeric_std. They just arent compatible with each other, you should only use 1 at a time (not both). numeric_std only conflicts with std_logic_arith. --- Quote Start --- 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. --- Quote End --- There is no std_logic_vector->integer conversion in the OPs code. --- Quote Start --- 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. --- Quote End --- No Latches will be created because there are no conditional branches - it is a purely combinatorial process. The signals are missing from the sensitivity list though, but that means simulation behaviour will not match the hardware. Synthesis ignores sensitivity lists.