Data compressor logic circuit
10756753 ยท 2020-08-25
Assignee
Inventors
- Shardendu Shekhar (Austin, TX, US)
- Andy Wangkun Chen (Austin, TX, US)
- Yew Keong Chong (Austin, TX, US)
Cpc classification
H03M7/30
ELECTRICITY
H03K19/0944
ELECTRICITY
H03K19/20
ELECTRICITY
International classification
H03M7/30
ELECTRICITY
H03K19/0944
ELECTRICITY
H03M7/00
ELECTRICITY
H03K19/20
ELECTRICITY
Abstract
A compressor includes a logic circuit having transistors of a first channel type to receive a plurality of bit signals, and transistors of a second channel type, different from the first channel type, to receive the plurality of bit signals. The transistors of the first channel type are configured to generate an XOR logic output based on the plurality of bit signals, and the transistors of the second channel type are configured to generate, substantially simultaneous with the generation of the XOR logic output, an XNOR logic output based on the plurality of bit signals. The compressor includes NAND gates to receive multiplicand and multiplier bit signals.
Claims
1. A compressor, comprising: first, second, and third logic gates each having respective first and second input terminals and an output terminal, wherein the first, second, and third logic gates are configured to output respective first, second, and third partial product bits at the respective output terminals; a first circuit having first and second input terminals electrically coupled to the respective output terminals of the first and second logic gates, wherein the first circuit is configured to perform an XOR or XNOR logic operation on the first partial product bit or the second partial product bit to generate a resultant respective XOR or XNOR logic operation bit corresponding to one or more select signals; and a first multiplexer having: a first multiplexer select input terminal electrically coupled to the first circuit, and a first multiplexer output terminal, wherein the first multiplexer is configured to select a carry-out bit from among at least the first partial product bit and a third partial product bit based on the one or more select signals received at the first multiplexer select input terminal.
2. The compressor of claim 1, wherein each of the first, second, and third logic gates is configured to perform a NAND logic operation on a respective multiplicand bit and a respective multiplier bit received at, the respective input terminals.
3. The compressor of claim 1, wherein the output terminal of the third logic gate is electrically coupled to a data terminal of the first multiplexer and to a second circuit, and further comprising: a fourth logic gate having an output terminal electrically coupled to the second circuit and to a second multiplexer, wherein the second multiplexer is configured to select and output a carry signal at a second multiplexer output terminal.
4. The compressor of claim 1, further comprising: a first multiplexer having a first data input terminal electrically coupled to the first output terminal of the first logic gate.
5. The compressor of claim 4, further comprising: a fourth logic gate having a output terminal electrically coupled to a second circuit and to a second multiplexer, and wherein the output terminal of the third logic gate is electrically coupled to a second data input terminal of the first multiplexer and to the second circuit, and wherein the second multiplexer is configured to select and output a carry signal at a second multiplexer output terminal.
6. A method, comprising: receiving a first multiplicand bit and a first multiplier bit; performing, with a first NAND circuit, a logic NAND operation on the first multiplicand bit and the first multiplier bit, to generate a first output bit; receiving a second multiplicand bit and a second multiplier bit; performing, with a second NAND circuit, a logic NAND operation on the second multiplicand bit and the second multiplier bit, to generate a second output bit; performing a logic XOR operation with the first and second output bits to generate a first select signal; receiving a third multiplicand bit and a third multiplier bit; performing, with a third NAND circuit, a logic NAND operation on the third multiplicand bit and the third multiplier bit, to generate a third output bit; and selecting, at the multiplexer, a carry-out bit from among the first output bit and the third output bit based on the state of the first select signal.
7. The method of claim 6, further comprising: performing, substantially simultaneously with the logic XOR operation, a logic XNOR operation with the first and second output bits to generate a second select signal, and selecting, at the multiplexer, a carry-out bit from the first output bit and the third output bit based on the states of the first and second select signals.
8. A compressor, comprising: a first circuit having pairs of first and second partial product bits coupled to corresponding first and second input terminals of the first circuit, wherein the first circuit is configured to perform an XOR or XNOR logic operation on the first partial product bit or the second partial product bit to generate a resultant respective XOR or XNOR logic operation bit corresponding to one or more first select signals; and a second circuit having pairs of third and fourth partial product bits coupled to corresponding first and second input terminals of the second circuit, wherein the second circuit is configured to perform an XOR or XNOR logic operation on the third partial product bit or the fourth partial product bit to generate a resultant respective XOR or XNOR logic operation bit corresponding to one or more second select signals.
9. The compressor of claim 8, wherein the first and third partial product bits are electrically coupled to first and second data terminals of a first multiplexer, wherein the first multiplexer is configured to select a carry-out bit from among at least the first partial product bit and a third partial product bit based on the one or more first select signals received at the first multiplexer.
10. The compressor of claim 8, wherein the fourth partial product bit is electrically coupled to the second circuit and to a second multiplexer, and wherein the second multiplexer is configured to select and output a carry data signal at a second multiplexer output terminal.
11. A compressor, comprising: a first circuit having one or more of first and second partial product bits input on first and second input terminals of the first circuit, wherein the first circuit is configured to perform an XOR or XNOR logic operation on the first partial product bit or the second partial product bit to generate a resultant respective XOR or XNOR logic operation bit corresponding to one or more first select signals; and a second circuit having one or more of third and fourth partial product bits input on first and second input terminals of the second circuit, wherein the second circuit is configured to perform an XOR or XNOR logic operation on the third partial product bit or the fourth partial product bit to generate a resultant respective XOR or XNOR logic operation bit corresponding to one or more second select signals; wherein the first, second, third, and fourth partial product bits correspond to respective outputs of first, second, third, and fourth logic gates, wherein each logic gate comprises respective first and second input terminals and an output terminal.
12. The compressor of claim 11, wherein the first circuit comprises first and second input terminals electrically coupled to the output terminals of the first and second logic gates, and wherein the second circuit comprises first and second input terminals electrically coupled to the output terminals of the third and fourth logic gates.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Aspects of the present disclosure are best understood from the following detailed description when read with the accompanying figures. It is noted that, in accordance with standard practice in the industry, various features are not drawn to scale. In fact, the dimensions of the various features may appear arbitrarily increased or reduced for clarity of discussion.
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION
(6) The following disclosure provides many different embodiments, and/or examples, for implementing different features of the provided subject matter. Specific examples of components and arrangements are described below to simplify the present disclosure. These are, of course, merely examples and are not intended to be limiting. For example, the location of a first feature near or on a second feature in the description that follows may include embodiments in which the first and second features are formed in direct contact, and may also include embodiments in which additional features may be formed between the first and second features, such that the first and second features may not be in direct contact. In addition, the present disclosure may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate, unless otherwise noted, a relationship between the various embodiments and/or configurations discussed.
(7)
(8) The XOR-XNOR circuit 100 of the embodiment of
(9) The XOR-XNOR circuit 100 is configured to perform XOR and XNOR operations on input data signals W, X, Y, and Z, and provide logic output signals XOR(WXYZ) and XNOR(WXYZ). For any given set of input signals, XNOR(WXYZ) will be the logic complement of XOR(WXYZ). The detailed operation of the XOR-XNOR circuit 100 in generating logic output signals XOR(WXYZ) and XNOR(WXYZ) is discussed below.
(10) The XOR-XNOR circuit 100 includes transistors 110 and 112 coupled in series between a conductor 130 and a reference node 124 carrying a reference potential, such as a ground voltage. The drain terminal of transistor 110 is coupled to conductor 130, and the source terminal is coupled to the drain terminal of transistor 112. The source terminal of transistor 112 is coupled to the reference node 124. In the illustrated embodiment, transistors 110 and 112 are n-channel MOSFETS. Conductor 130 may be electrically coupled to, or form part of, terminal 126.
(11) The XOR-XNOR circuit 100 further includes transistors 114 and 116 coupled in series between conductor 130 and a reference node 125 carrying a reference potential, such as a ground voltage. In an embodiment, reference node 125 is electrically coupled to reference node 124, such that both nodes carry the same reference potential. The drain terminal of transistor 114 is coupled to conductor 130, and the source terminal of transistor 114 is coupled to the drain terminal of transistor 116. The source terminal of transistor 116 is coupled to the reference node 125. In the illustrated embodiment, transistors 114 and 116 may be n-channel MOSFETS. Alternatively, transistors 110, 112, 114, and 116 may be any other type of FET, such as, but not limited to, JFETs and FinFETs.
(12) The XOR-XNOR circuit 100 further includes transistors 118 and 120 coupled in series between a voltage supply node 132 and a conductor 136. The source terminal of transistor 118 is coupled to the voltage supply node 132, and the drain terminal of transistor 118 is coupled to the source terminal of transistor 120. The drain terminal of transistor 120 is coupled to the conductor 136. In the illustrated embodiment, transistors 118 and 120 are p-channel MOSFETS. Conductor 136 may be electrically coupled to, or form part of, terminal 128.
(13) The XOR-XNOR circuit 100 further includes transistors 122 and 124 coupled in series between voltage supply node 134 and conductor 136. In an embodiment, voltage supply node 132 is electrically coupled to voltage supply node 134, such that both nodes carry the same supply voltage potential. The source terminal of transistor 122 is coupled to the voltage supply node 134, and the drain terminal of transistor 122 is coupled to the source terminal of transistor 124. The drain terminal of transistor 124 is coupled to conductor 136. In the illustrated embodiment, transistors 122 and 124 may be p-channel MOSFETS. Alternatively, transistors 118, 120, 122, and 124 may be any other type of FET, such as, but not limited to, JFETs and FinFETs.
(14) The XOR-XNOR circuit 100 further includes transistors 138 and 140 (also referred to as switches). In the illustrated embodiment, the drain terminal of transistor 138 is coupled to the drain terminal of transistor 140. The source terminal of transistor 138 is coupled to conductor 142, and the source terminal of transistor 140 is coupled to conductor 144. Conductor 142 may be electrically coupled to, or form part of, terminal 104c. Conductor 144 may be electrically coupled to, or form part of, terminal 102c.
(15) In the illustrated embodiment, transistors 138 and 140 are p-channel MOSFETS. Alternatively, transistors 138 and 140 may be any other type of FET, such as, but not limited to, JFETs and FinFETs.
(16) The XOR-XNOR circuit 100 further includes transistors 146 and 148 (also referred to as switches). In the illustrated embodiment, the source terminal of transistor 146 is coupled to the source terminal of transistor 148. The drain terminal of transistor 146 is coupled to conductor 144, and the drain terminal of transistor 148 is coupled to conductor 142. In the illustrated embodiment, transistors 146 and 148 are n-channel MOSFETS. Alternatively, transistors 146 and 148 may be any other type of FET, such as, but not limited to, JFETs and FinFETs.
(17) In the illustrated embodiment, the drain terminals of transistors 138 and 140 are coupled to conductor 130, and the source terminals of transistors 146 and 148 are coupled to conductor 136.
(18) The XOR-XNOR circuit 100, as illustrated, processes four input data signals W, X, Y, and Z, and generates output data signals XOR(WXYZ) and XNOR(WXYZ). Referring momentarily to
(19) TABLE-US-00001 TABLE 1 Input bit combinations of XOR-XNOR circuit 100, and XOR/XNOR outputs. Inputs Outputs W X Y Z XOR(WXYZ) XNOR(WXYZ) 0 1 0 1 0 1 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0 0 1
(20) For example, with reference to
(21) Consequently, the states of XOR(WXYZ) and XNOR(WXYZ) are determined in parallel, rather than in series or through an inverter. By processing the XOR and XNOR operations in parallel, XOR-XNOR circuit 100 generates the output bit signals with less delay than XOR, XNOR, and XOR-XNOR configurations that utilize series processing and/or include an inverter to invert the XOR result (or, alternatively, invert the XNOR result). The present disclosure observes a 16.11% reduction in the average delay of the XOR/XNOR circuit 100 over a standard XOR based cell, and an 11.50% reduction in the maximum delay of the XOR/XNOR circuit 100 over a standard XOR based cell. Moreover, the present disclosure observes 5.02% reduction in power consumed by the XOR/XNOR circuit 100 over a standard XOR based cell.
(22) Referring to
(23) The compressor cell 200 includes NAND gates 214, 216, 218, and 220. Each NAND gate has two input terminals for receiving respective multiplier and multiplicand bits. For example, in a four-bit multiplication operation of A.Math.B, the multiplicand bits A may be represented as A0, A1, A2, and A3. The multiplier bits B may be represented as B0, B1, B2, and B3. In this example, NAND gate 214 receives bits A0 and B0, NAND gate 216 receives bits A1 and B1, NAND gate 218 receives bits A2 and B2, and NAND gate 220 receives bits A3 and B3. The output terminals of NAND gates 214 and 216 are coupled to XOR/XNOR circuit 202. The output terminals of NAND gates 218 and 220 are coupled to XOR/XNOR circuit 204.
(24) The output signal of NAND gate 214 corresponds to the inverted Nth order bit in the first partial product (pp0), the output signal of NAND gate 216 corresponds to the inverted Nth order bit in the second partial product (pp1), the output signal of NAND gate 218 corresponds to the inverted Nth order bit in the third partial product (pp2), and the output signal of NAND gate 220 corresponds to the inverted Nth order bit in the fourth partial product (pp3). The Nth order corresponds to the Nth column (i.e., order of magnitude) of the partial products. Table 2 illustrates the partial products and Nth order placements.
(25) TABLE-US-00002 TABLE 2 Illustration of correspondence among the Nth order compressors and the partial products. Multiplicand A3 A2 A1 A0 Multiplier B3 B2 B1 B0 0 0 0 B0A3 B0A2 B0A1 B0A0 pp0 0 0 B1A3 B1A2 B1A1 B1A0 0 pp1 0 B2A3 B2A2 B2A1 B2A0 0 0 pp2 B3A3 B2A2 B3A1 B3A0 0 0 0 PP3 6.sup.th order 5.sup.th order 4.sup.th order 3.sup.rd order 2.sup.nd order 1.sup.st order 0.sup.th order compressor compressor compressor compressor compressor compressor compressor
(26) With reference to
(27) As illustrated in
(28) The sum data signal (Sum) of the compressor cell 200 is either Cin or nCin, depending on the states of complementary MUX control/selection signals H and J. As illustrated in
(29) As illustrated in
(30) Multiple compressor cells 200 may be cascaded by providing the CiCout data signal of an Nth order compressor as the Cin data signal of an (N+1) order compressor. The respective Sum data signal output from each compressor cell will thus be the N order partial product bit sum, e.g., pp0+pp1+pp2+pp3.
(31) As discussed above, the input signals pp0, pp1, pp2, and pp3 are each generated by a respective NAND gate 214, 216, 218, and 220. It has been observed by the authors of the present disclosure that generating the input signals pp0, pp1, pp2, and pp3 using respective NAND gates results in less diffusion in the input signals, thereby decreasing the likelihood of signal error origination and propagation that otherwise may occur in response to differences among the input signals as a consequence of diffusion.
(32)
(33) As illustrated in
(34) The XOR/XNOR circuits 100, 302, and 304 may have circuit configurations that are the same as, or different from, one another. For example, in an embodiment of the compressor cell 300, XOR/XNOR circuit 100 has the configuration of XOR/XNOR circuit 100 of
(35)
(36) As illustrated in
(37) In some embodiments, any one or more of multiplexers 206, 210, 306, 310, 406, and/or 412 illustrated in
(38) In one example configuration, there is a compressor, comprising: a first logic gate having a first input terminal, a second input terminal, and a first output terminal, the first logic gate being configured to perform a NAND logic operation on a first multiplicand bit and a first multiplier bit received at, respectively, the first and second input terminals, and to output a first partial product bit at the first output terminal; and a first circuit having a third input terminal electrically coupled to the first output terminal of the first logic gate, wherein the first circuit is configured to perform an XOR logic operation on the first partial product bit and a second partial product bit to generate a resultant XOR logic operation bit.
(39) In another example configuration, there is a method, comprising: receiving a first multiplicand bit and a first multiplier bit; performing, with a first NAND circuit, a logic NAND operation on the first multiplicand bit and the first multiplier bit, to generate a first output bit; receiving a second multiplicand bit and a second multiplier bit; performing, with a second NAND circuit, a logic NAND operation on the second multiplicand bit and the second multiplier bit, to generate a second output bit; and performing a logic XOR operation with the first and second output bits to generate a first select signal.
(40) In a yet further example configuration, there is a logic circuit, comprising: a first input terminal for receiving a first operand; a first switch having a gate terminal electrically coupled to the first input terminal; a first output terminal electrically coupled to a first terminal of the first switch; and a second input terminal for receiving a second operand, and wherein the second input terminal is electrically coupled to a second terminal of the first switch.
(41) The foregoing outlines features of several embodiments so that those skilled in the art may better understand the aspects of the present disclosure. Those skilled in the art should appreciate that they may readily use the present disclosure as a basis for designing or modifying other processes and structures for carrying out the same purposes and/or achieving the same advantages of the embodiments introduced herein. Those skilled in the art should also realize that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that they may make various changes, substitutions, and alterations herein without departing from the spirit and scope of the present disclosure.