Check out this spice amplifier model. A basic Spice model that simulates an amplifier’s bandwidth, magnitude, phase, and transient response can be up and running in as little as three lines of code.
This course teaches how to design a feedback system to control a switching converter. The equivalent circuit models derived in the previous courses are extended to model small-signal ac variations.