Patent ID: 8685799

Claim:
A method comprising: defining a shallow trench isolation (STI) region in a substrate; implanting dopants in the substrate to form a well of a first polarity around and below a bottom portion of the STI region, a band of a second polarity over the well on opposite sides of the STI region, and active areas of the first polarity over the band of the second polarity on the opposite sides of the STI region atâ€”a top surface of the substrate; forming a hardmask on the active areas; removing a top portion of the STI region to form a cavity; forming a resistive random access memory (an RRAM) liner on side and bottom surfaces of the cavity; forming a top electrode in the cavity; removing a portion of the hardmask to form spacers on opposite sides of the cavity; and implanting one or more dopants of the second polarity in a portion of each active area remote from the cavity.