📄 f_adder.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
entity f_adder is
port(ain,bin,cin: IN std_logic;
cout,sum:OUT std_logic);
end f_adder;
architecture fd of f_adder is
begin
sum<= ain xor bin xor cin;
cout<= ((ain and bin) or (ain and cin) or (bin and cin));
end architecture fd;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -