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

📄 fulladd.vhd

📁 用于实现两个数相加的vhdl代码
💻 VHD
字号:
-------------------------------------------------------
-- Full adder.
--
-- This project demonstrates the use of concurrent
-- statements in VHDL., and demonstrates the simplest
-- form of VHDL design description. There are no
-- external libraries specified.
--
-- The test bench for this example (TESTADD.VHD) expects
-- that this module (FULLADD.VHD) be compiled into the
-- WORK library.
--

entity FULLADDER is
    port (X: in bit;
          Y: in bit;
          Cin: in bit;
          Cout: out bit;
          Sum: out bit);
end FULLADDER;

architecture CONCURRENT of FULLADDER is
begin

    -- Concurrent statements go here...

    Sum <= X xor Y xor Cin;
    Cout <= (X and Y) or (X and Cin) or (Y and Cin);

end CONCURRENT;

⌨️ 快捷键说明

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