Patent ID: 8283226

Claim:
A method of manufacturing a semiconductor device, the method comprising: forming an insulating film in a semiconductor substrate to define a first active region and a second active region; forming a first gate electrode and a second gate electrode in the first active region; forming a third gate electrode and a fourth gate electrode in the second active region; forming, over the semiconductor substrate, a first cap film covering the first gate electrode, the second gate electrode, the third gate electrode, and the fourth gate electrode; forming a first mask pattern covering the first cap film over the second active region; etching the first cap film over the first active region using the first mask pattern as an etching mask; after etching the first cap film, removing the first mask pattern; after removing the first mask pattern, forming a second cap film over the semiconductor substrate; forming a second mask pattern covering the second cap film over the second active region; etching the second cap film over the first active region using the second mask pattern as an etching mask; etching the first active region using the first gate electrode and the second gate electrode as masks to form a recess in the first active region; embedding, in the recess, a semiconductor material having a first lattice constant different from a second lattice constant of the semiconductor substrate; implanting an impurity into the second active region using the third gate electrode and the fourth gate electrode as masks; and forming a third cap film over the second cap film by plasma enhanced chemical vapor deposition after forming the second cap film, and before forming the second mask pattern.