A 9-b 33-MS/s offset-compensated CMOS comparator for multistep flash A/D conversion