Strobe Delay Scan (generic parameter scan)
StarParameterLoop in principle could be used to do any scan on any desirable sub-register. In this particular Strobe Delay Scan, the register to be scanned is ABC_reg03["STR_DEL"]. It controls the the timing (delay) of an injected calibration pulse with respect to the arrival time of the command to actually issue that pulse.
The Strobe delay scan consists of 2 parts, a threshold scan at 2fC first, followed by the actual scan through the strobe delay. The threshold scan is used to get an approximation of the required threshold and isn't required if this is already known. But, this issue is mainly about the latter.
- STR_DEL distribution for each ABCStar. (2D_Hist-- x:Channel, y:STR_DEL, COLZ:hits)
- Average Hit Probability per STR_DEL, fitted at the lower and higher end value (@ 50% efficiency) + resulting width of the working strobe delay range
- Number of channels (y) of a certain upper end (falling edge) Strobe Delay DAC setting (x) of the working Strobe Delay region
- An optimal STR_DEL setting at 25%/40%/50% of the working region, immediately take effect and/or save to the output config.json
Comment: (1) is minimum requirement, should work for other sub-register. (2)-(4) may be dealt with in different analysis/plotting scripts?