📄 dou.vhd
字号:
------同步消除抖动模块
library ieee;
use ieee.std_logic_1164.all;
-------------------------------
entity dou is
port(din,clk:in std_logic;
dout:out std_logic);
end dou;
----------------------------------
architecture dou_arc of dou is
signal x,y:std_logic;
begin
process(clk)
begin
if clk'event and clk='1'then
x<=din;
y<=x;
end if;
dout<=x and(not y); ----din=‘1’超过一个时钟周期,x=1,y=1,dout=1
end process;
end dou_arc;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -