and2.vhd

来自「CPLDFPGA嵌入式应用开发技术白金手册 》源代码」· VHDL 代码 · 共 17 行

VHD
17
字号
-- and2
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.all;
use IEEE.std_logic_arith.all;
entity and2 is
  port(a,b:in std_logic;
         y:out std_logic);
end and2;
architecture behav of and2 is
signal yo:std_logic:='1'; --the initial value
  begin
   y<=yo; 
   yo<=a and b;
  end behav;

⌨️ 快捷键说明

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