TOT_AL: An ASIC for TOF and DOI measurement