An object is to provide a semiconductor device capable of reducing an area
of the semiconductor device, reading data reliably, and simplifying
replacement of data. A memory cell and a data line are controlled with a
reset signal, so that data can be reliably outputted in the semiconductor
device. In addition, an element of data holding unit is included, and the
data holding unit includes a plurality of memory cells. The area can be
reduced by using such a memory cell. A transistor is not connected to
GND, thereby simplifying the replacement of data in the memory cell.