Here is a five-level inverter circuit, simulated by Pspice:
When I connect the GND to port1 the simulation results are correct, and the output wave is a five-level step wave, which contains the voltage levels of 0 V, 3 V, 6 V, 9 V, and 12 V.
Here is the simulation result when GND is connected to port1:
However, when GND is connected to port2, instead of showing a five-level step wave contating -6 V, -3 V, 0 V, 3 V, and 6 V the simulation result are different, as below:
Does the GND port only influence the level of the voltage? How does this happen?