full_adder.vhd
来自「This is 8bit multiplier VHDL code. It s 」· VHDL 代码 · 共 23 行
VHD
23 行
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity full_adder is
Port (a, b, c : in std_logic;
sum, carry_out : out std_logic);
end full_adder;
architecture Behavioral of full_adder is
begin
sum <= a xor b xor c;
carry_out <= (a and b) or (b and c) or (c and a);
end Behavioral;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?