rightshift.vhd

来自「利用图元实现层次化设计,编程完成数字序列的乘积求和」· VHDL 代码 · 共 22 行

VHD
22
字号
Library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;

entity rightshift is 
	port(
		Din:		in std_logic_vector(15 downto 0);
		clk:        in std_logic;
		Dout:		out std_logic_vector(15 downto 0));
end entity rightshift;

architecture beha of rightshift is
begin
process(clk)
		begin	
		if(rising_edge(clk)) then
	           Dout(11 downto 0)<=Din(15 downto 4);
	           Dout(15 downto 12)<="0000";
	end if;
end process;
end beha;

⌨️ 快捷键说明

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