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

📄 detecor2.vhd

📁 2MHz的数据时钟恢复电路
💻 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 + -