Patent ID: 8436424

Claim:
A semiconductor device, comprising: a first group of transistors; a second group of transistors, each having a lower operating voltage than that of each of said transistors in said first group; and a resistor; wherein, said first group of transistors have first gate electrodes, each of which is formed from a silicon based material layer on said semiconductor substrate through a first gate insulating film, said second group of transistors have second gate electrodes formed such that metal based gate materials are respectively filled in trenches for gate formation formed in an interlayer insulating film on said semiconductor substrate through a second gate insulating film, said resistor has a resistor main body comprising a lower portion of the silicon based material layer with an N-type impurity or a P-type impurity and disposed on said semiconductor substrate with an insulating film therebetween, a resistor protecting layer on said resistor main body, said resistor protecting layer comprising an upper portion of the silicon based material layer with ions of a first conductivity type implanted in the upper portion, said resistor protecting layer is a compensation layer in which the ions of the first conductivity type of said resistor protecting layer compensate for the N-type impurity or the P-type impurity of said lower portion of said silicon based material layer of said resistor main body, and said resistor protecting layer of the resistor and said second gate electrodes of the second group of transistors have flat top surfaces that define a common planar surface.