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

Back to eFEX documentation
ctrl_synch_latch.vhd
Go to the documentation of this file.
1 
6 
7 
8 library IEEE;
9 use IEEE.STD_LOGIC_1164.ALL;
10 USE ieee.std_logic_arith.all;
11 LIBRARY xil_defaultlib;
12 
15  Port (
17  CLK160 : IN std_logic;
19  MGT_COMMADET : IN std_logic;
21  latch_enable : OUT std_logic
22 
23  );
26 architecture Behavioral of ctrl_synch_latch is
27 
28 
29 
30 signal cntr : unsigned(3 downto 0):="0000";
31 
32 
33 begin
34 
35 
36  process (clk160)
37 
38  begin
39  if CLK160' event and CLK160 ='1' then
40  latch_enable <='0';
41  cntr <= cntr +1;
42  if (MGT_COMMADET ='1' )then
43  cntr <="0010";
44  end if;
45 
46  if (cntr = 3 and MGT_COMMADET ='0' ) then
47  latch_enable <='1';
48  cntr <="0000";
49  end if;
50  end if;
51  end process;
52 
53 
54 end Behavioral;
latch enable for the control FPGA
latch enable for the control FPGA
in MGT_COMMADET std_logic
mgt commadet
out latch_enable std_logic
latch enable
in CLK160 std_logic
rx clock