signal clear_i : std_logic;
signal reset_i : std_logic;
signal GSR_N : std_logic;
+ signal osc_int : std_logic;
attribute syn_keep of GSR_N : signal is true;
attribute syn_preserve of GSR_N : signal is true;
CLKOK => clk_200_i, -- 200 MHz, bypass
LOCK => pll_lock);
-
+pll_calibration: entity work.pll_in125_out33
+ port map (
+ CLK => CLK_GPLL_LEFT,
+ CLKOP => osc_int,
+ LOCK => open);
---------------------------------------------------------------------------
-- The TrbNet media interface (to other FPGA)
DEBUG_TX_OUT => debug_tx,
--Trigger & Monitor
- MONITOR_INPUTS(31 downto 0) => INP(31 downto 0),
+ MONITOR_INPUTS(31 downto 0) => hit_in_i(32 downto 1),
MONITOR_INPUTS(35 downto 32) => trig_gen_out_i,
- TRIG_GEN_INPUTS => INP(31 downto 0),
+ TRIG_GEN_INPUTS => hit_in_i(32 downto 1),
TRIG_GEN_OUTPUTS => trig_gen_out_i,
LCD_OUT => lcd_out,
--SED
CLK_READOUT => clk_100_i, -- Clock for the readout
REFERENCE_TIME => timing_trg_received_i, -- Reference time input
HIT_IN => hit_in_i(NUM_TDC_CHANNELS-1 downto 1), -- Channel start signals
- HIT_CAL_IN => CLK_GPLL_LEFT, -- Hits for calibrating the TDC
+ HIT_CAL_IN => osc_int, -- Hits for calibrating the TDC
-- Trigger signals from handler
BUSRDO_RX => readout_rx,
BUSRDO_TX => readout_tx(0),