A 0.5-TO-4 GBPS continuous-rate clock and data recovery circuit with bidirectional frequency detection