Figure 1 shows the cross-sectional view, symbol, and R-I characteristic of an MTJ device. The MTJ device consists of two magnetic layers separated by a barrier layer. According to the spin direction of two magnetic layers, the resistance of the device exhibits two distinct states: a low-resistance (or parallel) state and a high-resistance (or anti-parallel) state.