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

📄 bianhuan.vhd

📁 消抖程序
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity bianhuan is

   port
	(  up     : in  std_logic;
	   down   : in  std_logic;
	  flag    : out std_logic;
	   clk    : out std_logic
	);
end entity;

architecture arc of bianhuan is
signal clk0 :std_logic:='0';
begin
process(up) is 
begin
if(up'event and up='1')then
    flag<='0'; 
    clk0<=not clk0;
end if;
end process;

process(down) is 
begin
if(down'event and down='1')then 
     flag<='1';
      clk0<=not clk0;
    end if;
end process; 
clk<=clk0;

end arc;



⌨️ 快捷键说明

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