A digital phase-locked loop with calibrated coarse and stochastic fine TDC