Note that the above description of the memory element 261b can be referred to for structures, operations, and the like of the memory elements 261b_1 to 261b_3. Thus, detailed description is omitted here.
The voltage retention circuit 320 includes a transistor 323 and a capacitor 324. In
The voltage retention circuit 320a includes a transistor 323a and the capacitor 324. The transistor 323a is different from the transistor 323 in not including a back gate. One of a source and a drain of the transistor 323a is electrically connected to the terminal 321. The other of the source and the drain and a gate of the transistor 323a are electrically connected to the wiring 259. One electrode of the capacitor 324 is electrically connected to the wiring 259. The other electrode of the capacitor 324 is electrically connected to the wiring 322.