14 use IEEE.STD_LOGIC_1164.
ALL;
15 use IEEE.NUMERIC_STD.
all;
16 LIBRARY xil_defaultlib;
33 reg_sel : in std_logic_vector(3 downto 0);
35 mux_sel : in std_logic_vector(3 downto 0);
47 data_in : in std_logic_vector(31 downto 0);
69 SIGNAL latch_enable,temp0,temp1,Reg_enable,commdet_delay : std_logic;
70 signal delay_cnt, mux_cntrl,data_delay : std_logic_vector (3 downto 0);
71 signal data_out_int, dataout: std_logic_vector (128 downto 0);
72 signal temp2,temp3, ttc_redge, ttc_20M : std_logic;
73 signal bcn : std_logic_vector (4 downto 0);
74 signal probe0 : std_logic_vector (165 downto 0);
106 ttc_redge <= temp3 xor temp2 after 1ns;
112 state_machine:
entity work.
tac_sm
116 MGT_COMMADET => MGT_COMMADET,
122 Mux_value => Delay_cnt
134 if reg_enable ='1' then
135 data_delay <= delay_cnt;
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
in clk std_logic
ttc clock
out q std_logic
out of d_type
First Stage Synchronisation of the control FPGA.
in MGT_Commadet std_logic
MGT commadet.
in latch_enable std_logic
latch enable of 128 bits
out data_out std_logic_vector( 128 downto 0)
frame data out of 128 bits
in clk160 std_logic
MGT rx clock.
in mux_cntrl std_logic_vector( 3 downto 0)
first stage mux slect bits
out commdet_delay std_logic
MGT commadet pipe.
in data_in std_logic_vector( 31 downto 0)
rx data
in enable_mgt std_logic
MGT register enbale.
in crc_error std_logic
crc error in
First Stage state machine.
out Reg_enable std_logic
enable
in TTC_CLK_edge std_logic
raising edge of TTC clock of 40NHz
in clk_280M std_logic
MGT rx clock of 280MHz for process and 160MHz for control.
Top Synchronisation of the control FPGA.
Top Synchronisation of the control FPGA.
out delay_num std_logic_vector( 3 downto 0)
counted delay on the first stage of the synchronisation
in reset std_logic
reset active high
in rx_resetdone std_logic
rx reset done of the MGT
in MGT_Commadet std_logic
comma detected for incoming data
in mux_sel std_logic_vector( 3 downto 0)
setting the first stage mux
out data_out std_logic_vector( 128 downto 0)
data out of 128 bits
out reg128_latch std_logic
latch enable
in data_in std_logic_vector( 31 downto 0)
rx data in
in start std_logic
start pulse for the calibration to start
in crc_error_in std_logic
crc_error input
in enable_mgt std_logic
enable mgt rx register
in TTC_clk std_logic
ttc clk of 40MHz
in reg_sel std_logic_vector( 3 downto 0)
setting BC mux
in rx_clk160 std_logic
rx clock of the mgt