dvisampler: add clocking and phase detector