Bit-Error Rate Measurement Setup And Comparator Design