Why a Diode Is Placed in Parallel with the MOSFET Gate Resistor.

Today an old friend of mine called and said that the diode in the mosfet gate circuit of his power supply, the one placed in parallel with the resistor, had burned out. But he didn't call to complain; he wanted to know which way round the diode should go.
Why a Diode Is Placed in Parallel with the MOSFET Gate Resistor.

To answer this question, you need to understand what role it plays.

Clearly, whichever way we install it, it will affect how fast the gate charges or discharges!!! And here it depends on what we are trying to achieve. In the circuit shown above, the diode doesn't make much sense; it doesn't solve any problem.

Now let's look at a pushpull, or two-transistor push-pull, stage.
Why a Diode Is Placed in Parallel with the MOSFET Gate Resistor.

We all know that if both transistors are on at the same moment, they will simply burn out because the current through them is not limited by anything. This phenomenon is commonly called "shoot-through". So the diode is installed to make the transistors turn off faster than they turn on. It is used to create the so-called "dead time".
Why a Diode Is Placed in Parallel with the MOSFET Gate Resistor.

The picture shows that without "dead time" there are moments when both transistors are on, i.e. shoot-through occurs. When we introduce "dead time" with the diodes, the transistors turn on one after the other and they are not at risk)))

I'd like to add that nowadays even MCUs, not to mention specialized ICs, can generate "dead time" on their own, so the diodes are no longer needed.

By the way, the gate resistor not only limits the current, it also lowers the Q factor of the resonant circuit formed by the conductor inductance and the gate capacitance. If this Q factor is not reduced, the circuit rings during transients and emits noticeable interference, which can cause the device to fail EMC certification.