Analysis the scenario of switch clock and how to avoid occurring glitch