⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rightshift.vhd

📁 利用图元实现层次化设计,编程完成数字序列的乘积求和
💻 VHD
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -