As the materials for the relocating wiring layer, metals other than Cu and Ni can be employed. [0209] Not only DRAM or SRAM, the present invention can be applied to various memories using a nonvolatile memory device or various logic LSIs such as microcomputer.