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

📄 debounce.vhd

📁 VHDL实现的交通灯程序
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;

entity Debounce is
	port(
		key,clk: in std_logic;
		key_out: out std_logic
		);
end Debounce;

architecture Debounce_arc of Debounce is
signal temp1,temp2: std_logic;
begin
	process(key,clk)
	begin
		if clk'event and clk='0' then
			temp2<=temp1;
			temp1<=key;
		end if;
	end process;
	key_out<=temp1 and (not temp2) and clk;
end;

⌨️ 快捷键说明

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