Hello! I am currently building a PLECS model of a single-phase cascaded H-bridge rectifier for hardware-in-the-loop simulation on the RTbox3.The controller part, as shown in Figure 1, is loaded into the DSP controller connected to the RTbox3. The main circuit part is shown in Figure 2.
Figure 1
Figure 2
Therefore, how should I construct the SPWM output in the controller part to achieve phase-shifted carrier control for a four-stage single-phase cascaded H-bridge rectifier?

