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.