2019-02-28 cabling: signal cable on top, digital cable in the middle, analog cable on bottom recall settings on HP power supplies (hit "Recall" button twice) power on adapter board supply (3.3 V) power on power board supply (3.3 V and 5 V) power on VME crate to check MOSAIC IP address: ping -b 192.168.168.255 open two terminal tabs, in both: cd /home/maps/new-alpide-software/build ==== power board: in one tab: ./MosaicSrc/powerboard/GUI/pbGUI initial setup: File->Configure, enter MOSAIC address (192.168.168.248) the vset values correspond to DAC setting and are not calibrated (the readbacks in the GUI from the ADC are correct), so you need a different setpoint to get the desired 1.8 V: enter values in Vset boxes that give you correct voltage readbacks (green numbers) for stave, where voltage drops are larger: adjust voltages to get 1.8 V at the ends of the power FPCs (the exposed solder areas where the three FPCs meet) with ALPIDEs fully configured (e.g. after running test_digitalscan) File->Save to save settings to a .cfg file restore setup (each time you start pbGUI): File->Open build/PB_stave.cfg now the power-up sequence is: ./stopclk, turn on analog, turn on digital ==== ./stopclk turn on module 1 analog (top left) in the GUI turn on module 1 digital (top right) in the GUI if you want bias (not typical), enter the desired voltage in the "bias vset" box at top, and check the "ON" checkbox in the left column at this point, all currents should be low since the ALPIDEs are not getting a clock: <10 mA on the adapter board, <200 mA on stave analog and digital Config.cfg should be a symlink pointing to Config_stave.cfg; if not, "ln -sf Config_stave.cfg Config.cfg" stave: DEVICE IBHIC, set appropriate ENABLED_N if you want to exclude chips from the test now we are ready to run tests ==== shutdown sequence: digital off in GUI analog off in GUI close PB GUI MOSAIC off power board supply off adapter board supply off ==== any test may sometimes crash with the following: TCP Data receive Error: TCP hanged while reading data if this happens a lot (test_digitalscan very slow - few seconds per point - and crashes in the first ~10 points), power down everything and bring it back up, and maybe it will be better? ./test_fifo should end with: FIFO scan: region 31 Test finished: error counters: pattern 0x0: 0 pattern 0x555555: 0 pattern 0xffffff: 0 (total number of tested memories: 32 * 128 = 4096) Total error count (all chips): 0 9 chips were enabled for scan. and analog current now ~130 mA, digital current ~650 mA (may vary depending on how many chips are enabled) this tests the control line (and the output FIFOs, but those should not fail) ./test_temperature ./test_dacscan ./test_digitalscan should end with: Mask stage 511 Trigger train 0 Total number of 8b10b decoder errors: 0 Number of corrupt events: 0 Number of skipped points: 0 Priority encoder errors: 0 9 chips were enabled for scan. ichip = 0 with chipId = 0 Writing data to file Data/DigitalScan_190228_130547_Mod0-Chip0.dat ichip = 1 with chipId = 1 Writing data to file Data/DigitalScan_190228_130547_Mod0-Chip1.dat ichip = 2 with chipId = 2 Writing data to file Data/DigitalScan_190228_130547_Mod0-Chip2.dat ichip = 3 with chipId = 3 Writing data to file Data/DigitalScan_190228_130547_Mod0-Chip3.dat ichip = 4 with chipId = 4 Writing data to file Data/DigitalScan_190228_130547_Mod0-Chip4.dat ichip = 5 with chipId = 5 Writing data to file Data/DigitalScan_190228_130547_Mod0-Chip5.dat ichip = 6 with chipId = 6 Writing data to file Data/DigitalScan_190228_130547_Mod0-Chip6.dat ichip = 7 with chipId = 7 Writing data to file Data/DigitalScan_190228_130547_Mod0-Chip7.dat ichip = 8 with chipId = 8 Writing data to file Data/DigitalScan_190228_130547_Mod0-Chip8.dat scan settings in Config.cfg: NMASKSTAGES is number of rows, PIXPERREGION controls how many pixels/row are pulsed, NINJ is number of pulses ALPIDE current should be ~880 mA once the high-speed data transmission is active make a TH2: .x analysis/Hitmap.C ("Data/DigitalScan_181211_162424.dat",50) (where 50 = value of NINJ you used for the run) ./test_threshold Mask stage 511 Total number of 8b10b decoder errors: 0 Number of corrupt events: 0 Number of skipped points: 0 Priority encoder errors: 0 1 chips were enabled for scan. VRESETP 0 VRESETD 147 VCASP 86 VCASN 50 VPULSEH 170 VPULSEL 121 VCASN2 57 VCLIP 0 VTEMP 0 IAUX2 0 IRESET 0 IDB 29 IBIAS 64 ITHR 50 MODECONTROL 77 FROMU_CONFIG1 32 FROMU_CONFIG2 80 FROMU_PULSING1 20 FROMU_PULSING2 500 CMUDMU_CONFIG 80 VRESETP 0 VRESETD 147 VCASP 86 VCASN 50 VPULSEH 170 VPULSEL 121 VCASN2 57 VCLIP 0 VTEMP 0 IAUX2 0 IRESET 0 IDB 29 IBIAS 64 ITHR 50 MODECONTROL 77 FROMU_CONFIG1 32 FROMU_CONFIG2 80 FROMU_PULSING1 20 FROMU_PULSING2 500 CMUDMU_CONFIG 80 .x analysis/FitThresholds.C+ ("Data/ThresholdScan_181211_162731.dat") .x analysis/ThresholdMap.C ("Data/FitValues_181211_162731.dat") ==== GUI get on visitor network kinit alicelanl@CERN.CH (Gudu-Difa) ./GUI/GUI