In addition, an OS transistor can be a four-terminal semiconductor element when having a back gate electrode in addition to a gate electrode, a source electrode, and a drain electrode. The OS transistor can be formed with an electric circuit network that can independently control input and output of signals flowing between a source and a drain depending on a voltage supplied to the gate electrode or the back gate electrode. Therefore, the circuit design can be made on the same concept as that for LSI. Furthermore, electrical characteristics of the OS transistor are better than those of a Si transistor in a high-temperature environment. Specifically, the ratio between an on-state current and an off-state current is large even at a high temperature higher than or equal to 125° C. and lower than or equal to 150° C.; thus, favorable switching operation can be performed.