xiaopro.vhd

来自「这个是我毕业设计的最初方案 8位二进制密码锁」· VHDL 代码 · 共 20 行

VHD
20
字号
library ieee;
use ieee.std_logic_1164.all;
entity xiaopro is
  port(a,clk1:in std_logic;
       b:out std_logic);
end xiaopro;
architecture xiao_arc of xiaopro is
signal tmp1:std_logic;
begin
  process(clk1,a)
  variable tmp3,tmp2:std_logic;
  begin
    if clk1'event and clk1='0' then
      tmp1<=a;
      tmp2:=tmp1;
      tmp3:=not tmp2;
    end if;
    b<=tmp1 and tmp3 and clk1;
  end process;
end xiao_arc;

⌨️ 快捷键说明

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