add888.vhd
来自「通过VHDL语言进行数字信号处理的FIR操作」· VHDL 代码 · 共 22 行
VHD
22 行
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 + =
减小字号Ctrl + -
显示快捷键?