During the design of Class D audio amplifier the output stage is a power stage implemented using CMOS. As this CMOS is operated with PWM signal and as it switches from NMOS to PMOS and vice-versa, a very large current is being drawn from my power source. This is perhaps due to very low Rds(on) of the power MOSFETs. I tried the simulations with POWER MOSFETs which have larger Rds(on) and the problem got solved but obviously now power dissipation in the MOSFETs have increased.
Is there any way I can do away with this power surge that happens at the time of switching?