detecor2.vhd
来自「2MHz的数据时钟恢复电路」· VHDL 代码 · 共 36 行
VHD
36 行
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 + =
减小字号Ctrl + -
显示快捷键?