📄 add888.vhd
字号:
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_arith.ALL;
ENTITY add888 is
PORT(clk : in STD_LOGIC;
Din1:in signed (15 downto 0);
Din2:in signed (15 downto 0);
Dout:out signed(7 downto 0));
END add888;
ARCHITECTURE a of add888 is
SIGNAL s1: signed(7 downto 0);
SIGNAL s2: signed(7 downto 0);
BEGIN
s1<=(Din1(15 downto 8));
s2<=(Din2(15 downto 8));
PROCESS(Din1,Din2,clk)
BEGIN
if clk'event and clk='1' then
Dout<=s1+s2;
end if;
end process;
end a;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -