A storage device is proposed, which includes: a source line arranged along
a row direction; a bit line arranged along a column direction; a storage
element arranged at an intersection of the source line and the bit line;
a writing circuit connected to one terminal of the bit line and applying
a predetermined voltage to the bit line; and a voltage adjusting circuit
connected to a storage element that is located closest to another
terminal of the bit line; wherein the voltage adjusting circuit compares
the voltage applied to the storage element located closest to the another
terminal of the bit line with a setting voltage to thereby adjust the
voltage that the writing circuit applies to the bit line.