Code VHDL - [expand] |
1
2
3
4
5
6
7
8
9
10
11
| library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.all;
use IEEE.std_logic_arith.all;
use IEEE.NUMERIC_STD.ALL;
USE IEEE.NUMERIC_BIT.ALL;
[/QUOTE]
While on the subject of typing, this massive load of package uses is a fairly standard way to confuse yourself with less than straightforward errors. numeric_std and std_logic_arith both declare types called "signed" and "unsigned". The joy of this is that if you try to use either, you'll get an error about a clash and you wont be able to use either without explicitly declaring which one you meant.
So it is much better just to drop std_logic_arith from your code, as it's not part of the VHDL standard (and neither is std_logic_unsigned for that matter). |