V
VHDL_HELP
Guest
hi every body
i hope that someone help into this problem:
into my entity i have as input :
x : in STD_LOGIC_VECTOR(9 downto 0);
and as an output:
yut STD_LOGIC_VECTOR(19 downto 0);
my problem is in my architecture :
y <= x sll 9 ;
i get an error :"sll can not have such operands in this context."
and i did try an example from xilinx and it isnt work too :
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity lshift is
port(DI : in std_logic_vector(7 downto 0);
sel : in std_logic_vector(1 downto 0);
SO : out std_logic_vector(7 downto 0));
end lshift;
architecture archi of lshift is
begin
with sel select
SO <= DI when "00",
DI sll 1 when "01",
DI sll 2 when others;
end archi;
--------------------------------------------------------------------------------
i have the same error .
Can you help me please and thank you
i hope that someone help into this problem:
into my entity i have as input :
x : in STD_LOGIC_VECTOR(9 downto 0);
and as an output:
yut STD_LOGIC_VECTOR(19 downto 0);
my problem is in my architecture :
y <= x sll 9 ;
i get an error :"sll can not have such operands in this context."
and i did try an example from xilinx and it isnt work too :
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity lshift is
port(DI : in std_logic_vector(7 downto 0);
sel : in std_logic_vector(1 downto 0);
SO : out std_logic_vector(7 downto 0));
end lshift;
architecture archi of lshift is
begin
with sel select
SO <= DI when "00",
DI sll 1 when "01",
DI sll 2 when others;
end archi;
--------------------------------------------------------------------------------
i have the same error .
Can you help me please and thank you