and2_2.vhd
来自「初学VHDL有用的」· VHDL 代码 · 共 28 行
VHD
28 行
--与非门的结构描述
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
ENTITY and2_2 IS
PORT(
a,b: IN bit;
y: OUT bit);
END ;
ARCHITECTURE struct OF and2_2 IS
component inv_comp
port(a:in bit;
c:out bit);
end component;
component and2_comp
port(a,b:in bit;
c:out bit);
end component;
signal out1:bit;
begin
u1:and2_comp port map(a,b,out1);
u2:inv_comp port map(out1,y);
END struct;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?