Step Response Of A Unity-Gain Amplifier Compensated With A Shunt-Capacitor

** Subcircuits **

.subckt diffopamp 1 2 3
* open-loop amplifier configuration
* connections: 1 2 3
*              | | |
*            in+ | |
*              in- |
*                out

* first stage
Rid 1 2 1MegOhm
Gm1 4 0 1 2 4.93m
R1 4 0 15.915k
C1 4 0 100pF
* second stage
Gm2 5 0 4 0 40m
R2 5 0 31.83k
C2 5 0 5pF
* output buffer stage
E3 6 0 5 0 1
Ro 6 3 100
Co 3 0 159.15pF
* compensation capacitor
Cc 4 0 1uF
.ends diffopamp

** Main Circuit **

* one-volt step input signal
Vstep 1 0 PWL (0 0V 1ns 0V 2ns 1V 1s 1V)
* noninverting amplifier
Xdiffamp 1 2 3 diffopamp
Vshort 2 3 0

** Analysis Requests
.TRAN 100ns 5us 0s 100ns
** Output Requests **
.PLOT TRAN V(3) V(1)
.end