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

📄 adder.vhd

📁 8位加法器VHDL源程序
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
entity adder is                          
      port(A:in std_logic;             
           B:in std_logic;
           Cin:in std_logic;             
           co:out std_logic;           
           S:out std_logic);      
end adder;
architecture hav of adder is          
      signal tmp1,tmp2 : std_logic;
      begin                             
        tmp1<=A xor B;
        tmp2<=tmp1 and Cin;
        S<=tmp1 xor Cin ;
        Co<=tmp2 or (A and B);
end hav;

⌨️ 快捷键说明

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