For example, the present invention is not limited to semiconductor devices such as a DRAM or the like, but can also be applied to mixed-mounting type semiconductor devices or the like in which memory circuits and logic circuits are formed on the same semiconductor substrate.