Easily and quickly testable master-slave flipflop circuit

Abstract: A master/slave flipflop comprises a master flipflop including a first inverter having an input for receiving an input signal, and a second inverter having an input connected to an output of the first inverter, and a first switch means connected between an output of the second inverter and the input of the first inverter. A slave flipflop of the master/slave flipflop includes a third inverter having an input for receiving an output signal of the master flipflop, and a fourth inverter having an input connected to an output of the third inverter, and a second switch means connected between an output of the fourth inverter and the input of the third inverter. A third switch is connected between the output of the second inverter and the input of the third inverter, and a fourth switch is connected between the output of the first inverter and the input of the third inverter. A controller controls the first to fourth switches so as to bring the first to third switches into an off condition and also to bring the fourth switch into an on condition so that all the first to fourth inverters are cascaded.

Description: Background of the Invention Field of the invention The present invention relates to a master/slave flipflop, and more specifically to a testable master/slave flipflop which can be used in a large scaled integrated circuit. Description of related art Conventionally, master/slave flipflops have been frequently used in logic networks. A typical one of the master/slave flipflops includes a master flipflop and a slave flipflop. The master flipflop is composed of a first inverter having an input connected to receive an input signal through a first transfer gate, a second inverter having an input connected to an output of the first inverter, and a second transfer gate connected between an output of the second inverter and the input of the first inverter. The slave flipflop is composed of a third inverter having an input connected through a third transfer gate to the output of the master flipflop, a fourth inverter having an input connected to an output of the third inverter, and a fourth transfer gate connected between an output of the fourth inverter and the input of the third inverter. The first to fourth transfer gates are controlled to be opened or closed by a clock signal and an inverted signal of the clock signal as follows: When the clock signal is at a high level "H", the first and fourth transfer gates are opened or turned on, and the second and third transfer gates are closed or turned off, so that the master flipflop is brought into a data read condition and the slave flipflop is brought into a hold condition. Thereafter, if the clock is brought to a low level "L", the first and fourth transfer gates are closed or turned off, and the second and third transfer gates are opened or turned on, so that the master flipflop is brought into the hold condition and the slave flipflop is brought into the data read condition. Thus, at least two state transitions of the clocks ("H"→"L" and "L"→"H") are required to determine internal conditions of the master/slave flipflop. In other words, the master/slave circuit is a sequential circuit. If a logic network having a plurality of input terminals I l to I n and a plurality of output terminals O l to O n is formed by using a number of master/slave flipflops which are the same as the above mentioned master/slave flipflops, the formed logic network can be divided into a plurality of combinational circuits and a plurality of sequential circuits, each one of the sequential circuits including a group of master/slave flipflops and being connected between each pair of combinational circuits When the above mentioned logic network is assembled in a large scaled integrated circuit, it is impossible to externally directly detect or modify a logic condition of a line or a switch in the inside of the logic network after manufactured. Under this condition, for this test, it has been conventionally performed to apply appropriate input signals to all the input input terminals I l to I n and to investigate output conditions appearing on all the output terminals O l to O n , so as to discriminate an acceptable/faulty product on the basis of whether or not the output conditions of all the output terminals O l to O n coincide with desired values, respectively. However, this test method generally requires a long test time, and is difficult to discriminate an acceptable/faulty product concerning the master/slave flipflops. Therefore, in order to test all the groups of master/slave flipflops, it has been widely used to connect all the master/slave flipflops in series at the time of testing, and to supply an input signal to a first stage flipflop of the series-connected flipflops and at the same time to supply test-only clock signals to all the series-connected flipflops, so that the input signal is transferred through the series-connected flipflops, one stage by one stage, in response to a train of clock signals, and an output signal is obtained from a final stage flipflop of the series-connected flipflops. This method is called a "scan path" method, and is known as a test method suitable to a large scaled integrated circuit. However, as mentioned hereinbefore, since the master/slave circuit is a sequential circuit, even if the scan path method is used for test of the logic network incorporating therein a number of master/slave flipflops, it is necessary to supply the testing clocks of the number which is a double of the number of all the master/slave flipflops included in the logic network. Therefore, a long test time has still been required. In addition, in the case that the scan path method is applied in the network having the conventional master/slave flipflops, a large group of switches and a large group of wirings have been required for realizing the series connection of all the master/slave flipflops for the testing. This results in increase of the circuit size by about 20% to 30% in comparison with the case in which neither switch nor wiring used only for the testing is provided. Summary of the Invention Accordingly, it is an object of the present invention to provide a master/slave flipflop which can overcome the above mentioned defects and is capable of allowing flipflops to be tested in a short time without greatly increasing the circuit size. The above and other objects of the present invention are achieved in accordance with the present invention by a master/slave flipflop as defined in Claim 1. The above and other objects, features and advantages of the present invention will be apparent from the following description of preferred embodiments of the invention with reference to the accompanying drawings. Brief Description of the Drawings Figure 1 is a conceptional logic block diagram of a first embodiment of the master/slave flipflop in accordance with the present invention; Figure 2 is a detailed logic block diagram of the first embodiment of the master/slave flipflop shown in Figure 1; Figures 3A and 3B are two different circuit condition diagrams of the master/slave flipflop shown in the Figure 2 for illustrating the operation of the master/slave flipflop shown in the Figure 2; Figure 4 is a detailed logic block diagram of a second embodiment of the master/slave flipflop in accordance with the present invention; Figure 5 is a block diagram of a logic network formed by using a number of master/slave flipflops; and Figure 6 is a block diagram of the network shown in Figure 5, in the case of testing all the master/slave flipflops in the "scan path" method. Description of the Preferred embodiments Referring to Figure 1, there is shown a conceptional logic block diagram of a first embodiment of the master/slave flipflop in accordance with the present invention. The shown master/slave flipflop includes a master flipflop and a slave flipflop. The master flipflop is composed of an inverter G 1 having an input connected to an input data signal terminal D through a transfer gate T 1 , another inverter G 2 having an input connected to an output of the inverter G 1 , and another transfer gate T 2 connected between an output of the inverter G 2 and the input of the inverter G 1 . The slave flipflop is composed of an inverter G 3 having an input connected through a transfer gate T 3 to the output of the master flipflop, namely, the output of the inverter G 1 , another inverter G 4 having an input connected to an output of the third inverter G 3 , and another transfer gate T 4 connected between an output of the inverter G 4 and the input of the inverter G 3 . The above mentioned arrangement is similar to that of the conventional master/slave flipflop. In addition, in accordance with the present invention, a transfer gate T 5 is connected between the output of the inverter G 3 and an data output terminal Q of the master/slave flipflop. The output of the inverter G 2 is connected through a transfer gate T 6 to the input of the slave flipflop, namely the input of the inverter G 3 . In addition, the output of the inverter G 4 is connected through a transfer gate T 7 to the data output terminal Q of the master/slave flipflop. The transfer gates T 1 to T 7 are controlled to be opened or closed by a controller CC which receives a clock signal CK and a test control signal TS. When the test control signal TS indicates that the shown flipflop operates as an ordinary master/slave flipflop, the controller CC controls to maintain the transfer gate T 5 in an on condition and the transfer gates T 6 and T 7 in an off condition. In addition, when the clock signal CK is at a high level "H", the transfer gates T 1 and T 4 are opened or turned on, and the second and third transfer gates T 2 and T 3 are closed or turned off, so that the master flipflop is brought into a data read condition and the slave flipflop is brought into a hold condition. Thereafter, if the clock is brought to a low level "L", the first and fourth transfer gates T 1 and T 4 are closed or turned off, and the second and third transfer gates T 2 and T 3 are opened or turned on, so that the master flipflop is brought into the hold condition and the slave flipflop is brought into the data read condition. On the other hand, when the test control signal TS indicates a test mode, the controller CC controls to maintain the transfer gate T 5 in an off condition and the transfer gates T 6 and T 7 in an on condition. In addition, the controller CC controls to maintain the transfer gate T 1 in an on condition and the transfer gates T 2 to T 4 in an off condition, regardless of the state of the clock signal CK. Turning to Figure 2, there is shown a detailed logic block diagram of the first embodiment of the master/slave flipflop shown in Figure 1. In Figure 2, elements similar to those shown in Figure 1 are given the same Reference Signs, and explanation thereof will be omitted. As seen from Figure 2, each of the transfer gates is of the type receiving a non-inverted control signal and an inverted control signal. As well known, this type of transfer gate can be formed of an n-channel MOS transistor and a p-channel MOS transistor connected to each other in parallel, and therefore, a detailed explanation will be omitted. In addition, the control circuit includes a NAND gate G 5 having a first input connected to receive the clock signal CK, and an output connected to a non-inverted control input of the transfer gate T 1 and an inverted control input of each of the transfer gates T 2 and T 3 . The output of the NAND gate G 5 is also connected to an input of an inverter G 6 and a first input of an AND gate G 7 , respectively. An output of the inverter G 6 is connected to an inverted control input of the transfer gate T 1 and a non-inverted control input of each of the transfer gates T 2 and T 3 . The output of the inverter G 6 is also connected to a first input of an OR gate G 8 . On the other hand, the test control signal TS is supplied to an inverted control input of the transfer gate T 5 and a non-inverted control input of each of the transfer gates T 6 and T 7 , and also to an input of an inverter G 9 . An output of the inverter G 9 is connected to a non-inverted control input of the transfer gate T 5 and an inverted control input of each of the transfer gates T 6 and T 7 . The output of the inverter G 9 is also connected to a second input of the NAND gate G 5 , and a second input of the AND gate G 7 . The AND gate G 7 has an output connected to a non-inverted control input of the transfer gate T 4 . The test control signal TS is also supplied to a second input of the OR gate G 8 , which in turn has an output connected to an inverted control input of the transfer gate T 4 . Now, an operation of the circuit shown in Figure 2 will be described. When the test control signal TS is inactive, for example, at a low level ("L"), the transfer gate T 5 , controlled by the test control signal TS and an inverted signal thereof, is brought into an on condition, and the transfer gates T 6 and T 7 are brought into an off condition, respectively. On the other hand, since the NAND gate G 5 receives at its second input the inverted signal of the test control signal TS, which is at a high level in this situation, the NAND gate G 5 is maintained in an opened condition. Therefore, the NAND gate G 5 outputs an inverted signal of the clock signal CK. In this condition, the transfer gates T 1 , T 2 and T 3 are controlled to operate in an ordinary mode in accordance with the clock CK. Furthermore, the first input of the AND gate G 7 and the first input of the OR gate G 8 are supplied with the high level signal from the inverter G 9 and the low level test control signal TS, respectively, the these gates are maintained in an opened condition. The transfer gate T 4 is on-off controlled by the output signals of the NAND gates G 5 and the inverter G 6 , similarly to the transfer gates T 1 , T 2 and T 3 . A equivalent circuit of this condition of the shown master/slave flipflop becomes as shown in Figure 3A. It will be apparent from Figure 3A that the shown master/slave flipflop operates similarly to the conventional master/slave flipflop. When the test control signal TS is active, for example, at a high level ("H"), the NAND gate G 5 , the AND gate G 7 and the OR gate G 8 are put in an closed condition, in such a manner that the respective outputs of the NAND gate G 5 and the OR gate G 8 are fixed to the high level "H", and the respective outputs of the inverter G 6 and the AND gate G 7 are fixed to the high level "L". In this condition, accordingly, the transfer gates T 1 , T 6 and T 7 is brought into an on condition, and the transfer gates T 2 to T 5 is brought into an off condition. A equivalent circuit of this condition of the shown master/slave flipflop becomes as shown in Figure 3B. As will be apparent from Figure 3B, all of the inverters that form one master/slave flipflop are serially connected or cascaded so that the input signal applied to the input terminal D is transferred through the inverters T 1 , T 2 , T 3 and T 4 in the named order to the output terminal Q, without being supplied with the clock signal. In this condition, the shown circuit no longer is the sequential circuit, but rather, is a perfect combinational circuit. Therefore, a logic network having a plurality of input terminals I 1 to I n and a plurality of output terminals O l to O n , can be formed by using a number of master/slave flipflops which are the same as the above mentioned master/slave flipflop in accordance with the present invention, as shown in Figure 5. The formed logic network can be divided into a plurality of combinational circuits CL 1 , CL 2 and CL 3 and a plurality of sequential circuits SL 1 and SL 2 , each one of the sequential circuits SL 1 and SL 2 including a group of master/slave flipflops FF 1i or FF 2i (i = l to n) and being connected between each pair of adjacent combinational circuits CL 1 and CL 2 or CL 2 and CL 3 . Referring to Figure 6, there is shown a connection diagram of the master/slave flipflops included in the logic network shown in Figure 5. At the time of testing, all the master/slave flipflops included in the logic network are serially connected as shown by associated switches SW which are controlled by a control signal SCK to assume a position as shown in Figure 6. In the circuit shown in Figure 6, if all of the master/slave flipflops included in the sequential circuits SL 1 and SL 2 are constructed in accordance with the above mentioned embodiment, all of the master/slave flipflops included in the sequential circuits SL 1 and SL 2 form one complete combinational circuit. In other words, the sequential circuits SL 1 and SL 2 can be regarded as forming one combinational circuit. Therefore, if an input signal is applied to an input Sin of the combinational circuit formed of the sequential circuits SL 1 and SL 2 , namely an input of a first stage master/slave flipflop FF 11 included in the sequential circuit SL 1 , an output signal is generated, without applying a clock signal, from an output Sout of the combinational circuit formed of the sequential circuits SL 1 ad SL 2 , namely an output of a final stage master/slave flipflop FF 2n included in the sequential circuit SL 2 . Turning to Figure 4, there is shown a cascade connection of two master/slave flipflops which are the same as the first embodiment shown in Figure 2. Therefore, elements corresponding to those shown in Figure in Figure 2 will be given the same reference signs, and explanation thereof will be omitted. As seen from Figure 4, a right side master/slave flipflop is completely the same as that shown in Figure 2, but the transfer gate T 5 is omitted from the left side master/slave flipflop. Accordingly, if the transfer gate T 5 is omitted from each of master/slave flipflops excluding a final stage master/slave flipflop, the circuitry can be simplified. In the above mentioned embodiments, the logic gates included in the master/slave flipflop have been formed of an inverter or NOT gate, but can be formed of other logic gates, for example, NAND gates or NOR gates, which have a not function. The invention has thus been shown and described with reference to the specific embodiments. However, it should be noted that the present invention is in no way limited to the details of the illustrated structures but changes and modifications may be made within the scope of the appended claims.

Claims: A master/slave flipflop comprising: a master flipflop including a first logic gate (G 1 ) having an input for receiving an input signal, and a second logic gate (G 2 ) having an input connected to an output of said first logic gate, and a first switch means (T 2 ) connected between an output of said second logic gate (G 2 ) and said input of said first logic gate (G 1 ); a slave flipflop including a third logic gate (G3) having an input for receiving an output signal of said master flipflop, and a fourth logic gate (G 4 ) having an input connected to an output of said third logic gate, and a second switch means (T 4 ) connected between an output of said fourth logic gate (G 4 ) and said input of said third logic gate (G 3 ); a third switch means (T 3 ) connected between said output of said first logic gate (G 1 ) and said input of said third logic gate (G 3 ); a fourth switch means (T 6 ) connected between said output of said second logic gate (G 2 ) and said input of said third logic gate (G 3 ); a fifth switch means (T 7 ) connected between said output of said fourth logic gate (G 4 ) and an output terminal (Q) of the master/slave flipflop, and control means (CC) for controlling said first to fifth switch means (T 2 ,T 4 ,T 3 ,T 6 ,T 7 ) so as to bring said first to third switch means (T 2 ,T 4 ,T 3 ) into an off condition and to bring said fourth and fifth switch means (T 6 ,T 7 ) into on condition so that all said first to fourth logic gate (G 1 to G 4 ) are cascaded. A master/slave flipflop claimed in Claim 1 wherein each of said first to fourth logic gates (G 1 to G 4 ) has a NOT function A master/slave flipflop claimed in Claim 2 wherein each of said first to fourth logic gates (G 1 to G 4 ) is an inverter. A master/slave flipflop claimed in Claim 1 further including a sixth switch means (T 5 ) connected between said output of said third logic gate (G 3 ) and said output terminal (Q) of the master/slave flipflop, and wherein said control means (CC) controls said sixth switch means (T 5 ) so as to bring said sixth switch means (T 5 ) into an off condition when said fifth switch means (T 7 ) is in an on condition. A master/slave flipflop claimed in Claim 4 wherein said control means (CC) receives a test signal (TS) and a clock signal (Ck) and operates in such a manner that when said test signal (TS) is active, said control means (CC) brings said first to third and sixth switch means (T 2 ,T 4 ,T 3 ,T 5 ) into an off condition and brings said fourth and fifth switch means (T 6 ,T 7 ) into an on condition, regardless of whether said clock signal (Ck) is active or inactive, and when said test signal (TS) is inactive, said control means (CC) brings said fourth and fifth switch means (T 6 , T 7 ) into an off condition, regardless of whether said clock signal (Ck) is active or inactive.

Inventors: YAMADA KAZUYOSHI, YAMADA, KAZUYOSHI
Applicants: NIPPON ELECTRIC CO, NEC CORPORATION
Application year: 1991
Main classification: G06F11
IPC codes: H03K3, G06F11, G01R31