| CPC H10N 50/80 (2023.02) [H10B 61/00 (2023.02); H10N 50/01 (2023.02)] | 8 Claims |

|
1. A method for fabricating a semiconductor device, comprising:
forming a magnetic tunneling junction (MTJ) and a top electrode on a substrate;
forming a spacer adjacent to the MTJ;
forming a second inter-metal dielectric (IMD) layer around the spacer;
forming a cap layer on the top electrode, the spacer, and the second IMD layer; and
patterning the cap layer to form a protective cap on and directly contacting top surfaces of the top electrode and the spacer, wherein a top surface of the protective cap is higher than a top surface of the second IMD layer.
|