Here’s a generic Triple Phase Shift (TPS) PWM block I developed previously. Since TPS is the most generic approach, you can assign the primary and secondary duty cycles to achieve single phase shift (SPS), dual phase shift (DPS), and extended phase shift (EPS) as well.
Under the hood it uses the Variable Phase PWM block from the PLECS library.
It’s worth noting that each of these can be defined using slightly different conventions for what phase shift means, so you’ll want to double check the model against your convention.
tps.plecs (33.3 KB)