-- INFO_IN => timer,
-- LOGIC_ANALYSER_OUT => open
-- );
---
+ -- end generate;--TDC
-- For single edge measurements
gen_single : if (DOUBLE_EDGE_TYPE = 0 or DOUBLE_EDGE_TYPE = 1 or DOUBLE_EDGE_TYPE = 3 ) and (INCLUDE_ETM = c_NO) generate
hit_in_i(NUM_TDC_CHANNELS-1 downto 1) <= (others => '0');
end generate;
gen_single : if (DOUBLE_EDGE_TYPE = 0 or DOUBLE_EDGE_TYPE = 1 or DOUBLE_EDGE_TYPE = 3) and ((ETM_CHOICE = ETM_CHOICE_MBS_VULOM) and (INCLUDE_ETM = c_YES)) generate
- hit_in_i(1) <= '0';--RJ45_SIG_1;--
- hit_in_i(2) <= async_ext_trig;--RJ45_SIG_1;--
- hit_in_i(3) <= cts_ext_trigger;--RJ45_SIG_1;--
- hit_in_i(4) <= '0';--RJ45_SIG_1;--
+ hit_in_i(1) <= async_ext_trig;--'0';--RJ45_SIG_1;--
+ hit_in_i(2) <= cts_ext_trigger;--RJ45_SIG_1;--
+ hit_in_i(3) <= async_ext_trig;--'0';--RJ45_SIG_1;--
+ hit_in_i(4) <= cts_ext_trigger;--'0';--RJ45_SIG_1;--
end generate;
- -- end generate;--TDC
+
--TDC
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 := 6; -- number of tdc channels per module
+ constant NUM_TDC_CHANNELS : integer range 1 to 65 := 5;--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 DOUBLE_EDGE_TYPE : integer range 0 to 3 := 0; --double edge type: 0, 1, 2, 3
-- 0: single edge only,
--input monitor and trigger generation logic
- constant INCLUDE_TDC : integer := c_NO;--YES;
+ constant INCLUDE_CALIBRATION : integer := c_NO;
+ constant INCLUDE_TDC : integer := c_NO;--YES; -- IMPORTANT: TDC part into entity has to be commented in/out by hand
+ -- (no generic possible due to constraints naming)
constant INCLUDE_TRIGGER_LOGIC : integer := c_YES;
constant INCLUDE_STATISTICS : integer := c_YES;
constant TRIG_GEN_INPUT_NUM : integer := 24;
constant MONITOR_INPUT_NUM : integer := 26;
constant INCLUDE_GBE : integer := c_NO;
- constant INCLUDE_CALIBRATION : integer := c_NO;
constant GEN_BUSY_OUTPUT : integer := c_NO;