Digital-based analog processing in nanoscale CMOS ICs for IoT applications