A nonvolatile memory includes a memory cell array in which a plurality of
memory cells are connected to a plurality of wordlines and a plurality of
bitlines respectively intersecting at a right angle with the plurality of
wordlines; a selector for selecting one of the bitlines which is
connected to first one of the memory cells in which actual data is
stored; and a transfer circuit for connecting with a reference bitline
which is connected to second one of the memory cells in which a reference
level is stored. The nonvolatile memory further includes an amplifier
section, connected to the selector and the transfer circuit, for reading
out and amplifying levels of the bitline and the reference bitline and
comparing the actual data with the reference level; and a charger for
charging the bitline selected by the selector.