abstract |
A semiconductor device capable of evaluating and rewriting data at a desired timing is provided. A register circuit including a flip-flop circuit, a selection circuit, and a nonvolatile memory circuit electrically connected to the flip-flop circuit through the selection circuit, a bit line, and a data line are provided. The data line is electrically connected to the flip-flop circuit, the bit line is electrically connected to the nonvolatile memory circuit via the selection circuit, and the selection circuit is in accordance with the potential of the data line or the potential of the bit line. Device for selectively storing stored data in a nonvolatile memory circuit. [Selection] Figure 1 |