Patent attributes
To provide an electronic device with reduced power consumption. In the case where rewriting of image data is not performed in an electronic device including a display device, a source driver, a gate driver, an image processing circuit, and the like that drive the display device are power-gated, reducing the power consumption of the electronic device. When power gating is performed, setting data needs to be saved into a memory device in advance. It is preferable that the saving of setting data be performed according to a prediction that power gating is to be performed. To predict whether to perform power gating, learning and calculation using a neural network are carried out. Predictive information about whether to perform power gating is obtained by the calculation, and when power gating is performed, saving of setting data into the memory device is speculatively executed.