Background of the Invention
1. Field of the Invention
The present invention relates to the circuit implementation of a low-consumption and high-density D flip-flop, particularly for standard cell libraries.
2. Discussion of the Related Art
It is known that integrated circuits are currently designed by means of appropriate programs (tools) for automatic circuit configuration that take the individual circuit elements from libraries containing predefined elements.
It is thus evident that the optimization of the circuit to be produced depends both on the individual skill of the designer and on the optimization of the individual elements that make up the library.
In every device produced by means of automatic configuration programs, over 35-50% of the entire area of the device is assigned to a sequential part, which is advantageously provided by virtue of D-type registers, commonly known as D flip-flops.
The D flip-flop is a memory element that stores the data item acquired on the rising or falling edge of the clock signal.
Therefore, optimization of the implementation of the bistable element and of all its derivatives allows an improvement that is decisive for the entire device.
Optimization of a D-type bistable device must also affect the aspect of minimizing power loss to reduce the current consumption of the overall circuit.
In this regard, since the registers are driven by a sampling signal that is normally formed by the clock signal of the portion of the system having the highest switching frequency, use of two phases of the clock signal, with regeneration of the signal inside the cell, entails an increase in the area of the device, due to the presence of two invertors for generating the "normal" and "inverted" clock signals, an increase in current consumption, and the possibility of "skew" phenomena affecting the clock signal.
Local regeneration of the clock signal in fact entails a current consumption that is independent of the situation of the data item, that is to say, even when the data item stored in the bistable device does not change.
Summary of the Invention
A purpose of the present invention is therefore to provide a low-consumption and high-density D flip-flop circuit implementation, particularly for standard cell libraries.
An object of the present invention is to provide a low-consumption and high-density D flip-flop circuit implementation that minimizes the number of active components.
Another object of the present invention is to provide a D flip-flop circuit implementation that enables minimization of the silicon area required for implementation.
Another object of the present invention is to provide a D flip-flop circuit implementation that enables use of a single-phase clock signal.
Another object of the present invention is to provide a D flip-flop circuit implementation that enables zero current consumption if a stable data item occurs at the input of the flip-flop.
Another object of the present invention is to provide a D flip-flop circuit implementation that is highly reliable, relatively easy to manufacture, and at competitive costs.
This purpose, these objects, and others which will become apparent hereinafter are achieved by a low-consumption and high-density D flip-flop circuit implementation, particularly for standard cell libraries, which includes a master section and a slave section. The master section has a master latch structure. The slave section has a slave latch structure. The master and slave sections are interposed between a power supply line and a ground line, each latch structure being formed by a first pair and a second pair of transistors. In the master latch structure, each of the first pair of transistors has a source terminal connected to the power supply line and is a P-channel MOS transistor. The second pair of transistors of the master latch structure has source terminals connected to respective drain terminals of an additional pair of transistors having the source terminals connected to the ground line. Same-phase clock signals are fed to the master section and to the slave section.
Brief Description of the Drawings
Further characteristics and advantages of the invention will become apparent from a preferred but not exclusive embodiment of the D flip-flop circuit implementation according to the invention, illustrated by way of non-limiting example in the accompanying drawings, wherein:
FIG. 1 is a circuit diagram of a conventional D flip-flop;
FIG. 2 is a circuit diagram of a D flip-flop according to a first embodiment of the present invention;
FIG. 3 is a circuit diagram of an application of a D flip-flop according to the first embodiment of the present invention;
FIG. 4 is a chart comparing current consumption for a synchronous counter with N stages according to the known art and according to the first embodiment of the present invention;
FIG. 5 is a circuit diagram of a D flip-flop according to a second embodiment of the present invention;
FIG. 6 is a chart comparing current consumption for a synchronous counter according to the known art and according to the first and second embodiments the present invention;
FIG. 7 is a circuit diagram of a D flip-flop according to a third embodiment of the present invention; and
FIG. 8 is a chart comparing current consumption of a synchronous counter according to the known art and according to the first and third embodiments of the present invention.
Detailed Description
With reference to FIG. 1, the typical execution of a D flip-flop in CMOS technology is shown.
The illustrated circuit configuration can be divided into a master section 1 and into a slave section 2 of the D flip-flop.
The two invertors 3 and 4 have the purpose of internally regenerating the clock signal CK and also of generating the inverted clock signal CKN; these two signals, CK and CKN, are fed both to the master section 1 and to the slave section 2.
FIG. 2 is a view of a circuit implementation of a D flip-flop according to a first embodiment of the present invention.
The circuit configuration of this figure can again be divided into a master section 100 and a slave section 200.
The master section 100 includes a master latch structure 5 and the slave section 200 includes a slave latch structure 6, both sections connected between a power supply line V.sub.DD and a ground line 7.
Advantageously, each latch structure 5 and 6 includes two pairs of MOS transistors.
For the master latch structure 5, the first pair of transistors is formed by first and second MOS transistors of the P-channel type 8 and 9 having the respective source terminals connected to V.sub.DD.
The second pair of transistors of the latch structure 5 is formed by third and fourth transistors of the N-channel type 10 and 11 having respective drain terminals connected respectively to drain terminals of the transistors 8 and 9. Source terminals of the transistors 10 and 11 are connected to the ground line 7 through N-channel MOS transistors 24 and 25 having gate terminals connected to the clock signal CK (the connections of the terminals of these last two MOS devices 24 and 25 are further described later).
The gate terminal of the transistor 8 is connected to the drain terminal of the transistor 9 and the gate terminal of the transistor 9 is connected to the drain terminal of the transistor 8.
For the second pair of transistors 10 and I 1, the gate terminal of the transistor 10 is formed to a line that connects the drain terminal of the transistor 9 and the drain terminal of the transistor 11.
Likewise, the gate terminal of the transistor 11 is connected to a line that connects the drain terminal of the transistor 8 and the drain terminal of the transistor 10.
The slave latch structure 6 has a configuration that is similar to that of the structure 5.
Therefore, for this structure 6 there is a first pair of P-channel MOS transistors that is formed by a fifth transistor 12 and by a sixth transistor 13 having respective source terminals connected to the power supply line V.sub.DD and having respective drain terminals connected respectively to drain terminals of seventh and eighth MOS N-channel transistors 14 and 15 that form a second pair of transistors of the structure 6.
The P-channel transistors 12 and 13 are "resistive" in that their gate terminals have non-minimal lengths.
Source terminals of the transistors 14 and 15 are connected to the ground line.
The gate terminals of the transistors 12 and 14 are connected to a line that connects the drain terminal of the transistor 13 and the drain terminal of the transistor 15.
Likewise, the gate terminals of the transistors 13 and 15 are connected to a line that connects the drain terminal of the transistor 12 and the drain terminal of the transistor 14.
Two additional pairs of P-channel MOS transistors 16-17 and 18-19 are connected respectively between the power supply line V.sub.DD and the nodes A and B. More particularly, a ninth transistor 16 and a tenth transistor 18 have source terminals that are connected to V.sub.DD and drain terminals that are respectively connected to the source terminals of an eleventh transistor 17 and of a twelfth transistor 19 having drain terminals respectively connected to the nodes A and B.
Likewise, for the latch structure 6, two additional pairs of transistors, formed respectively by a thirteenth transistor 20 and a fourteenth transistor 21, and by a fifteenth transistor 22 and a sixteenth transistor 23, are interposed respectively between the drain terminals of the transistors 12-14 and 13-15. More particularly, drain terminals of the transistors 20 and 22 are connected respectively between the drain terminals of the transistors 12-14 and 13-15.
Source terminals of the transistors 21 and 23 are connected to the ground line 7. Gate terminals of the transistors 20 and 22 are respectively connected to the node B and to the node A.
Finally, a seventeenth MOS N-channel transistor 24 and an eighteenth MOS N-channel transistor 25, as mentioned earlier, are connected, by virtue of their drain terminals, respectively to the source terminals of transistors 10 and 11, and by virtue of their source terminals to the ground line 7. Gate terminals of the transistors 24 and 25 are connected to one another.
A clock signal CK of the same phase is fed to the gate terminals of the transistors 16, 18, is 21, 23, and 24-25.
An inverter 26 provides, as an output, an inverted data item DN based on a data item D.
The data item D and the inverted data item DN are fed respectively to the gate terminals of the transistors 17 and 19.
Finally, an inverter 27 is connected to the gate terminal of the transistor 13 and produces as an output, the signal Q, which forms the output of the D flip-flop circuit implementation according to a first embodiment of the present invention.
FIG. 3 is a view of an application of the D flip-flop circuit implementation according to the invention if SET and CLEAR signals are present. In FIG. 3 and in all subsequent Figures, the same reference numerals have been used to designate elements that are identical to those of FIG. 2. In the interest of easy comprehension, it has been thought appropriate to designate with reference numerals in particular the elements that differentiate the circuit solution of FIG. 3 with respect to that of FIG. 2.
Therefore, a nineteenth N-channel MOS device 34 is connected, by virtue of its drain terminal, to the node A of the master latch structure 5 and, by virtue of its source terminal, to the ground line 7.
A pair of N-channel MOS transistors is formed by a twentieth transistor 35 and by a twenty-first transistor 36 having respective gate terminals that are common-connected and being connected to the ground line 7 by virtue of their source terminals. A drain terminal of the transistor 35 is connected to the node B.
A drain terminal of the transistor 36 is connected to the line that connects the drain terminal of the transistor 13 to the drain terminal of the transistor 15 of the slave structure 6.
Finally, a twenty-second transistor 37 is connected to the ground line 7 by virtue of its source terminal, and to the line that connects the drain terminal of the transistor 12 to the drain terminal of the transistor 14 by virtue of its drain terminal. The inverter 27 that produces the signal Q, as an output, is connected to the drain terminal of the transistor 37.
Two NAND gates 30 and 31, each having two inputs, are connected in series. The inputs of the NAND gate 30 are the D and CLEAR signals, and its output is the DCN signal, which forms one of the two inputs of the second NAND gate 31. The other input of the second NAND gate 31 is the SET signal. The output of the second NAND gate 31 is the DCS signal. Therefore, the cascade connection of the two NAND gates 30 and 31 produces an AND operation of the signals D, CLEAR, and SET.
An inverter 32 has the SET signal as an input and the inverted SET signal SETN, as an output.
Another inverter 33 has the CLEAR signal as an input and the inverted CLEAR signal, CLEARN, as an output.
The DCS signal is fed to the gate terminal of the transistor 17, differently from the case of FIG. 2, in which the D signal was fed to this transistor.
The SETN signal is connected to the gate terminals of the transistors 34 and 37, whereas the CLEARN signal biases the gate terminals of the transistors 35 and 36.
Finally, the DCN signal is connected to the gate terminal of the transistor 19.
FIG. 4 is a chart comparing the current consumption of a binary counter with N stages in a standard configuration and of a counter produced according to the circuit configuration shown in FIG. 2. In this chart, the axis of the abscissa plots the number of stages of the binary counter, whereas the axis of the ordinate plots the current consumption, expressed as .mu.A/MHZ.
In the chart, the line 40 plots the current consumption of the counter according to the standard circuit solution; it is evident that current consumption is proportional to the number N of stages.
The line 50 plots current consumption if the D flip-flop circuit implementation according to the invention is applied. Here, current consumption has a limited growth as the number N of stages of the counter increases.
FIG. 5 is a view of a D flip-flop according to a second embodiment of the invention which is suitable if the noise sensitivity of the device is important.
An additional MOS transistor 70 of the P-channel type is introduced in this second embodiment and is interposed between the drain terminals of the transistors 17 and 19 that belong to the master latch structure 5.
The clock signal CK is fed to the gate terminal of the transistor 70.
FIG. 6 is a chart comparing the current consumption performance of a standard D flip-flop circuit implementation, and performances of circuit implementations according to the first and second embodiments.
As in the chart of FIG. 4, the abscissas plot the number N of stages, whereas the ordinate plots current consumption (in .mu.A/MHZ). The difference between these two charts is the presence, in the chart of FIG. 6, of an additional curve 80 that plots the current consumption of the circuit implementation according to the second embodiment of the invention.
FIG. 7 is a circuit diagram of a D flip-flop circuit implementation according to a third embodiment of the invention, again in the case in which noise sensitivity is a factor to be taken into account.
With this problem in mind, the circuit solution of FIG. 2 has been modified as shown in FIG. 7, by adding two N-channel MOS transistors 85 and 86 at the master latch structure 5. More particularly, the transistor 85 has a drain terminal connected to the line that connects the source terminal of the transistor 10 and the drain terminal of the transistor 24. Likewise, the transistor 86 has a drain terminal connected to the line that connects the source terminal of the transistor 11 and the drain terminal of the transistor 25. The gate terminals of the transistors 85 and 86 are respectively driven by the DCS and DCR signals, which are provided by the NAND gates 30 and 31, with an added NOT gate 102; these gates are also shown in FIG. 7. Two further N-channel MOS transistors 101 and 201 are respectively connected with their drain terminals to the drain terminals of MOS transistors 12,14 and 13,15, as shown in FIG. 7.
The source terminals of MOS transistors 100 and 201 are connected to ground potential.
A SETN signal is fed to the gate terminal of the transistor 101, and a CLEARN signal is fed to the gate terminal of the transistor 201.
The embodiment shown in FIG. 7 has, differently from the embodiments of FIGS. 2 and 5, a DCS signal fed to the gate of the transistor 17 and the DCR signal fed to the gate of the transistor 19.
A DCR signal is also fed to the gate of the transistor 86.
FIG. 8 is a chart, similar to the charts of FIGS. 4 and 6, illustrating a comparison of current consumptions of the standard D flip-flop configuration, the configuration according to the first embodiment shown in FIG. 2, and in the circuit solution of FIG. 2, modified as shown in FIG. 7.
In this chart, the curve 40 again plots the standard solution, the curve 50 plots the solution according to the invention shown in FIG. 2, and the curve 90 plots the modified solution shown in FIG. 8. In this case it is evident that the curve 90 practically overlaps the curve 50.
With reference to FIG. 2, the operation of the D flip-flop circuit implementation according to the present invention is as follows.
In the master section 100, the transistors 24 and 25 are disabled during the low phase of the clock signal CK the master latch 5 is disconnected from the ground. The data items D and DN that are present respectively on the gate terminals of the transistors 17 and 19 are stored in the master latch structure 5 during the rising edge of the clock signal CK. These transistors 17 and 19 respectively provide the stored data items to the gate terminals of the transistors 22 and 20.
The slave section 200 then admits the data items of the master section 100 during the rising edge of the clock signal CK by virtue of the transistors 20, 21, 22, and 23.
In order to use a single phase of the clock signal CK, the data item in the master section 5 is stored by means of the two P-channel MOS transistors 8 and 9 and N-channel MOS transistors 10 and 11 on a rising edge of the clock signal, and simultaneously, by virtue of the four N-channel transistors 20, 21 and 22, 23, the slave section 200 is coupled to the master section 100, thus allowing the slave section 200 to remain coupled until the next transition of the clock signal CK.
Therefore, at the instant of transition of the clock signal CK from low to high, the master latch structure 5 is "closed" so as to retain the last data item that is present; the resistance opposed by the branch in which both transistors are on (i.e., either the branch with the transistors 16 and 17 or the branch with the transistors 18 and 19) forces stabilization of the main latch structure 5 in a manner that matches the data item D that is present at the gate terminals of the transistors 17 and 19.
Even if a very fast transition of the clock signal CK occurs, the capacitive charge that is present on the branch in which both transistors are on causes the master latch structure 5 to store the data item D correctly.
For this to occur, the clock signal CK must be fed to the gate terminals of the transistors 16 and 18 to avoid unwanted couplings of the transitions of the signal CK with the output nodes of the master latch structure 5.
As mentioned earlier, the slave section 200 thus has the data item stored in the master latch structure 5 at the gate terminals of the transistors 20 and 22 and transfers the data item to the slave latch structure 6, which holds the data items, because it is stable, throughout the low phase of the clock signal CK.
During the low phase of the clock signal CK, the slave section 200 is uncoupled from the master section 100 by switching off the transistors 21 and 23.
Therefore, it is possible to use a single clock signal CK both for the master section 100 and for the slave section 200, avoiding the need for local clock regeneration, which entails current consumption independently of changes in the data item D.
Advantageously, for optimum operation of the D flip-flop circuit implementation according to the invention, the source areas of the transistors 17 and 19 are appropriately provided with large dimensions resulting in a large stray capacitance with respect to ground.
FIG. 3 illustrates the application of the D flip-flop circuit implementation to a flip-flop with SET and CLEAR setting and resetting signals.
In this case, the structure of FIG. 2 is maintained, with the addition of a few transistors (i.e., transistors 34, 35, 36, and 37).
The low active CLEAR signal has the purpose of resetting the output Q of the D flip-flop to zero.
The low active SET signal has the purpose of raising the output Q of the flip-flop to a high level.
FIG. 4 shows that the current consumption of a counter with N stages is proportional to the number N of the stages for a conventional D flip-flop circuit embodiment, whereas for the implementation according to the invention, current consumption is limited as the number N of stages increases.
If there are leakage problems, or if the D flip-flops are used for frequencies that are very different from one another, it is necessary to consider the noise sensitivity of the circuit implementation. Noise sensitivity is due to the fact that one of the two nodes A and B of the circuit floats, during the low phase of the clock signal CK, due to the switching-off of the corresponding transistor 17 or 19.
In fact, during the low phase of the clock signal CK, the two P-channel MOS transistors 16 and 18 are short circuits. However, there is a node (A or B) that is certainly at the supply voltage V.sub.DD, whereas the other node is not forced to V.sub.DD or to the ground by any resistive path. Therefore one of the two nodes remains floating, that is to say, it is not set to any level, and this makes it sensitive to potential noise.
In order to obviate this drawback, if it is essential to control the noise sensitivity of the device, it is possible to follow two alternatives, which are provided by modifying the circuit implementation of FIG. 2.
In a first alternative embodiment (i.e., the second embodiment), shown in FIG. 5, a transistor 70 is added which has the purpose of bringing the nodes A and B to the same level. The transistor 70 is advantageously a P-channel MOS transistor, which is interposed between the drain terminals of the transistors 17 and 19 and in which the clock signal CK is fed to its gate terminal.
In this manner, the two nodes A and B are set to the same value just before evaluation of the data item, and this prevents unwanted bootstrapping effects caused by noise of adjacent signals or by the switching-off of one of the two transistors 17 or 19.
However, as a consequence, even in the presence of a constant data item, at each transition of the clock signal CK, both nodes A and B are charged at the supply voltage V.sub.DD and then, during the coupling of the master latch structure that occurs on the rising edge of the signal CK, one of the two nodes (always the same one, if the data item does not change) is discharged to the ground.
In terms of current consumption, this modification is more expensive than the circuit embodiment of FIG. 2. The curve 40 in the chart of FIG. 6 in fact plots the current consumption of the conventional D flip-flop circuit embodiment, the curve 50 plots consumption for the embodiment according to the invention shown in FIG. 2, and the curve 80 plots consumption in the case of the solution of FIG. 5, which is in any case lower than that of the conventional solution.
In choosing the most appropriate D flip-flop implementation, it should be determined whether minimizing noise sensitivity or current consumption of the device is more important.
The second alternative embodiment (i.e., the third embodiment), which is adopted to take into account the noise sensitivity of the device, entails the addition of two MOS transistors 85 and 86, advantageously of the N-channel type, in the master section 100, with the SET and CLEAR functions.
These two transistors 85 and 86 have therefore the purpose of coupling one node of the master latch structure 5 to the ground potential depending on the input data item, independently of the clock signal CK.
On the rising edge of the clock signal CK, the data item that is present is frozen as in the solution of FIG. 2. Additionally, this embodiment preserves the basic aspect of zero consumption in the presence of a constant data item, differently from the embodiment shown in FIG. 5.
The chart of FIG. 8 shows the curve 90 of the current consumption of the solution of FIG. 7, compared with the curve 50 of the current consumption of the solution of FIG. 2 and with the curve 40 plotting the consumption of the conventional solution.
In practice, it has been observed that the D flip-flop circuit implementation according to the invention fully achieves the intended purpose, since it enables optimization of the D flip-flop with regard to current consumption, thus minimizing the power lost in this element.
Furthermore, the circuit implementation according to the invention minimizes the possibility of a "skew" of the clock signal CK inside the circuit, using a single signal phase without requiring its regeneration inside the cell.
The lack of local regeneration of the clock signal CK inside the cell provides a zero current consumption situation if the data item is stable.
Finally, the lack of local regeneration enables a reduction in the number of transistors required for the implementation of the D flip-flop according to the invention and therefore a consequent reduction in the area of the device and in the corresponding production costs.
Where technical features mentioned in any claim are followed by reference signs, those reference signs have been included for the sole purpose of increasing the intelligibility of the claims and accordingly such reference signs do not have any limiting effect on the interpretation of each element identified by way of example by such reference signs.
Having thus described at least one illustrative embodiment of the invention, various alterations, modifications, and improvements will readily occur to those skilled in the art. Such alterations, modifications, and improvements are intended to be within the spirit and scope of the invention. Accordingly, the foregoing description is by way of example only and is not intended as limiting. The invention is limited only as defined in the following claims and the equivalents thereto.