?? debounce.vhd
字號:
--下層模塊,防抖電路
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity debounce is
port(
key,cp:in std_logic;
imp:out std_logic);
end debounce;
architecture base of debounce is
SIGNAL q1,q2:std_logic;
begin
process(cp)
begin
if cp'event and cp='1' then
q2<=q1;
q1<=key;
end if;
end process;
imp<=q1 and not q2;
end base;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -