To generate a positive pulse, a switch is used with a pull-down resistor. But glitches would come out when the switch is tapped to connecting to power suppl. Then how can I remove the glitches?
In the real case you cannot completely remove the glitch. The only possibility is to find ways to reduce it, for example decrease the size of transistors