📄 mux2.vhd
字号:
library ieee;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_1164.all;
entity mux2 is
port(in0,in1,sel:in std_logic;
y:out std_logic);
end mux2;
architecture rtl of mux2 is
signal temp1,temp2,temp3:std_logic;
begin
temp1<=in0 and sel;
temp2<=in1 and (not sel);
temp3<=temp1 or temp2;
y<=temp3;
end rtl;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -