📄 example7-12.vhd
字号:
LIBRARY IEEE;
USE IEEE.Std_Logic_1164.ALL;
ENTITY temp IS
PORT (in1, in2, in3 : IN Std_Logic;
out1 : OUT Std_Logic);
END temp;
ARCHITECTURE example OF temp IS
COMPONENT and2
PORT (a, b : IN Std_Logic;
c : OUT Std_Logic);
END COMPONENT;
COMPONENT or2
PORT (a, b : IN Std_Logic;
c : OUT Std_Logic);
END COMPONENT;
COMPONENT inv
PORT (a : IN Std_Logic;
c : OUT Std_Logic);
END COMPONENT;
SIGNAL s1, s2, s3 : Std_Logic;
BEGIN
U1 : inv PORT MAP (in3, s3);
U2 : and2 PORT MAP (s3, in2, s2);
U3 : and2 PORT MAP (in1, in2, s1);
U4 : or2 PORT MAP (s1, s2, out1);
END example;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -