A rectifier comprises a rectifier block configured to rectify an input signal to produce an output, a first comparator block coupled to the rectifier block and configured to produce a first control signal to control the rectifier block, and a second comparator block coupled to the rectifier block and configured to produce a second control signal to control the rectifier block.