📄 detecor2.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
entity detector is
port ( clk_f0: in std_logic;
--clk_2f0: in std_logic;
reset: in std_logic;
data: in std_logic;
fast: out std_logic;
slow: out std_logic);
end detector;
architecture arc_detector of detector is
signal data_locked1 : std_logic;
signal data_locked2 : std_logic;
begin
process
begin
wait until clk_f0'event and clk_f0='1';
data_locked1<=data;
end process;
process
begin
wait until clk_f0'event and clk_f0='0';
data_locked2<=data;---data_locked1;
end process;
slow<=data xor data_locked1;
fast<=data_locked1 xor data_locked2;
end arc_detector;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -