Patent attributes
A semiconductor device according to the present invention includes first through fourth internal terminals placed along the perimeter of a substrate, a circuit coupled to the first internal terminal, a first external terminal coupled to the second internal terminal, a second external terminal coupled to the third internal terminal, and a third external terminal coupled to the fourth internal terminal. The circuit outputs a signal indicative of a connection state the first internal terminal and the first external terminal. A distance between centers of the first and second internal terminals is L1 in a direction parallel to one side of the substrate beside which the first external terminal is placed. A distance between centers of the third and fourth internal terminals is L2 in a direction parallel to one side of the substrate beside which the second and third external terminals are placed. The distance L1 is set smaller than the distance L2. With this structure, compared to a case where all internal terminals are spaced apart by the distance L1, the length of the periphery of the substrate which is determined by the number of internal terminals is reduced by L2−1. As a result, the area of the substrate can be reduced.