Forum Discussion
Altera_Forum
Honored Contributor
9 years agoProblem converting to integer
I have a code
LIBRARY ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use ieee.std_logic_arith.all;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity REG_FILE is
port
(
REG_ADDR_IN :...
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- Yes. The problem was use ieee.std_logic_arith.all; Thank you. --- Quote End --- Yes - std_logic_arith and numeric_std have the same functions and types declared, so they clash, and neither of them are visible. std_logic_arith is not a standard VHDL package (neither is std_logic_unsigned), while numeric_std is. I recommend deleting std_logic_arith.