Decoder circuit of a semiconductor memory device
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a decoder circuit of semiconductor memory device, more particularly, it relates to a decoder circuit having a simplified circuit arrangement enabling an all selection mode of word lines or bit lines. 
     2. Description of the Related Art 
     As is well-known, a decoder circuit is used for selecting the word line or bit line in a semiconductor memory device. In the normal selection mode, a row decoder circuit selects the word line and a column decoder selects the bit line. The all selection mode of word lines or bit lines is used for testing the semiconductor memory device. Accordingly, it is necessary to provide means for generating this mode in the decoder circuit. 
     Problems have arisen, however, regarding the generating means for the all selection mode in the decoder circuit. That is, this generating means becomes a hindrance to the compacting of space and the reduction of power consumption. 
     SUMMARY OF THE INVENTION 
     The object of the present invention is to provide a decoder circuit of a semiconductor memory device having a simplified circuit arrangement enabling an all selection mode of word lines or bit lines. The all selection mode is a mode in which the output of the decoder is set to a high level so that all the word lines or bit lines are set to a high level to test the memory device. 
     In accordance with the present invention, there is provided a decoder circuit of a semiconductor memory device comprising; a plurality of logic gates each having a load transistor and drive transistors generating a line selection signal corresponding to input address signals, and a power source control circuit for controlling a power source voltage supplied to the logic gate corresponding to a mode designation signal, the mode designation signal being a normal mode signal or an all selection mode signal, wherein when the all selection mode signal is input to the power source control circuit, an all selection mode state of the decoder circuit is obtained by pulling down the power source voltage supplied to the logic gate. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     In the drawings, 
     FIG. 1 is a circuit diagram of a conventional decoder circuit, 
     FIG. 2 is a circuit diagram of a decoder circuit according to an embodiment of the present invention, 
     FIG. 3 is a detailed circuit diagram of a row decoder according to the present invention, 
     FIG. 4 is a schematic block diagram of a semiconductor memory device according to the present invention, and 
     FIG. 5 is a schematic block diagram of a control signal generating means. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     Before describing the preferred embodiments, an explanation will be given of a conventional decoder circuit having a generating circuit for the all selection mode. 
     Referring to FIG. 1, Q 0  to Q 2  represent N channel enhancement type MOS (NMOS) transistors. Q 3  is a load transistor by an N channel depletion type (indicated by a dot) MOS transistor. Transistors Q 0  to Q 3  constitute a &#34;NAND&#34; gate. Q 4  is a P channel enhancement type MOS (PMOS) transistor. A CMOS inverter is constituted by a PMOS transistor Q 4  and NMOS transistor Q 5 . An NMOS transistor Q x  constitutes a generating circuit for the all selection mode. The circuit shown in FIG. 1 shows a row decoder circuit per one word line. That is, this circuit is provided to every word line connected to the output terminal 5. The terminals 1 to 3 represent row address input terminals. In these terminals, the eight kinds of signals (a 2  a 1 , a 0 ) to (a 2 , a 1 , a 0 ) are input to each row decoder circuit. In the NMOS depletion type transistor Q 3 , the drain side (D) is connected to the first power source V CC , and the source side (S) and gate (G) are connected in common to the node N 1 . The node N 1  is also connected to the drain (D) of the transistor Q 2  and both gates of the transistors Q 4  and Q 5 . Moreover, the node N 1  is connected to the drain (D) of the transistor Q x .The source (S) of the transistor Q x  is connected to the second power source V SS . The gate of the transistor Q x  is connected to the input terminal 4, to which a mode designation signal (control signal) φ is input. 
     When the control signal φ is a low level &#34;L&#34;, the NMOS transistor Q x  is turned OFF. Accordingly, no influence of the transistor Q x  is applied to the potential of the node N 1 . That is, this circuit functions as a normal decoder circuit. When the control signal is high level &#34;H&#34;, the transistor Q x  is turned ON. In this case, the potential of the node N 1  becomes &#34;L&#34; level. Since the gates of the transistor Q 4  and Q 5  are &#34;L&#34; level, the output V out  becomes &#34;H&#34; level. Accordingly, since the control signal φ is applied simultaneously in parallel to the transistor Q x  of another decoder circuit, all word lines can be set to &#34;H&#34; level as the all selection mode. 
     However, as shown in the circuit diagram, the transistor Q x  as the generating circuit must be provided to every decoder circuit in order to obtain the all selection mode. To provide this circuit for every decoder circuit becomes a hindrance to the compacting of space and a reduction of power consumption. 
     A decoder circuit according to an embodiment of the present invention will be explained in detail hereinafter. 
     Referring to FIG. 2, reference numeral 11 represents a voltage control circuit functioning as a normal power source and as a generating means for the all selection mode. This circuit is constituted by an N channel depletion type MOS transistor Q 11  and an N channel enhancement type MOS transistor Q 12 . Only one circuit 11 is provided for all of the row decoders, as shown in FIG. 3. 
     In this circuit, the NAND gate as a logic gate Q 0  to Q 3  and the CMOS inverter constitute the same circuit as in the conventional device. However, the transistor Q x  is deleted. For example, when all address signals are high (H) level (a 2 , a 1 , a 0 ), the potential of the node N 1  becomes low (L) level as the line selection signal, because this decoder circuit is constituted by the NAND gate. Accordingly, this decoder is set to the selection state. In this case, the PMOS transistor Q 4  is turned ON and the NMOS transistor Q 5  is turned OFF since the input node N 1  is &#34;L&#34; level. Accordingly, the potential V out  of the terminal 5 becomes &#34;H&#34; level. 
     In the voltage control circuit 11, the drain (D) of the transistor Q 11  is connected to the first power source Vcc and the source (S) of the transistor Q 11  is connected to the drain (D) of the transistor Q 12  and the output node N 2 . The source (S) of the transistor Q 12  is connected to the second power source Vss. 
     In the normal mode, the &#34;L&#34; level control signal as a normal mode signal is input to the gate of the transistor Q 12  so that the transistor Q 12  is turned OFF. Simultaneously, the inverted control signal φ is input to the gate of the transistor Q 11  so that the transistor Q 11  is turned ON. Accordingly, the power source voltage appears at the output node N 2 . This power source voltage is used as the power source of the NAND gate. 
     In the all selection mode, since the control signal φ as the mode designation signal is &#34;H&#34; level, the transistor Q 12  is turned ON, and the transistor Q 11   is turned OFF since the inverted control signal φ is &#34;L&#34; level. 
     Accordingly, the potential of the output node N 2  becomes approximately &#34;0&#34; volt. In this case, the potential of the node N 1  also becomes &#34;L&#34; level because the load transistor Q 3  is the depletion type transistor which functions as a resistance even when the gate-source voltage is &#34;0&#34; volt. 
     When the potential of the node N 1  becomes &#34;L&#34;, the output V out  becomes &#34;H&#34; level as the selection mode. Since all decoder circuits are connected to the voltage control circuit 11 in common at the point P, the all selection mode is obtained for all word lines. 
     Referring to FIG. 3, each of eight kinds of input address signals (a 2 , a 1 , a 0 ), (a 2 , a 1 ,a 0 ), (a 2 , a 1 , a 0 ), (a 2 , a 1 , a 0 ), (a 2 , a 1 , a 0 ), (a 2 , a 1 , a 0 ), (a 2 , a 1 , a 0 ), and (a 2 , a 1 , a 0 ) is input to the corresponding decoder circuit, and the selected word line is then driven to become &#34;H&#34; level in the normal mode. In the all selection mode, all word lines become &#34;H&#34; level as mentioned above. 
     Referring to FIG. 4, row address signals A 0  to A n-1  are input to the row decoder 12 through the buffer. As mentioned above, only one power source control circuit 11 is provided at the external portion of the row decoder 12. Therefore, it is possible to compact the circuit arrangement of the row decoder 12. Each of the word lines W 1  to W n  is connected to the row decoder 12 (output terminal 5 shown in FIGS. 2,3). Reference numeral 14 is a memory cell array constituted by a plurality of memory cells MC 11  to MC nn , each of which is an EPROM. Column address signals A 0  to A n-1  are input to the column decoder 13. Each of the bit lines B 1  to B n  is connected to the column decoder 13 through each of the transistors Q 21  to Q 2n , and each of the sense amplifiers SA 1  to SA n  is provided to each pair of bit lines. In this embodiment, although the power source control circuit 11 for the all selection mode is provided at the row decoder side in order to make all word lines to the selection mode, it is possible to provide this control circuit 11 at the column decoder side in order to make all bit lines to the selection mode. In this case, as in the first embodiment, only one power source control circuit 11 is provided at the external portion of the column decoder 13 (not shown). 
     Referring to FIG. 5, the control signal φ and inverted control signal φ are obtained by the high voltage detection circuit 16. This control signal is set to approximately a voltage twice as high as that of the normal input TTL level. In the normal mode, the TTL level voltage (about 5 volts) is input to the address terminal AO. In this case, this TTL level signal is input to the input buffer 15 as in a normal operation. In the all selection mode, the high level signal (about 10 volts) is input to the terminal AO. This voltage is detected by the high voltage detection circuit 16 so that the control signal φ having high voltage is obtained and, in this case, the inverted control signal φ becomes the &#34;L&#34; level of the TTL level. 
     As is obvious from the above explanation, in the present invention, since it is not necessary to provide the transistor for the all selection mode of every decoder circuit, it is possible to considerably compact the circuit arrangement. Moreover, since only two transistors are provided for the all selection mode, the number of transistors can be reduced so that the power consumption can be considerably reduced in the all selection mode.