I'm attempting to find the Control-To-Output Bode Plot (open-loop) of a SMPS designed around the TPS54160 so that I can design the type II compensator. The first step in designing a compensator is finding the attenuation and phase boost needed at the crossover frequency (4Khz) using the open-loop gain. Thus, I need the open-loop gain (or the gain of the system without the compensation added). I used the circuit below to find open-loop bode plot, and according to it I need 7.36dB of attenuation at the crossover frequency and some amount of phase boost. I'm not sure about how much phase boost I need (given a phase margin requirement of 60 degrees) because it appears there is 100 degrees of phase margin already since the phase has only shifted 80 degrees at the crossover frequency, since this is a single pole system when open-loop. Perhaps, I'm just confused. Are my model and bode-plot correct? And if so, how do I calculate how much phase boost I need?
In the circuit above G1 is the idealized OTA that the TPS54160 uses for its error amplifier, where R1 and C1 model the bandwidth and DC Open-loop gain of the amplifier. G2 and the output filter form the power stage. I think this model is correct based on the datasheet, which gave relatively simple instructions.
In the bode plot above, I measured V(b) (the output) with an AC source at the input of the power stage. According to this bode plot the phase has shifted 80 degrees at the crossover frequency of 4Khz. The gain is 7.36dB at the desired crossover frequency so it needs to be attenuated.