⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kf_f.vhd

📁 里面有一个很实用的源码,数字引爆密码设计
💻 VHD
字号:
LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;

ENTITY kf_f IS
           PORT (A,B  : IN  std_logic;
                 C    : OUT  std_logic);
END kf_f;

ARCHITECTURE kf_f_arc OF kf_f IS
     COMPONENT knand2
          PORT (A,B  : IN  std_logic;
                C    : OUT std_logic);
     END COMPONENT;
     SIGNAL  tmp1,tmp2  : std_logic;
BEGIN
     U0: knand2   PORT MAP(A,tmp1,tmp2);
     U1: knand2   PORT MAP(tmp2,B,tmp1);
     C <= tmp2;
END kf_f_arc;

-- two inputs and_not gate description
LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;

ENTITY knand2 IS
           PORT (A,B  : IN  std_logic;
                 C    : OUT  std_logic);
END knand2;

ARCHITECTURE knand2_arc OF knand2 IS
BEGIN
     C <= NOT (A AND B);
END knand2_arc;
-- end of two inputs and_not gate description

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -