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

📄 reg16b.vhd

📁 一个用VerilogHDL语言编写的8X8的乘法器
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
entity reg16b is
port(clk:in std_logic;
     clr:in std_logic;
       d:in std_logic_vector(8 downto 0);
       q:out std_logic_vector(15 downto 0)
     );
end reg16b;

architecture behav of reg16b is
	signal r16s :std_logic_vector(15 downto 0);
begin
	process(clk,clr)
	begin
	if clk='1' then r16s<=(others=>'0');  --
	elsif clk 'event and clk='1' then   --
	     r16s(6 downto 0)<=r16s(7 downto 1);  --
	     r16s(15 downto 0)<=d;
    end if;
end process;
q<=r16s;
end behav;

⌨️ 快捷键说明

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