📄 full_adder.vhd
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -