A full neural Gray-code-based ADC