dvisampler: software controlled phase detector