# # ID numbers # DUT_type_GTFE = 1 DUT_type_GTRC = 2 DUT_type_TMCM = 3 DUT_type_TwoGTFEboard = 4 IO_type_Input = 1 IO_type_Output = 2 # # command timing # GTFE_commandTail = 10 GTFE_calStrobeWait = 600 GTFE_triggerAcknowledgeDelay = 40 # GTFE_readRegisterDelay: Measured at 1 MHz (3/29/02 M.Hirayama) # At 2 MHz, GTFE responds at 11.7 cycles (3/30/02 M.Hirayama) GTFE_registerReadbackDelay = 12 # GTFE_readEventDelay: Measured at 200 kHz (3/27/02 M.Hirayama) # At 2 MHz, GTFE responds at 12.8 cycles (3/30/02 M.Hirayama) GTFE_eventDataDelay = 13 GTRC_commandTail = 10 GTRC_calStrobeWait = 600 GTRC_triggerAcknowledgeDelay = 50 GTRC_tokenDelay = 100 # # data format # separator_position = (0, 17, 34, 51) GTFE_function_code = ( ('NOP' , [0,0,0,0,0]), # No operation ('RST_CHIP' , [0,0,0,1,0]), # Reset chip ('CALIBRATE' , [0,0,0,1,1]), # Generate a calibration strobe ('READ_EVENT' , [0,0,1,0,0]), # Start the event read-out sequence ('LD_CHN_MSK' , [0,1,0,0,0]), # Load GTFE Channel Mask ('LD_CAL_MSK' , [0,1,0,0,1]), # Load GTFE Calibration Mask ('LD_TRG_MSK' , [0,1,0,1,0]), # Load GTFE Trigger Mask ('LD_TH/C_DAC', [0,1,0,1,1]), # Load GTFE Threshold and Calibration DAC's ('LD_MUTE' , [0,1,1,0,0]), # Load GTFE MODE register ('RD_CHN_MSK' , [1,0,0,0,0]), # Read GTFE Channel Mask ('RD_CAL_MSK' , [1,0,0,0,1]), # Read GTFE Calibration Mask ('RD_TRG_MSK' , [1,0,0,1,0]), # Read GTFE Trigger Mask ('RD_TH/C_DAC', [1,0,0,1,1]), # Read GTFE Threshold and Calibration DAC's ('RD_MUTE' , [1,0,1,0,0]) # Read GTFE MODE register ) GTRC_function_code = ( ('NOP' , [0,0,0,0,0]), # No operation ('RST_GTRC' , [0,0,0,0,1]), # Reset GTRC chip ('READ_EVENT' , [0,0,1,0,0]), # Start the event read-out sequence ('LD_GTRC_REG' , [0,1,0,0,0]), # Load the GTRC Configuration Register ('LD_GTFE_SYNC', [0,1,0,0,1]), # Load the GTFE Sync Register ('RD_GTRC_REG' , [1,0,0,0,0]), # Read the GTRC Configuration Register ('RD_GTFE_SYNC', [1,0,0,0,1]) # Read the GTFE Sync Register ) # # end of file #