Also, an input/output circuit (an I/O circuit, an input protection circuit and the like) is provided near the bonding pad 1.In the present specification, an internal circuit is defined as a circuit including the logic circuit 100a, the memory cell array 100b and the input/output circuit.