Design of high-accuracy video comparator