--trigger generation only on 'fast' channels from Padiwa
constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
-
+
+ constant USE_GBE : integer := c_NO;
+
------------------------------------------------------------------------------
--End of design configuration
constant CLOCK_FREQUENCY : integer;
constant MEDIA_FREQUENCY : integer;
constant INCLUDED_FEATURES : std_logic_vector(63 downto 0);
+ constant BROADCAST_BITMASK : std_logic_vector(7 downto 0) := (7 => (not std_logic_vector(to_unsigned(USE_GBE,1))(0)), others => '1');
end;
t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
t(44 downto 44) := std_logic_vector(to_unsigned(INCLUDE_STATISTICS,1));
+ t(45 downto 45) := std_logic_vector(to_unsigned(USE_GBE,1));
t(51 downto 48) := std_logic_vector(to_unsigned(INCLUDE_TRIGGER_LOGIC,4));
t(52 downto 52) := std_logic_vector(to_unsigned(USE_120_MHZ,1));
t(53 downto 53) := std_logic_vector(to_unsigned(USE_RXCLOCK,1));
-- 0: 32 Pin AddOn
-- 1: 4conn AddOn
-- 2: 2x KEL on board
+ -- 3: ADA AddOn (plus test on KEL)
+ -- 4: every fourth channel on ADA
constant PINOUT : integer := 2;
constant TDC_DATA_FORMAT : integer := 0;
constant EVENT_BUFFER_SIZE : integer range 9 to 13 := 13; -- size of the event buffer, 2**N
- constant EVENT_MAX_SIZE : integer := 4095; --maximum event size. Should not exceed EVENT_BUFFER_SIZE/2
+ constant EVENT_MAX_SIZE : integer := 1000; --maximum event size. Should not exceed EVENT_BUFFER_SIZE/2
--Runs with 120 MHz instead of 100 MHz
constant USE_120_MHZ : integer := c_NO;
constant USE_200MHZOSCILLATOR : integer := c_YES;
+ constant USE_CALIBRATION_200MHZ : integer := c_YES;
constant USE_EXTERNAL_CLOCK : integer := c_YES; --'no' not implemented.
constant CLOCK_FAST_SELECT : integer := c_NO; --fast clock select (135us) or slow (280ms)?
constant TRIG_GEN_OUTPUT_NUM : integer := 4;
constant MONITOR_INPUT_NUM : integer := 36;
+ --trigger generation only on 'fast' channels from Padiwa
+ constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
+
+ constant USE_GBE : integer := c_YES;
+
+
------------------------------------------------------------------------------
--End of design configuration
------------------------------------------------------------------------------
constant CLOCK_FREQUENCY : integer;
constant MEDIA_FREQUENCY : integer;
constant INCLUDED_FEATURES : std_logic_vector(63 downto 0);
+ constant BROADCAST_BITMASK : std_logic_vector(7 downto 0) := (7 => (not std_logic_vector(to_unsigned(USE_GBE,1))(0)), others => '1');
end;
t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
t(44 downto 44) := std_logic_vector(to_unsigned(INCLUDE_STATISTICS,1));
+ t(45 downto 45) := std_logic_vector(to_unsigned(USE_GBE,1));
t(51 downto 48) := std_logic_vector(to_unsigned(INCLUDE_TRIGGER_LOGIC,4));
t(52 downto 52) := std_logic_vector(to_unsigned(USE_120_MHZ,1));
t(53 downto 53) := std_logic_vector(to_unsigned(USE_RXCLOCK,1));
-- 0: 32 Pin AddOn
-- 1: 4conn AddOn
-- 2: 2x KEL on board
+ -- 3: ADA AddOn (plus test on KEL)
+ -- 4: every fourth channel on ADA
constant PINOUT : integer := 2;
constant MONITOR_INPUT_NUM : integer := 36;
--trigger generation only on 'fast' channels from Padiwa
- constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
+ constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
+
+ constant USE_GBE : integer := c_NO;
+
+
------------------------------------------------------------------------------
--End of design configuration
------------------------------------------------------------------------------
constant CLOCK_FREQUENCY : integer;
constant MEDIA_FREQUENCY : integer;
constant INCLUDED_FEATURES : std_logic_vector(63 downto 0);
+ constant BROADCAST_BITMASK : std_logic_vector(7 downto 0) := (7 => (not std_logic_vector(to_unsigned(USE_GBE,1))(0)), others => '1');
end;
t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
t(44 downto 44) := std_logic_vector(to_unsigned(INCLUDE_STATISTICS,1));
+ t(45 downto 45) := std_logic_vector(to_unsigned(USE_GBE,1));
t(51 downto 48) := std_logic_vector(to_unsigned(INCLUDE_TRIGGER_LOGIC,4));
t(52 downto 52) := std_logic_vector(to_unsigned(USE_120_MHZ,1));
t(53 downto 53) := std_logic_vector(to_unsigned(USE_RXCLOCK,1));
-- 0: 32 Pin AddOn
-- 1: 4conn AddOn
-- 2: 2x KEL on board
+ -- 3: ADA AddOn (plus test on KEL)
+ -- 4: every fourth channel on ADA
constant PINOUT : integer := 1;
constant MONITOR_INPUT_NUM : integer := 52;
--trigger generation only on 'fast' channels from Padiwa
- constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
+ constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
+
+ constant USE_GBE : integer := c_NO;
+
+
------------------------------------------------------------------------------
--End of design configuration
------------------------------------------------------------------------------
constant CLOCK_FREQUENCY : integer;
constant MEDIA_FREQUENCY : integer;
constant INCLUDED_FEATURES : std_logic_vector(63 downto 0);
+ constant BROADCAST_BITMASK : std_logic_vector(7 downto 0) := (7 => (not std_logic_vector(to_unsigned(USE_GBE,1))(0)), others => '1');
end;
t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
t(44 downto 44) := std_logic_vector(to_unsigned(INCLUDE_STATISTICS,1));
+ t(45 downto 45) := std_logic_vector(to_unsigned(USE_GBE,1));
t(51 downto 48) := std_logic_vector(to_unsigned(INCLUDE_TRIGGER_LOGIC,4));
t(52 downto 52) := std_logic_vector(to_unsigned(USE_120_MHZ,1));
t(53 downto 53) := std_logic_vector(to_unsigned(USE_RXCLOCK,1));
-- 0: 32 Pin AddOn
-- 1: 4conn AddOn
-- 2: 2x KEL on board
+ -- 3: ADA AddOn (plus test on KEL)
+ -- 4: every fourth channel on ADA
constant PINOUT : integer := 1;
constant MONITOR_INPUT_NUM : integer := 36;
--trigger generation only on 'fast' channels from Padiwa
- constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
+ constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
+
+ constant USE_GBE : integer := c_NO;
+
+
------------------------------------------------------------------------------
--End of design configuration
------------------------------------------------------------------------------
constant CLOCK_FREQUENCY : integer;
constant MEDIA_FREQUENCY : integer;
constant INCLUDED_FEATURES : std_logic_vector(63 downto 0);
+ constant BROADCAST_BITMASK : std_logic_vector(7 downto 0) := (7 => (not std_logic_vector(to_unsigned(USE_GBE,1))(0)), others => '1');
end;
t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
t(44 downto 44) := std_logic_vector(to_unsigned(INCLUDE_STATISTICS,1));
+ t(45 downto 45) := std_logic_vector(to_unsigned(USE_GBE,1));
t(51 downto 48) := std_logic_vector(to_unsigned(INCLUDE_TRIGGER_LOGIC,4));
t(52 downto 52) := std_logic_vector(to_unsigned(USE_120_MHZ,1));
t(53 downto 53) := std_logic_vector(to_unsigned(USE_RXCLOCK,1));
-- 0: 32 Pin AddOn
-- 1: 4conn AddOn
-- 2: 2x KEL on board
+ -- 3: ADA AddOn (plus test on KEL)
+ -- 4: every fourth channel on ADA
constant PINOUT : integer := 1;
constant MONITOR_INPUT_NUM : integer := 52;
--trigger generation only on 'fast' channels from Padiwa
- constant TRIG_GEN_FAST_CHANNELS : integer := c_YES;
+ constant TRIG_GEN_FAST_CHANNELS : integer := c_YES;
+
+ constant USE_GBE : integer := c_NO;
+
+
------------------------------------------------------------------------------
--End of design configuration
------------------------------------------------------------------------------
constant CLOCK_FREQUENCY : integer;
constant MEDIA_FREQUENCY : integer;
constant INCLUDED_FEATURES : std_logic_vector(63 downto 0);
+ constant BROADCAST_BITMASK : std_logic_vector(7 downto 0) := (7 => (not std_logic_vector(to_unsigned(USE_GBE,1))(0)), others => '1');
end;
t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
t(44 downto 44) := std_logic_vector(to_unsigned(INCLUDE_STATISTICS,1));
+ t(45 downto 45) := std_logic_vector(to_unsigned(USE_GBE,1));
t(51 downto 48) := std_logic_vector(to_unsigned(INCLUDE_TRIGGER_LOGIC,4));
t(52 downto 52) := std_logic_vector(to_unsigned(USE_120_MHZ,1));
t(53 downto 53) := std_logic_vector(to_unsigned(USE_RXCLOCK,1));
constant MONITOR_INPUT_NUM : integer := 52;
--trigger generation only on 'fast' channels from Padiwa
- constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
-
+ constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
+
+ constant USE_GBE : integer := c_NO;
+
------------------------------------------------------------------------------
--End of design configuration
constant CLOCK_FREQUENCY : integer;
constant MEDIA_FREQUENCY : integer;
constant INCLUDED_FEATURES : std_logic_vector(63 downto 0);
+ constant BROADCAST_BITMASK : std_logic_vector(7 downto 0) := (7 => (not std_logic_vector(to_unsigned(USE_GBE,1))(0)), others => '1');
end;
t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
t(44 downto 44) := std_logic_vector(to_unsigned(INCLUDE_STATISTICS,1));
+ t(45 downto 45) := std_logic_vector(to_unsigned(USE_GBE,1));
t(51 downto 48) := std_logic_vector(to_unsigned(INCLUDE_TRIGGER_LOGIC,4));
t(52 downto 52) := std_logic_vector(to_unsigned(USE_120_MHZ,1));
t(53 downto 53) := std_logic_vector(to_unsigned(USE_RXCLOCK,1));
--trigger generation only on 'fast' channels from Padiwa
constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
+ constant USE_GBE : integer := c_NO;
+
+
------------------------------------------------------------------------------
--End of design configuration
------------------------------------------------------------------------------
constant CLOCK_FREQUENCY : integer;
constant MEDIA_FREQUENCY : integer;
constant INCLUDED_FEATURES : std_logic_vector(63 downto 0);
+ constant BROADCAST_BITMASK : std_logic_vector(7 downto 0) := (7 => (not std_logic_vector(to_unsigned(USE_GBE,1))(0)), others => '1');
end;
t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
t(44 downto 44) := std_logic_vector(to_unsigned(INCLUDE_STATISTICS,1));
+ t(45 downto 45) := std_logic_vector(to_unsigned(USE_GBE,1));
t(51 downto 48) := std_logic_vector(to_unsigned(INCLUDE_TRIGGER_LOGIC,4));
t(52 downto 52) := std_logic_vector(to_unsigned(USE_120_MHZ,1));
t(53 downto 53) := std_logic_vector(to_unsigned(USE_RXCLOCK,1));