clk_4x_strobe:instd_logic;--! strobes high for one cycle every 4 of clk_4x
T0_p_i:instd_logic;--! T0 signal from timepix telescope clk/sync system
T0_n_i:instd_logic;--! T0 signal from timepix telescope clk/sync system
T0_o:outstd_logic;--! T0 signal retimed onto system clock
shutter_p_i:instd_logic;--! shutter signal from timepix telescope clk/sync system
shutter_n_i:instd_logic;--! shutter signal from timepix telescope clk/sync system
shutter_o:outstd_logic;--! shutter signal retimed onto system clock
ipbus_clk_i:INstd_logic;--! IPBus system clock
ipbus_i:INipb_wbus;
ipbus_o:OUTipb_rbus
);
endentityTPx3_iface;
architecturertlofTPx3_ifaceis
signals_T0,s_T0_d1,s_T0_d2,s_stretch_T0_in:std_logic:='0';-- signal after IBufDS and sampled onto clk_4x
signals_stretch_T0_in_sr:std_logic_vector(2downto0):="111";--! Gets shifted out by clk_4x logic. Loaded by T0ger_i
signals_T0_out_sr:std_logic_vector(2downto0):="111";--! Gets shifted out by clk_4x logic. Loaded by strobe_4x_logic
signals_shutter,s_shutter_d1,s_shutter_d2:std_logic:='0';-- signal after IBufDS and sampled onto clk_4x
signals_T0_ipbus,s_T0_ipbus_d1,s_T0_ipbus_d2:std_logic:='0';-- Signals that get combined with incoming hardware signals from TPIx3 telescope
signals_shutter_ipbus,s_shutter_ipbus_d1,s_shutter_ipbus_d2:std_logic:='0';-- Signals that get combined with incoming hardware signals from TPIx3 telescope
signals_external_signal_mask:std_logic_vector(ipbus_i.ipb_wdata'range):=(others=>'0');--! Set bits to mask external signals : 0 to mask external T0 , set bit 1 to mask external shutter
signals_maskExternalShutter,s_maskExternalT0:std_logic:='0';-- ! Set to 1 to mask external signals
signals_ipbus_ack:std_logic:='0';-- used to produce a delayed IPBus ack signal