A CMOS time to digital converter VLSI for high-energy physics