Generate pulse for inverter multilevel

Be careful, your connection is wrong. The lowside of M1 and M3 shouldn’t be connected. Beside that, you must consider the voltage level for the gate of SiC.