Another important component in this logic circuit is
the triangular wave voltage source which is used to
generate triangular carrier wave to the inverter. The
peak to peak voltage of the triangular wave source is
1V. The frequency generated in this system is 500 Hz.
The duty cycle, D is 50%. It represents the ratio
between high potential interval and the period, T for
one cycle waveform. DC offset voltage for switching
of left leg upper module and right leg lower module is
set to be zero while the DC voltage for another switch
is -1V. Both sine and triangular wave source
generated is measured using voltage probe placing at
the output of voltage source.