Using correct libraries
can I use std_logic_arith (signed and unsigned) and std_numeric (signed) libraries in the same module or it's better not to?
The reason I am asking that question is because I have signed addition and subtraction in a module, and ModelSim gives a good simulation result. However implementing it on hardware, gives some errors - the signal is cut and shifted as there was a confusion between signed and unsigned types inside. There, I am using std_numeric and 1164 libraries only. The compiler allows me to include std_logic_unsigned there as well, but it does not make a difference on either (software or hardware) simulations.
Thanks