eFEX firmware  1.7.3
ATLAS l1-calo - electron and tau feature extraction firmware for eFEX boards

Back to eFEX documentation
gen_sync_280M.vhd
Go to the documentation of this file.
1 
10 
11 library IEEE;
12 use IEEE.STD_LOGIC_1164.ALL;
13 
14 library TOB_rdout_lib;
15 
16 library UNISIM;
17 use UNISIM.VComponents.all;
18 
20 entity gen_sync_280M is
21  Port (
23  RST : in STD_LOGIC;
25  clk_40M : in STD_LOGIC;
27  clk_280M : in STD_LOGIC;
29  sync_280m_out : out STD_LOGIC
30  );
31 end gen_sync_280M;
32 
34 architecture Behavioral of gen_sync_280M is
35 
36  signal LoadR : std_logic := '0';
37  signal LoadF : std_logic := '0';
38  signal Load : std_logic := '0';
39 
40 begin
41 
42  process(clk_40M)
43  begin
44  if rising_edge(clk_40M) then
45  if RST = '0' then
46  LoadR <= not LoadR;
47  end if;
48  end if;
49  end process;
50 
51  process(clk_280M)
52  begin
53  if rising_edge(clk_280M) then
54  if RST = '0' then
55  LoadF <= LoadR;
56  Load <= LoadR xor LoadF; -- move this inside the clocked process
57  end if;
58  end if;
59  end process;
60 
61 
62  sync_280m_out <= Load;
63 
64 end Behavioral;
Generate Synch at 280MHz.
Generate Synch at 280MHz.
in clk_40M STD_LOGIC
Clock 40MHz in.
out sync_280m_out STD_LOGIC
280MHz synch signal output
in RST STD_LOGIC
Reset in.
in clk_280M STD_LOGIC
Clock 2800MHz in.