I have designed a class AB opamp and then drawn its layout. After extraction I run post layout simulation but saw that phase margin was degraded to 40 degrees. I was wondering if there is anyway I can trim the circuit to improve the phase margin, so I don't have to redraw the whole layout, or I need to start from scratch and design another opamp with higher phase margin so after layout I can get the desired PM.
Probably this is tedious, but perhaps by comparison of the pre- and post-layout netlists you could try and find out, which layout influence (parasitic capacitance) shifts your non-dominant pole to a lower frequency (and so reduces your PM). This might even be helpful for the redesign.