Altera_Forum
Honored Contributor
11 years agoError using shift and power operator
Hi;
I am getting error using sla and ** operators. My code is as under : Rx_Buff_i : in STD_LOGIC_VECTOR (7 downto 0); . . . signal Chksum : std_logic_vector(7 downto 0) := (others => '0'); signal Shft_buff : std_logic_vector(1607 downto 0) :=(others => '0'); . . . . Shft_buff<= Shft_buff sla 8; Chksum <= Chksum ** Rx_Buff_i; I am including the following libraries: use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_unsigned.ALL; use IEEE.std_logic_arith.all; use IEEE.numeric_std.ALL; The following errors I am getting 1)found '0' definitions of operator "sla", cannot determine exact overloaded matching definition for "sla" 2) found '0' definitions of operator "**", cannot determine exact overloaded matching definition for "**" plz help