The present invention relates to logic circuits for performing threshold functions using inverting gates.
It is known in digital electronics that threshold functions find many applications including parallel counters. It is also known that in static cmos circuits inverting gates are both fast and have small silicon area.
In the following + denotes logical OR, proximity denotes Logical AND, c denotes complement. A logical function with n inputs and one output, which is high if at least k of the n inputs are high, will be denoted by [n,k]. These functions are also known as threshold functions. It is also known that if the inputs to [n,k] are inverted, denoted [n,k], and the output is also inverted the resulting function is the threshold function [n,n−k+1]. In the notation this can be stated as
[n,k]c=[n,n−k+1].
List of Gates Referred to Herein After
It is known that for parallel counters the threshold functions [4,1], [4,2], [4,3], and [4,4] need to be implemented. A prior art method is shown in
A first aspect of the present invention provides a logic circuit for generating four binary outputs as four threshold functions of four binary inputs to the logic circuit, the threshold functions comprising a first threshold function which is high if at least one of the binary inputs is high, a second threshold function which is high if at least two of the binary inputs are high, a third threshold function which is high if at least three of the binary inputs are high, and a fourth threshold function which is high if all of the binary inputs are high, the logic circuit comprising first level logic comprising two logic parts, each logic part comprising a NOR gate and a NAND gate and having two first level inputs for receiving the binary inputs and two first level outputs; and second level logic comprising four second level outputs, four second level inputs for receiving second level binary inputs and connected to the four first level outputs, a NAND gate, a first gate generating a logical OR combination of two second level binary inputs and NAND combining the logical OR combination with two other second level binary inputs, a second gate generating logical OR combinations of two pairs of second level binary inputs and NAND combining the logical OR combinations, and a NOR gate; wherein one of said four binary outputs is generated at each of said four outputs.
In one embodiment the first gate comprises an OAI211 gate. In another embodiment the second gate comprises an OAI22 gate. The logic circuit can be incorporated in a parallel counter.
Another aspect of the present invention provides a logic circuit for generating four binary outputs as four threshold functions of four binary inputs to the logic circuit, the threshold functions comprising a first threshold function which is high if at least one of the binary inputs is high, a second threshold function which is high if at least two of the binary inputs are high, a third threshold function which is high if at least three of the binary inputs are high, and a fourth threshold function which is high if all of the binary inputs are high, the logic circuit comprising first level logic comprising two logic parts, each logic part comprising a NOR gate and a NAND gate and having two first level inputs for receiving the binary inputs and two first level outputs; and second level logic comprising four second level outputs, four second level inputs for receiving second level binary inputs and connected to the four first level outputs, a NAND gate, a first gate generating logical AND combinations of two pairs of second level binary inputs and NOR combining the logical AND combinations, a second gate generating logical OR combinations of two pairs of second level binary inputs and NAND combining the logical OR combinations, and a NOR gate; wherein one of said four binary outputs is generated at each of said four outputs.
In one embodiment the first gate comprises an AOI22 gate. In another embodiment the second gate comprises an OAI22 gate. The logic circuit can be incorporated in a parallel counter.
Another aspect of the present invention provides a logic circuit for generating three binary outputs as three threshold functions of binary inputs to the logic circuit, the threshold functions comprising a first threshold function which is high if at least one of the binary inputs is high, a second threshold function which is high if at least two of the binary inputs are high, and a third threshold function which is high if all of the binary inputs are high, the logic circuit comprising first level logic comprising two logic parts, a first logic part comprising a NOR gate and a NAND gate and having two first level inputs for receiving two of the binary inputs and two first level outputs, and a second logic part comprising an inverter having one first level logic input for receiving one of the binary inputs and one first level output; and second level logic comprising three second level outputs, and three second level inputs for receiving second level binary inputs and connected to the three first level outputs, a NAND gate, a gate generating a logical AND combination of two second level binary inputs and NOR combining the logical AND combination with one other second level binary input, and a NOR gate; wherein one of said three binary outputs is generated at each of said three outputs.
In one embodiment the first gate comprises an AOI21 gate. The logic circuit can be incorporated in a parallel counter.
Another aspect of the present invention provides a logic circuit for generating three binary outputs as three threshold functions of binary inputs to the logic circuit, the threshold functions comprising a first threshold function which is high if at least one of the binary inputs is high, a second threshold function which is high if at least two of the binary inputs are high, and a third threshold function which is high if all of the binary inputs are high, the logic circuit comprising first level logic comprising two logic parts, a first logic part comprising a NOR gate and a NAND gate and having two first level inputs for receiving two of the binary inputs and two first level outputs, and a second logic part comprising an inverter having one first level logic input for receiving one of the binary inputs and one first level output; and second level logic comprising three second level outputs, and three second level inputs for receiving second level binary inputs and connected to the three first level outputs, a NAND gate, a gate generating a logical OR combination of two second level binary inputs and NAND combining the logical OR combination with one other second level binary input, and a NOR gate; wherein one of said three binary outputs is generated at each of said three outputs.
In one embodiment the first gate comprises an OAI21 gate. The logic circuit can be incorporated in a parallel counter.
Another aspect of the present invention provides a logic circuit having seven binary inputs, the logic circuit comprising first logic for generating a first binary value as a threshold function which is high if at least four binary inputs are high, a second binary value as a threshold function which is high if less than two binary inputs are high, and a third binary value as a threshold function which is high if less than six binary inputs are high; and second logic for forming the OR combination of the first binary value and the second binary value and for NAND combining the third binary value and the result of the OR combination.
In one embodiment the second logic comprises an inverting gate such as an OAI21 gate.
Another aspect of the present invention provides a logic circuit having seven binary inputs, the logic circuit comprising first logic for generating a first binary value as a threshold function which is high if at least four binary inputs are high, a second binary value as a threshold function which is high if less than two binary inputs are high, and a third binary value as a threshold function which is high if less than six binary inputs are high; and an inverting multiplexer to select and output the inverse of the second or third binary value dependant upon the first binary value.
In one embodiment of these two aspects of the invention, the first binary logic comprises four first logic parts having four of the binary inputs for generating a fourth binary value as a threshold function which is high if at least one of the four binary inputs is high, a fifth binary value as a threshold function which is high if at least two of the four binary inputs are high, a sixth binary value as a threshold function which is high if at least three of the four binary inputs are high, and a seventh binary value as a threshold function which is high if all of the four binary inputs are high; three second logic parts having three of the binary inputs for generating an eighth binary value as a threshold function which is high if at least one of the three binary inputs is high, a ninth binary value as a threshold function which is high if at least two of the three binary inputs are high, and a tenth binary value as a threshold function which is high if all of the three binary inputs are high; first combining logic for combining the fourth binary value, the fifth binary value, the eighth binary value, and the ninth binary value to generate the second binary value; and second combining logic for combining the sixth binary value, the seventh binary value, the ninth binary value, and the tenth binary value to generate the third binary value.
In one embodiment the first combining logic comprises logic for logically AND combining the fourth binary value and the eighth binary value, and for logically NOR combining the fifth binary value, the ninth binary value, and the results of the logical combination.
In one embodiment the first combining logic comprises an inverting gate such as an AOI211 gate.
In one embodiment the first combining logic comprises logic for logically OR combining the fifth binary value and the eighth binary value, and for logically OR combining the fourth binary value, the ninth binary value, and for logically NAND combining the results of the logical combinations.
In one embodiment the first combining logic comprises an inverting gate such as an OAI22 gate.
In one embodiment the second combining logic comprises logic for logically AND combining the sixth binary value and the tenth binary value, for logically AND combining the seventh binary value and the ninth binary value, and for logically NOR combining the results of the logical combinations.
In one embodiment the first combining logic comprises an inverting gate such as an AOI22 gate.
The logic of the present invention can comprise any suitable logic for performing the functions.
In the first embodiment of the present invention, it is noted that each of the functions [4,1], [4,2], [4,3], and [4,4] can be computed with at most two inverting gate delays. Referring to
It is known in digital electronics that OAI211 gates, implementing logic function ((A+B)CD)c are not very efficient. The inventors have observed that [4,2]=[4,3]c=([2,1]0[2,2]1+[2,2]0[2,1]1)c=([2,2]0c[2,1]1c+[2,1]0c[2,2]1c)2. Thus a second embodiment of the present invention is illustrated in
A third embodiment of the present invention will now be described with reference to
It is known in digital electronics that AOI21 gates, implementing logic function (AB+C)c are less efficient than OAI21 gate which implement logic function ((A+B)C)c. Thus
Threshold functions find applications in parallel counters. It is known that the most significant bit S3 of a 7 to 3 (7,3)-counter is high if at least four of the seven inputs are high, that is [7,4] is high. It is also known that the bit of one less significance, S2 has logical equation [7,4]c[7,2]+[7,6]. The inventors have observed that since both [7,4] and [7,4]c are required, an extra inverter delay is introduced. In a fifth embodiment of the present invention, this drawback is overcome by combining the functions [7,4], [7,2]c, and [7,6]c using a single inverting gate, OAI21=(([7,4]+[7,2]c)[7,6]c)c to form S2 and so an inverter is not needed to form [7,4]c. Referring to
The inventors have observed that the two functions [7,2]c and [7,6]c can be formed from the functions [4,1], [4,2], [4,3], and [4,4] and [3,1], [3,2], and [3,3] using a single inverting gate for each function, AOI211 for [7,2]c and AOI22 for [7,6]c as shown in
[7,2]c=([4,1][3,1]+[4,2]+[3,2])c
[7,6]c=([4,3][3,3]+[4,4][3,2])c
The inventors have further observed that AOI211 gates are not very efficient. The inventors have overcome this in a sixth embodiment of the present invention using the following relationships:
The inventors have also observed that inverting multiplexers are fast devices in static cmos.
An aspect of the present invention includes a logic circuit for generating four binary outputs as four threshold functions of four binary inputs to the logic circuit, the threshold functions comprising a first threshold function which is high if at least one of the binary inputs is high, a second threshold function which is high if at least two of the binary inputs are high, a third threshold function which is high if at least three of the binary inputs are high, and a fourth threshold function which is high if all of the binary inputs are high, the logic circuit comprising first level logic comprising two logic parts, each logic part comprising a NOR gate and a NAND gate and having two first level inputs for receiving the binary inputs and two first level outputs; and second level logic comprising four second level outputs, four second level inputs for receiving second level binary inputs and connected to the four first level outputs, a NAND gate, a first gate generating a logical OR combination of two second level binary inputs and NAND combining the logical OR combination with two other second level binary inputs, a second gate generating logical OR combinations of two pairs of second level binary inputs and NAND combining the logical OR combinations, and a NOR gate; wherein one of said four binary outputs is generated at each of said four outputs.
Although the present invention has been described with reference to specific embodiments, it will be apparent to a skilled person in the art that modifications lie within the spirit and scope of the present invention.
The present application claims priority under 35 U.S.C. 119 to U.S. Provisional Patent Application No. 60/446,433, filed Feb. 11, 2003 which is hereby incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
3634658 | Brown | Jan 1972 | A |
3757098 | Wright | Sep 1973 | A |
4399517 | Niehaus et al. | Aug 1983 | A |
4607176 | Burrows et al. | Aug 1986 | A |
5095457 | Jeong | Mar 1992 | A |
5175862 | Phelps et al. | Dec 1992 | A |
5187679 | Vassiliadis et al. | Feb 1993 | A |
5325320 | Chiu | Jun 1994 | A |
5343417 | Flora | Aug 1994 | A |
5497342 | Mou et al. | Mar 1996 | A |
5524082 | Horstmann et al. | Jun 1996 | A |
5701504 | Timko | Dec 1997 | A |
5964827 | Ngo et al. | Oct 1999 | A |
5995029 | Ryu | Nov 1999 | A |
6008668 | Saruwatari | Dec 1999 | A |
6023566 | Belkhale et al. | Feb 2000 | A |
6175852 | Dhong et al. | Jan 2001 | B1 |
6269386 | Siers et al. | Jul 2001 | B1 |
6344760 | Pyo | Feb 2002 | B1 |
6445210 | Nojiri | Sep 2002 | B1 |
6490608 | Zhu | Dec 2002 | B1 |
6577164 | Tomita | Jun 2003 | B1 |
6724223 | Ichiguchi et al. | Apr 2004 | B1 |
6882175 | Motegi et al. | Apr 2005 | B1 |
20020026465 | Rumynin et al. | Feb 2002 | A1 |
20020078110 | Rumynin et al. | Jun 2002 | A1 |
20030016055 | Oodaira et al. | Jan 2003 | A1 |
20040103135 | Talwar et al. | May 2004 | A1 |
20040153490 | Talwar et al. | Aug 2004 | A1 |
Number | Date | Country |
---|---|---|
0168650 | Jan 1986 | EP |
0309292 | Mar 1989 | EP |
0442356 | Aug 1991 | EP |
0741354 | Nov 1996 | EP |
2475250 | Aug 1981 | FR |
2016181 | Sep 1979 | GB |
2062310 | May 1981 | GB |
2263002 | Jul 1993 | GB |
2365636 | Feb 2002 | GB |
2365637 | Feb 2002 | GB |
WO-9922292 | May 1999 | WO |
WO-0212995 | Feb 2002 | WO |
Number | Date | Country | |
---|---|---|---|
20040223400 A1 | Nov 2004 | US |
Number | Date | Country | |
---|---|---|---|
60446433 | Feb 2003 | US |