Altera_Forum
Honored Contributor
13 years agoSXT Error
I'm porting some old Xilinx code to Altera and I'm hitting an error.
When using the SXT function in the following code, I'm receiving an error. --code sum_azp_180(16 downto 0) <= (('0' & X"7080") + SXT(az_phase, 17)); --error Error (10621): VHDL Use Clause error at file.vhd(259): more than one Use Clause imports a declaration of simple name ""+"" -- none of the declarations are directly visible Error (10784): HDL error at file.vhd(36): see declaration for object ""+"" I have the following libraries included in the vhdl file. library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; use IEEE.STD_LOGIC_SIGNED.ALL; use IEEE.STD_LOGIC_MISC.ALL; use IEEE.NUMERIC_BIT.ALL; Any suggestions? Thanks