--TDC settings
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 := 49; -- number of tdc channels per module
+ constant NUM_TDC_CHANNELS : integer range 1 to 65 := 53; -- number of tdc channels per module
constant NUM_TDC_CHANNELS_POWER2 : integer range 0 to 6 := 6; --the nearest power of two, for convenience reasons
constant DOUBLE_EDGE_TYPE : integer range 0 to 3 := 3; --double edge type: 0, 1, 2, 3
-- 0: single edge only,
-- 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;
--TDC settings
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 := 49; -- number of tdc channels per module
+ constant NUM_TDC_CHANNELS : integer range 1 to 65 := 57; -- number of tdc channels per module
constant NUM_TDC_CHANNELS_POWER2 : integer range 0 to 6 := 5; --the nearest power of two, for convenience reasons
constant DOUBLE_EDGE_TYPE : integer range 0 to 3 := 3; --double edge type: 0, 1, 2, 3
-- 0: single edge only,
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/4
--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_NO;
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_INPUT_NUM : integer := 48;
constant TRIG_GEN_OUTPUT_NUM : integer := 4;
constant MONITOR_INPUT_NUM : integer := 52;
+
+ --trigger generation only on 'fast' channels from Padiwa
+ constant TRIG_GEN_FAST_CHANNELS : integer := c_NO;
------------------------------------------------------------------------------
--End of design configuration
TOPNAME => "trb3sc_tdctemplate",
lm_license_file_for_synplify => "27020\@jspc29", #"27000\@lxcad01.gsi.de";
lm_license_file_for_par => "1702\@hadeb05.gsi.de",
-lattice_path => '/d/jspc29/lattice/diamond/3.10_x64',
-synplify_path => '/d/jspc29/lattice/synplify/O-2018.09-SP1/',
+lattice_path => '/d/jspc29/lattice/diamond/3.11_x64',
+synplify_path => '/d/jspc29/lattice/synplify/P-2019.09-SP1/',
nodelist_file => '../tdctemplate/nodes_tdctemplate.txt',
#Include only necessary lpf file
#pinout_file => 'trb3sc_32pin', #name of pin-out file, if not equal TOPNAME
-#pinout_file => 'trb3sc_padiwa', #name of pin-out file, if not equal TOPNAME
-pinout_file => 'trb3sc_ada', #name of pin-out file, if not equal TOPNAME
+pinout_file => 'trb3sc_padiwa', #name of pin-out file, if not equal TOPNAME
+#pinout_file => 'trb3sc_ada', #name of pin-out file, if not equal TOPNAME
include_TDC => 1,
include_GBE => 0,