-- TDC stuff
constant NUM_TDC_MODULES : integer range 1 to 4 := 1; -- number of tdc modules to implement
- constant NUM_TDC_CHANNELS : integer range 1 to 65 := 5; -- number of tdc channels per module
- constant NUM_TDC_CHANNELS_POWER2 : integer range 0 to 6 := 4; --the nearest power of two, for convenience reasons
+ constant NUM_TDC_CHANNELS : integer range 1 to 65 := 3; -- number of tdc channels per module
+ constant NUM_TDC_CHANNELS_POWER2 : integer range 0 to 6 := 2; --the nearest power of two, for convenience reasons
constant DOUBLE_EDGE_TYPE : integer range 0 to 3 := 0; --double edge type: 0, 1, 2, 3
-- 0: single edge only,
-- 1: same channel,
)
port map(
-- Clocks and reset
- CLK_REF_FULL => clk_full_osc, -- CLK_SUPPL_PCLK
+ CLK_REF_FULL => clk_full_osc,
SYSCLK => clk_sys,
RESET => reset_i, -- check
-- Media Interface TX/RX
QUAD_RST_IN => '0', -- check
GLOBAL_RESET_OUT => open,
SLAVE_ACTIVE_OUT => open,
- SLAVE_ACTIVE_IN => slave_active_fake, --'1',
+ SLAVE_ACTIVE_IN => slave_active_fake,
TX_PLL_LOL_IN => tx_pll_lol_all_i,
TX_PLL_LOL_OUT => tx_pll_lol_qd_b_i,
TX_CLK_AVAIL_OUT => tx_clk_avail_i,
-- For single edge measurements
gen_single : if DOUBLE_EDGE_TYPE = 0 or DOUBLE_EDGE_TYPE = 1 or DOUBLE_EDGE_TYPE = 3 generate
- hit_in_i(NUM_TDC_CHANNELS-1 downto 1) <= INP(NUM_TDC_CHANNELS-2 downto 0);
+-- hit_in_i(NUM_TDC_CHANNELS-1 downto 1) <= INP(NUM_TDC_CHANNELS-2 downto 0);
+-- hit_in_i(NUM_TDC_CHANNELS-1 downto 3) <= INP(NUM_TDC_CHANNELS-2 downto 2);
+ hit_in_i(2) <= tx_dlm_i;
+ hit_in_i(1) <= rx_dlm_i;
end generate;
end architecture;