adder12b.vhd

来自「直接数字频率合成」· VHDL 代码 · 共 12 行

VHD
12
字号
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity adder12b is
   port(a:in std_logic_vector(11 downto 0);
        b:in std_logic_vector(3 downto 0);
         s:out std_logic_vector(11downto 0)) ;       
end adder12b;
architecture behav of adder12b is
   begin
s<=a+b;
end behav;

⌨️ 快捷键说明

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