Design and Analysis of Smart Voltage Comparator