Mkanimozhi
Full Member level 4
vhdl shift
need simple code in vhdl using shift opeartors
buz
here is my code , but i m getting error
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 10:41:21 12/22/2008
-- Design Name:
-- Module Name: sll_op - Behavioral
-- Project Name:
-- Target Devices:
-- Tool versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
use ieee.numeric_std.all;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity sll_op is
port(
a: in std_logic_vector(4 downto 0);
b: out std_logic_vector(4 downto 0));
end sll_op;
architecture Behavioral of sll_op is
begin
b<= a srl 1;
end Behavioral;
thanks in advance
kanimozhi.m
need simple code in vhdl using shift opeartors
buz
here is my code , but i m getting error
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 10:41:21 12/22/2008
-- Design Name:
-- Module Name: sll_op - Behavioral
-- Project Name:
-- Target Devices:
-- Tool versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
use ieee.numeric_std.all;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity sll_op is
port(
a: in std_logic_vector(4 downto 0);
b: out std_logic_vector(4 downto 0));
end sll_op;
architecture Behavioral of sll_op is
begin
b<= a srl 1;
end Behavioral;
thanks in advance
kanimozhi.m