Design of Physical-to-Digital Converters