An object of the present invention is, therefore, to provide a semiconductor device which has no shortcomings similar to the aforesaid shortcomings of the conventional masterslice semiconductor device, and accordingly, it is easy to obtain a high degree of flexibility with regard to the distribution of the interconnecting lines and there is a capability for achieving a large integration of basic c