#This file contains the settings for Wafer Analysis, sorted in different sections.
#For example it contains a list of scans, DCS names, chip calibration, Global register names and 
#PixControler settings that will be analyzed.
#For help see ReadMeForSettings.txt

[Scans]
#RXDelay=rx delay scan
#GR0=GR test all 0
Global Register Test=GR_TEST
DigitalTest=DIGITAL_TEST 2
AnalogTest=ANALOG_TEST
ThresholdScan=THRESHOLD_SCAN with HV
ThresholdScanNoHV=THRESHOLD_SCAN no HV
CrossTalkScanWithHV=CROSSTALK_CHECK with HV
CrossTalkScanNoHV=CROSSTALK_CHECK no HV
#GADC_VrefScan=GADC VDDA Scan
#GADC_PlsrDACscan=GADC PulserDAC scan
IVscan=IV_SCAN

[DCSGraphAnaValues]
#IDDA1AP=IDDA1_UNCFG
#IDDA2AP=IDDA2_UNCFG
#IDDD1AP=IDDD1_UNCFG
#IDDD2AP=IDDD2_UNCFG
#IDDA1M=IDDA1_MIDI
#IDDA2M=IDDA2_MIDI
#IDDD1M=IDDD1_MIDI
#IDDD2M=IDDD2_MIDI
#IDDA1CONF=IDDA1_AFTER_CFG
#IDDA2CONF=IDDA2_AFTER_CFG
#IDDD1CONF=IDDD1_AFTER_CFG
#IDDD2CONF=IDDD2_AFTER_CFG
#BgAn=BgRef_An
#BgDig=BgRef_Dig
#BgAn0=BgRef_An0
#BgDig0=BgRef_Dig0
#BgAn1=BgRef_An1
#BgDig1=BgRef_Dig1
#BgAn2=BgRef_An2
#BgDig2=BgRef_Dig2
#IrefST=Iref Scan_ana

[GlobalRegValues]
#VthinAF=GlobalRegister_Vthin_AltFine
#SetSN=GlobalRegister_Chip_SN

[PixCrtlSetting]
#Iref_set=general_IrefPads

[ChipCalibration]
#PlsrDACoffs=Misc_VcalGradient0
#PlsrDACslopeST=Misc_VcalGradient1
#CapCalibST=Misc_CInjHi

[AddToTotalCount]
#AnalogTest=1
#AnalogTestChigh=1
#AnalogTestClow=1
DigitalTest=1
ThresholdScan=1
#ScurveFailed=1
#HitOrScan=1
#BufferTest=1
#CrossTalkScan=1
#CheckPixelDisable=1
#LatencyTest=1
#PR=1
#ESLtest=1
#ESLtestAfterECR=1

CrosstalkCheckWithHV=1

[DACscanAnalysisSettings]
GADC_VrefScan:GADC [DAC]:VrefAnTune [DAC]:1:1e3:1e0
GADC_PlsrDACscan:PlsrDAC [DAC]:GADC [DAC]:1:1e1:1e0

[PostProcessing]
#AddAptasicColumn=1
#CheckForAbortRun=1
TotalCount=1
#CorrectVrefs=1
CalculateResult=1
CheckBumpConnection=1
CheckPixelShorts=1

#CompareResults=1

[CheckForAbort]
#IDDA1AP
#IDDA2AP
#IDDD1AP
#IDDD2AP
#IDDA1CONF
#IDDA2CONF
#IDDD1CONF
#IDDD2CONF

[CalculateResult]
#ThrMeanCorr=CapCalib/CapCalibST*PlsrDACslope/PlsrDACslopeST*ThrMean
#ThrSigCorr=CapCalib/CapCalibST*PlsrDACslope/PlsrDACslopeST*ThrSig
#NoiMeanCorr=CapCalib/CapCalibST*PlsrDACslope/PlsrDACslopeST*NoiMean
#NoiSigCorr=CapCalib/CapCalibST*PlsrDACslope/PlsrDACslopeST*NoiSig

[CorrectBandGaps]
#BgAn0=IDDA1AP:IDDA2AP:IDDD1AP:IDDD2AP
#BgDig0=IDDA1AP:IDDA2AP:IDDD1AP:IDDD2AP
#BgAn1=IDDA1CONF:IDDA2CONF:IDDD1CONF:IDDD2CONF
#BgDig1=IDDA1CONF:IDDA2CONF:IDDD1CONF:IDDD2CONF
#BgAn2=IDDA1M:IDDA2M:IDDD1M:IDDD2M
#BgDig2=IDDA1M:IDDA2M:IDDD1M:IDDD2M

[CorrectTunVrefs]
#VrefDigMin:BgDig1:BgAn1
#VrefDigMax:BgDig1:BgAn1
#VrefAnMin:BgDig1:BgAn1
#VrefAnMax:BgDig1:BgAn1

[CapacitanceCorrection]
#Offset=-1360.
#Dividor=1.081
#Voltage=1000

[CompareResults]
#PlsrDACslopeST=PlsrDACslope:3:Blue
#CapCalibST=CapCalib:3:Blue
#IrefST=IrefBestDAC:0:Blue

[ZoomDistributionPlots]
#IDDD2AP
#TotalPixelsFail
#PixAnClowFail

[ExportToXML]
status=Status
#CapCalib=InjectionCapacitance
#TotalPixelsFail=FailingPixels
#PixAnFail=AnalogFailingPixels
#PixDigFail=DigitalFailingPixels
#TotalColumnsFail=FailingColumns
#ThrMeanCorr=ThresholdMean
#NoiMeanCorr=NoiseMean
#PlsrDACslope=PlsrDACslope
#IDDA2CONF=DigitalCurrent
#IDDD2CONF=AnalogCurrent
#RunAborted=RunAborted
#ChipSN2=SerialNumber

[CheckPixelShorts]
SearchDistance=-1/-1:-1/0:-1/1:0/-1:0/0:0/1:1/-1:1/0:1/1

[IVcurveAnalysis]
OperationPointSingleChip=-10
OperationPointDoubleChip=-40
SlopeAtBreakdown=0.0000001
CurrentLimit=0.00001
OPfitRange=1