Design of a fully digital analog SiPM with sub-50ps time conversion