FIG. 7A is a plan view of the essential part of the circuit illustrated in FIG. 5 and FIG. 7B illustrates a cross sectional view of the circuit near the transistor Q8 in FIG. 7A. In FIGS. 7A and 7B, the dimensions of the word lines W+, W-, and n and p type diffusion regions are not proportional to the actual circuit.