Altera_Forum
Honored Contributor
14 years agoquestion about arithmetic operator '+'
Every time I try following code, there is a error saying that "Error (10327): VHDL error at Arithmetic.vhd(35): can't determine definition of operator ""+"" -- found 0 possible definitions", Can anyone shed some light? Thanks.
library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; use ieee.numeric_std.all; entity Arithmetic is port( var3 : in bit_vector(7 downto 0); var9 : out bit_vector(8 downto 0) ); end Arithmetic; architecture architecture of Arithmetic is signal var8 : bit_vector(8 downto 0); begin var8 <= '0' & var3; var9 <= var8 + var8; end architecture;