However, the effect of controlling the penetration of B by doping of B was poor. [0027] To summarize, since the MOS transistors in the memory LSI circuit and the MOS transistors in the logic LSI circuit have different requirements, there are a problem that a common gate electrode-structure cannot be used in the memory LSI circuit and the logic LSI circuit and a problem that depletion occurs in the