A Novel Automatic Phase Selection Device: Design and Optimization