A semiconductor device includes a magnetic wire having a plurality of magnetic domains, wherein the magnetic wire comprises a magnetic domain wall that is moved by either a pulse field or a pulse current. The magnetic wire of the semiconductor device does not require an additional notch since the magnetic wire includes a magnetic domain wall, the moving distance of which is controlled by a pulse field or a pulse current.