An atomic injector with a beam power of 1 MW for heating plasma in the TCV tokamak (Lausanne, Switzerland) by a beam of neutral atoms was developed and put into operation in 2015–2016 at the Budker Institute of Nuclear Physics SB RAS (Novosibirsk). Plasma in the injector is formed in a plasma emitter by a high-frequency magnetic field, which is created by a high-power semiconductor generator with an output power of 40 kW at a frequency of 4 MHz. The facility operates in the pulse mode with a pulse duration of 2 s and a pause of 5 min. The generator is manufactured in the form of a modular system consisting of 16 identical generator modules, whose high-frequency power is summed, control modules, and a power-supply source. The generator allows modulation of the output power in the range of 30–100% by changing the power-supply voltage. The general structure of the generator and its elements and the results of its commissioning are presented.