FIG. 37A is a plan view illustrating a configuration example of the imaging device 610. The imaging device 610 includes a pixel portion 640, a first circuit 660, a second circuit 670, a third circuit 680, and a fourth circuit 690. In this specification and the like, the first circuit 660 to the fourth circuit 690 and the like may be referred to as a “peripheral circuit” or a “driver circuit”. For example, the first circuit 660 can be regarded as part of the peripheral circuit.
FIG. 37B illustrates a structure example of the pixel portion 640. The pixel portion 640 includes, for example, a plurality of pixels 645 (imaging elements) arranged in a matrix with p columns and q rows (p and q are each an integer greater than or equal to 2). Note that in FIG. 37B, n is a natural number of greater than or equal to 1 and smaller than or equal to p, and m is a natural number of greater than or equal to 1 and smaller than or equal to q.