library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use ieee.numeric_std.all;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity leftshift is
Port ( Din : in STD_LOGIC_VECTOR (31 downto 0);
Dout : out STD_LOGIC_VECTOR (31 downto 0));
end leftshift;
architecture Behavioral of leftshift is
signal t1: std_logic_vector (33 downto 0);
begin
t1 <= Din sll 2;
Dout <= t1(33 downto 2)
end Behavioral;
This is my code, but I don't know why I'm getting the error.
found '0' definitions of operator "sll", cannot determine exact overloaded matching definition for "sll"
I also tried using just Dout <= Din sll 2 but it still doesn't work. Please help me.