Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

Error 10327: Can't determine definition of operator ""+""

Hello to everybody,

could someone tell me what's wrong in the following code?

library ieee;

use ieee.std_logic_1164.all;

use ieee.numeric_std.all;

entity round16to12 is

port

(

a : in std_logic_vector(15 downto 0);

q : out std_logic_vector(11 downto 0)

);

end entity;

architecture beh of round16to12 is

signal roundoff : std_logic_vector(11 downto 0) := (0 => a(3), others => '0');

begin

process(a)

begin

line 23: q <= (not( a(15)) & a(14 downto 4)) + roundoff;

end process;

end beh;

The error message is the following:

Error (10327): VHDL error at round16to12.vhd(23): can't determine definition of operator ""+"" -- found 0 possible definitions

Thank for your support

30 Replies