itepri_sft.vhd

来自「完整的TPC编译码VHDL程序」· VHDL 代码 · 共 39 行

VHD
39
字号
LIBRARY ieee;
USE ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;

ENTITY itepri_sft IS
	PORT
	(
		clk		         : in   std_logic;
	 indata        : in   std_logic_vector(4 downto 0);
  outdata       : out  std_logic_vector(4 downto 0)

	);
END entity;
ARCHITECTURE rtl OF itepri_sft IS
signal shf0,shf1,shf2,shf3,shf4,shf5,shf6,shf7,shf8,shf9            : std_logic_vector(4 downto 0);


begin
 process(clk)
 begin
   if clk'event and clk='1' then
    shf0<=indata;
    shf1<=shf0;
    shf2<=shf1;
    --shf3<=shf2;
    --shf4<=shf3;
    --shf5<=shf4;
    --shf6<=shf5;
    --shf7<=shf6;
    --shf8<=shf7;
    --shf9<=shf8;
    --shf10<=shf9;

    outdata<=shf2;
   end if;
 end process;

end rtl;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?