and2p62.vhd
来自「大家一定要看 哦 程序在与多看多练 我找了好久才找到呢」· VHDL 代码 · 共 30 行
VHD
30 行
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
ENTITY and2p62 IS
PORT(
d0, d1,sel: IN bit;
q: OUT bit);
END and2p62;
ARCHITECTURE struct OF and2p62 IS
component and2_comp
port(a,b:in bit;
c:out bit);
end component;
component or2_comp
port(a,b:in bit;
c:out bit);
end component;
component inv_comp
port(a:in bit;
c:out bit);
end component;
signal aa,ab,nsel:bit;
BEGIN
u1:inv_comp port map(sel,nsel);
u2:and2_comp port map(nsel,d1,ab);
u3:and2_comp port map(d0,sel,aa);
u4:or2_comp port map(aa,ab,q);
END struct;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?