A write word line is disposed right under a MTJ element. The write word
line extends in an X direction, and side and lower surfaces of the write
word line are coated with a hard magnetic material and yoke material. The
hard magnetic material is magnetized by a surplus current passed through
the write word line, and a characteristic of the MTJ element is corrected
by residual magnetization. A data selection line (read/write bit line) is
disposed right on the MTJ element. The data selection line extends in a Y
direction intersecting with the X direction, and a part of the surface of
the data selection line is coated with the yoke material.