Thirteenth Embodiment
With reference to FIG. 17, a thirteenth embodiment will be described. Like numbers refer to like parts throughout, and any repetitive description will be omitted. The thirteenth embodiment may be combined with the first to twelfth embodiments and particularly be combined with the eleventh embodiment or the twelfth embodiment. FIG. 17 illustrates a layout of the chip 2. In a direction that rows of the electric circuit 20 are aligned, a plurality of electric circuits 20 are provided between a plurality of scanning circuits 461 and 462. In the direction that columns of the electric circuits 20 align, a scanning circuit 463 is provided between a plurality of columns of the electric circuits 20 and an outside edge of the chip 2. In this example, a readout circuit 441 is placed between the scanning circuit 461 and the outside edge of the chip 2. However, the scanning circuit 461 may be placed between the readout circuit 441 and the outside edge of the chip 2. Having described that the readout circuit 442 is placed between the scanning circuit 462 and the outside edge of the chip 2, the scanning circuit 462 may be placed between the readout circuit 442 and the outside edge of the chip 2.