How to make gain margin 6dB
Here is a circuit with gain of +0.1 ( -20dB gain, but INPHASE) and the opamp has rolloff well below Unity Gain Bandwidth. What to do?

try this compensation approach: make the noise gain 6dB higher (or even more, if you need) at very high frequencies, using a series RC from virtual-ground to Ground.







simulate this circuit &ndash; Schematic created using CircuitLab