摘要 |
To provide a semiconductor device whose power can be turned off without the need for a peripheral circuit for data to escape temporarily and in which stored data is not lost even in an off state of the power of the device, and a memory device including the semiconductor device. In a holding circuit of the semiconductor device, a transistor that includes a semiconductor layer (at least a channel formation region) including an oxide semiconductor material with which small off-state current can be achieved is used. Further, the semiconductor device includes a switching element which enables a comparison circuit in which comparison between data stored in the holding circuit and reference data input from the outside does not need to be performed to become forcibly inactive. |