Analysis and design of amplifiers and comparators in CMOS 0 . 35 l m technology