WO2021097765A1 - 一种乘法器及算子电路 - Google Patents
一种乘法器及算子电路 Download PDFInfo
- Publication number
- WO2021097765A1 WO2021097765A1 PCT/CN2019/119993 CN2019119993W WO2021097765A1 WO 2021097765 A1 WO2021097765 A1 WO 2021097765A1 CN 2019119993 W CN2019119993 W CN 2019119993W WO 2021097765 A1 WO2021097765 A1 WO 2021097765A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- transistor
- coupled
- node
- bit
- input
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/52—Multiplying; Dividing
- G06F7/523—Multiplying only
- G06F7/533—Reduction of the number of iteration steps or stages, e.g. using the Booth algorithm, log-sum, odd-even
- G06F7/5334—Reduction of the number of iteration steps or stages, e.g. using the Booth algorithm, log-sum, odd-even by using multiple bit scanning, i.e. by decoding groups of successive multiplier bits in order to select an appropriate precalculated multiple of the multiplicand as a partial product
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M7/00—Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
- H03M7/30—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M7/3066—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction by means of a mask or a bit-map
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/30—Circuit design
- G06F30/31—Design entry, e.g. editors specifically adapted for circuit design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/30—Circuit design
- G06F30/32—Circuit design at the digital level
- G06F30/327—Logic synthesis; Behaviour synthesis, e.g. mapping logic, HDL to netlist, high-level language to RTL or netlist
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/50—Adding; Subtracting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/50—Adding; Subtracting
- G06F7/501—Half or full adders, i.e. basic adder cells for one denomination
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/52—Multiplying; Dividing
- G06F7/523—Multiplying only
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/544—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices for evaluating functions by calculation
- G06F7/5443—Sum of products
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/30007—Arrangements for executing specific machine instructions to perform operations on data operands
- G06F9/3001—Arithmetic instructions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/06—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
- G06N3/063—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using electronic means
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M7/00—Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
- H03M7/30—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M7/60—General implementation details not specific to a particular type of compression
- H03M7/6011—Encoder aspects
Definitions
- This application relates to the field of electronic technology, in particular to a multiplier and an operator circuit.
- AI technology has been gradually popularized in communication equipment such as servers and terminals.
- AI technology is effective in communication equipment such as central processing unit (CPU) and neural network.
- the processing unit neural-network processing unit, NPU), image processing unit (graphics processing unit, GPU), or digital signal processor (digital signal processor, DSP) and other processors have high requirements for computing power.
- the multiplier is used as the processor.
- the core computing unit plays an increasingly important role.
- the existing multiplier architecture is designed based on standard encoders and standard adders, as shown in Figure 1.
- the specific design and implementation can be summarized into three steps: (1) Using the Radix-4 Booth algorithm in the Radix-4 Booth encoder The first value and the second value are encoded to obtain a partial product; (2) the partial product is compressed through the Wallace compression tree; (3) the two partial products obtained by the compression are summed to obtain the multiplication result.
- the first value and the second value are both 16-bit binary numbers, and the multiplication result is 32-bit binary numbers as an example.
- A[15:0] represents the first value
- b[15:0] represents the first value.
- Two values, y[31:0] represents the result of the multiplication operation.
- This application provides a multiplier and an operator circuit, which are used to reduce the difficulty of implementing the multiplier.
- this application adopts the following technical solutions:
- a multiplier for realizing the multiplication of a first value of M bits (bits) and a second value of N bits, where M and N are integers greater than 1, including: P groups of encoders And W-layer inverse compressor, each group of encoders in the P group of encoders includes N encoders, W is a positive integer, and P is an integer greater than 1; each group of encoders is used to adopt a positive phase encoding operator Or the inverse encoding operator encodes part of the bits in the second value, the group selection signal and the symbol control input signal corresponding to each group of encoders to obtain a partial product term, and the group selection signal and the symbol control input signal are based on Part of the bits in the first value are generated, and the P group of encoders encodes to obtain P partial product items; the W-layer inverted compressor is used to compress P partial product items using an inverted compression operator to obtain two accumulated values , The sum of the two accumulated values is the product of the first value and the second
- the P group encoder that uses the positive phase encoding operator or the inverted encoding operator for encoding and the W layer inverted compressor that uses the inverted compression operator for compression have relatively simple implementation solutions.
- this solution has the advantages of small area and low power consumption, so the multiplier has a small area and low power consumption.
- each of the N encoders corresponds to the first bit and the second bit in the second value
- the group selection signal includes the first signal and the second bit.
- each of the encoders is specifically used to encode the first bit, the second bit, the group selection signal, and the symbol control input signal using a positive phase coding operator or a reverse phase coding operator to obtain a partial product term An output bit; where the first bit and the second bit can be two adjacent bits in the second value, or the same bit in the second value.
- the encoder when an encoder adopts a positive-phase encoding operator, the encoder is a positive-phase encoder, and is specifically configured to perform the following encoding operations: if the first signal and the first bit If the bits are both 1, or the second signal and the second bit are both 1, the output bit obtained by the encoder is the inverse of the sign control input signal; if at least one of the first signal and the first bit is 0, and at least one of the second signal and the second bit is 0, the output bit obtained by the encoder is the sign control input signal.
- a positive-phase encoder is provided, and the implementation of the positive-phase encoder is relatively simple, such as small area and low power consumption.
- the encoder when an encoder adopts an inverted encoding operator, the encoder is an inverted encoder, and is specifically configured to perform the following encoding operations: if the first signal and the first signal If the bits are both 1, or the second signal and the second bit are both 1, the output bit obtained by the encoder is the sign control input signal; if at least one of the first signal and the first bit is 0, Moreover, at least one of the second signal and the second bit is 0, and the output bit obtained by the encoder is the inversion of the sign control input signal.
- an inverted encoder is provided.
- the implementation of the inverted encoder is relatively simple, such as small area and low power consumption.
- W is 1, the W-layer inverting compressor includes: a first layer of inverting compressor; a first layer of inverting compressor, used to follow the order from low to high Sequentially, each digit in the array of P partial product items is compressed using an inverse compression operator until the remaining bits corresponding to each digit are less than three, and the first compressed array is obtained.
- the first compressed array includes two Each row corresponds to an accumulated value; the compression of each digit is performed for every three bits on the digit; each row in the array of P partial product items includes a partial product item, and each column includes The P partial product items correspond to multiple bits of the same digit.
- the provided inverting compressor has high compression efficiency.
- W is an integer greater than 1
- the W-layer inverting compressor includes: the first layer inverting compressor to the W-th layer inverting compressor; the first layer inverting compression The device is used to compress each digit in the array of P partial product items in sequence from the low digit to the high digit using the inverse compression operator until the remaining bits corresponding to each digit are less than three, to obtain The first compression array; the i-th layer inverted compressor, used to sequentially compress each digit in the i-1th compressed array using an inverted compression operator from low digits to high digits, until each digit corresponds to The remaining bits are less than three, and the i-th compressed array is obtained.
- the value of i ranges from 2 to W in turn; the W-th compressed array includes two rows, and each row corresponds to an accumulated value.
- each layer of inverting compressor pairs each The compression of a number of digits is performed on the three bits of the digit; each row in the array of P partial product terms includes a partial product term, and each column includes multiple P partial product terms corresponding to the same digit. Bits.
- the provided W-layer inverting compressor has high compression efficiency.
- each inverted compressor is specifically used to perform the following compression: if the three bits are all 0, then carry The output bit is 1, and the current summation output bit is 1. If the three bits are all 1, the carry output bit is 0, and the current summation output bit is 0; if there is one of the three bits, it is 1. If the other two bits are 0, the carry output bit is 1, and the current sum output bit is 0; if two of the three bits are 1, the other bit is 0, then the carry The output bit is 0, and the current sum output bit is 1.
- a simple and effective compression method of the inverting compressor is provided.
- the phase of the encoding operator adopted by the encoder corresponding to the same digit is related to the phase of the current sum output bit or carry output bit output by the inverting compressor; where the same
- the encoder corresponding to a digit refers to an encoder that obtains the output bit corresponding to the same digit by encoding
- the inverting compressor corresponding to the same digit refers to an inverting compressor that compresses three bits of the same digit.
- the multiplier further includes: one or more inverters, which are used to determine the current output of one or more inverting compressors in the W-layer inverting compressor. Invert the phase of the output bit and the carry output bit, or invert the phase of at least one of the three bits input to one or more inverting compressors.
- the compression efficiency of the W-layer inverse compressor can be improved while ensuring the accuracy of the compression result.
- the multiplier further includes: a precoder, configured to receive the first value, and generate a group selection signal and a sign control input signal according to some bits in the first value.
- the multiplier further includes: an adder, configured to receive two accumulated values and sum the two accumulated values to obtain a product.
- an operator circuit including: a first transistor, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a sixth transistor, a seventh transistor, an eighth transistor, a ninth transistor, and a Tenth transistor, eleventh transistor, twelfth transistor, thirteenth transistor, fourteenth transistor and fifteenth transistor; wherein the first transistor and the second transistor are coupled in parallel between the power supply terminal and the first node; The third transistor and the fourth transistor are coupled in parallel between the first node and the second node; the fifth transistor and the seventh transistor are coupled in series between the second node and the ground terminal; the sixth transistor and the eighth transistor are coupled in series on the second node.
- the control terminals of the third transistor and the fifth transistor are used to receive the first input; the control terminals of the first transistor and the sixth transistor are used to receive the second input; the control of the fourth transistor and the seventh transistor The control terminal of the second transistor and the control terminal of the eighth transistor are used to receive the fourth input; the ninth transistor is coupled between the inverting terminal and the output terminal of the fifth input, and the control terminal of the ninth transistor is coupled to The second node; the tenth transistor is coupled between the second node and the output terminal, the control terminal of the tenth transistor is coupled to the inverted phase of the fifth input; the eleventh transistor and the thirteenth transistor are coupled in series at the output terminal and the ground terminal The control terminal of the eleventh transistor is coupled to the second node; the control terminal of the thirteenth transistor is used to receive the inverted phase of the fifth input; the twelfth transistor is coupled between the output terminal and the second node, and the tenth transistor is The control terminals of the two transistors are used to receive the fifth
- a positive-phase encoding operator circuit is provided.
- the number of transistors in the positive-phase encoding operator circuit is small, the occupied area is small, and the implementation is simple, so that when the operator circuit is applied to a multiplier, it can be reduced.
- the area of the small multiplier is provided.
- the first transistor, the second transistor, the third transistor, the fourth transistor, the ninth transistor, the tenth transistor, and the fourteenth transistor are P-type MOS (PMOS) transistors;
- the fifth, sixth, seventh, eighth, eleventh, twelfth, thirteenth, and fifteenth transistors are N-type MOS (NMOS) transistors.
- the provided operator circuit has a smaller turnover rate of the transistor when encoding data, so that the power consumption of the multiplier can be reduced when the operator circuit is applied to the multiplier.
- an operator circuit including: a first transistor, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a sixth transistor, a seventh transistor, an eighth transistor, a ninth transistor, and a Tenth transistor, eleventh transistor, twelfth transistor, thirteenth transistor, fourteenth transistor and fifteenth transistor; wherein the first transistor and the second transistor are coupled in parallel between the power supply terminal and the first node; The third transistor and the fourth transistor are coupled in parallel between the first node and the second node; the fifth transistor and the seventh transistor are coupled in series between the second node and the ground terminal; the sixth transistor and the eighth transistor are coupled in series on the second node.
- the control terminals of the third transistor and the fifth transistor are used to receive the first input; the control terminals of the first transistor and the sixth transistor are used to receive the second input; the control of the fourth transistor and the seventh transistor
- the terminal is used to receive the third input; the control terminals of the second transistor and the eighth transistor are used to receive the fourth input; the ninth transistor and the tenth transistor are coupled in series between the power terminal and the output terminal, and the control terminal of the ninth transistor is coupled
- the control terminal of the tenth transistor is coupled to the second node;
- the eleventh transistor is coupled between the second node and the output terminal, and the control terminal of the eleventh transistor is coupled to the fifth input;
- Two transistors are coupled between the output terminal and the inverted phase of the fifth input, the control terminal of the twelfth transistor is coupled to the second node;
- the thirteenth transistor is coupled between the output terminal and the second node, and the control of the thirteenth transistor is The fourteenth transistor and the fifteenth transistor are coupled in series
- an inverted encoding operator circuit in which the number of transistors in the inverted encoding operator circuit is small, the occupied area is small, and the implementation is simple, so that when the operator circuit is applied to a multiplier, it can be reduced. The area of the small multiplier.
- the first transistor, the second transistor, the third transistor, the fourth transistor, the ninth transistor, the tenth transistor, the eleventh transistor, and the fourteenth transistor are PMOS transistors;
- the fifth transistor, the sixth transistor, the seventh transistor, the eighth transistor, the twelfth transistor, the thirteenth transistor, and the fifteenth transistor are NMOS transistors.
- the provided operator circuit has a smaller turnover rate of the transistor when encoding data, so that the power consumption of the multiplier can be reduced when the operator circuit is applied to the multiplier.
- an operator circuit including: a first transistor, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a sixth transistor, a seventh transistor, an eighth transistor, a ninth transistor, and a Tenth Transistor, Eleventh Transistor, Twelfth Transistor, Thirteenth Transistor, Fourteenth Transistor, Fifteenth Transistor, Sixteenth Transistor, Seventeenth Transistor, Eighteenth Transistor, Nineteenth Transistor, Second Ten transistors, twenty-first transistors, and twenty-second transistors; wherein the first transistor and the second transistor are coupled in parallel between the power supply terminal and the first node; the third transistor is coupled between the first node and the first output terminal The fourth transistor is coupled between the first output terminal and the second node; the fifth transistor and the sixth transistor are coupled in parallel between the second node and the ground terminal; the seventh transistor is coupled between the power terminal and the third node The eighth transistor is coupled between the third node and the first output
- the sixth transistor and the seventeenth transistor are coupled in parallel between the power terminal and the fifth node; the eighteenth transistor is coupled between the fifth node and the second output terminal; the nineteenth transistor is coupled between the second output terminal and the sixth node Between; the twentieth transistor, the twenty-first transistor and the twenty-second transistor are coupled in parallel between the sixth node and the ground terminal; the third transistor, the fourth transistor, the twelfth transistor, the thirteenth transistor, and the The control terminals of the fifteenth transistor and the twentieth transistor are used to receive the first input; the control terminals of the first transistor, the fifth transistor, the seventh transistor, the tenth transistor, the sixteenth transistor, and the twenty-first transistor are used to receive Second input; the control terminals of the second transistor, the sixth transistor, the eighth transistor, the ninth transistor, the eleventh transistor, the fourteenth transistor, the seventeenth transistor, and the twenty-second transistor are used to receive the third input; The control terminals of the eighteenth transistor and the nineteenth transistor are coupled to the first output terminal.
- an inverted compression operator circuit in which the number of transistors in the inverted compression operator circuit is small, the occupied area is small, and the implementation is simple, so that when the operator circuit is applied to a multiplier, it can be reduced.
- the area of the small multiplier is provided, in which the number of transistors in the inverted compression operator circuit is small, the occupied area is small, and the implementation is simple, so that when the operator circuit is applied to a multiplier, it can be reduced. The area of the small multiplier.
- Sixth, seventeenth, and eighteenth transistors are PMOS transistors; fourth, fifth, sixth, ninth, tenth, thirteenth, fourteenth, and nineteenth transistors
- the twentieth transistor, the twenty-first transistor, and the twenty-second transistor are NMOS transistors.
- the provided operator circuit compresses data when the transistor has a low turnover rate, so that when the operator circuit is applied to the multiplier, the power consumption of the multiplier can be reduced.
- a processor including a multiplier or an operator circuit; wherein, the multiplier is the multiplier provided in the foregoing first aspect or any possible implementation manner of the first aspect, and the operator circuit An operator circuit provided for any possible implementation manner of the second aspect to the fourth aspect, or the second aspect to the fourth aspect.
- the processor includes a neural network processing unit.
- a chip including a multiplier or an operator circuit; wherein the multiplier is the multiplier provided in the first aspect or any possible implementation of the first aspect, and the operator circuit is The operator circuit provided by the foregoing second aspect to the fourth aspect, or any possible implementation manner of the second aspect to the fourth aspect.
- any processor or chip provided above includes the multiplier or operator circuit provided above. Therefore, the beneficial effects it can achieve can refer to the multiplier or operator circuit provided above. The beneficial effects in the process will not be repeated here.
- Fig. 1 is an architecture diagram of a multiplier provided in the prior art
- FIG. 2 is a schematic structural diagram of a communication device provided by an embodiment of this application.
- FIG. 3 is a schematic structural diagram of a multiplier provided by an embodiment of the application.
- Fig. 4 is a logical block diagram of a positive phase encoder provided by an embodiment of the application.
- Fig. 5 is a logical block diagram of an inverted encoder provided by an embodiment of the application.
- FIG. 6 is a diagram of a compression example of a W-layer inverting compressor provided by an embodiment of the application.
- FIG. 7 is a logic block diagram of an inverting compressor provided by an embodiment of the application.
- FIG. 8 is an example diagram of a precoder and an encoder provided by an embodiment of this application.
- FIG. 9 is a compression example diagram of another W-layer inverting compressor provided by an embodiment of the application.
- FIG. 10 is a circuit diagram of a positive phase encoder provided by an embodiment of the application.
- FIG. 11 is a circuit diagram of an inverting encoder provided by an embodiment of the application.
- FIG. 12 is a circuit diagram of an inverting compressor provided by an embodiment of the application.
- At least one refers to one or more, and “multiple” refers to two or more.
- And/or describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
- the following at least one item (a) or similar expressions refers to any combination of these items, including any combination of a single item (a) or a plurality of items (a).
- At least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple .
- the embodiments of the present application use words such as “first” and “second” to distinguish objects with similar names or functions or functions. Those skilled in the art can understand the words “first”, “second” and the like. There is no limit to the number and execution order.
- the term “coupling” is used to indicate electrical connection, including direct connection through wires or connecting ends or indirect connection through other devices. Therefore, “coupling” should be regarded as an electronic communication connection in a broad sense.
- FIG. 2 is a schematic structural diagram of a communication device provided by an embodiment of the application.
- the communication device may be a terminal, a server, or the like.
- the communication device may include a memory 201, a processor 202, a communication interface 203, and a bus 204.
- the memory 201, the processor 202, and the communication interface 203 are connected to each other through a bus 204.
- the memory 201 can be used to store data, software programs, and modules, and mainly includes a storage program area and a storage data area.
- the storage program area can store an operating system, at least one application program required by a function, etc., and the storage data area can store the usage time of the device. The created data, etc.
- the processor 202 is used to control and manage the actions of the communication device, for example, by running or executing software programs and/or modules stored in the memory 201, and calling data stored in the memory 201 to perform various functions of the device And processing data.
- the communication interface 203 is used to support the device to communicate.
- the processor 202 includes, but is not limited to, a central processing unit (Central Processing Unit, CPU), a network processing unit (Network Processing Unit, NPU), a graphics processing unit (Graphics Processing Unit, GPU), or a digital signal processor (Digital Signal Processing Unit, GPU). Processor, DSP) or general-purpose processor, etc.
- the processor 202 includes one or more multipliers, such as an array of multipliers, and the multiplier is a device that implements a multiplication operation in the processor 202.
- the bus 204 may be a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- the bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 2, but it does not mean that there is only one bus or one type of bus.
- FIG. 3 is a schematic structural diagram of a multiplier provided by an embodiment of the application.
- the multiplier is used to multiply a first value of M bits and a second value of N bits, M and N Is an integer greater than 1.
- the multiplier includes: P precoders 301, P group encoders 302, W layer inverse compressor 303, and adder 304.
- Each group of encoders 3021 in P group encoders 302 includes N codes W is a positive integer, and P is an integer greater than 1. This multiplier is simpler to implement than the traditional design, which will be described in detail below.
- Each precoder 3011 of the P precoders 301 is used to generate a group selection signal and a symbol control input signal according to some bits in the first value, so that the P precoders 301 correspondingly generate P group selection signals And P symbols control the input signal.
- P group selection signals and P symbol control input signals correspond to the P group of encoders one-to-one, that is, one group selection signal and one symbol control input signal correspond to a group of encoders.
- the group selection signal can be generated based on two or three adjacent bits in the first value, and the sign control input signal can be one bit in the first value, or it can be based on two adjacent bits in the first value. One or three bits.
- the first value is a binary number of 4 bits and expressed as a[3:0]
- P is equal to 2
- 2 precoders can generate 2 group selection signals and 2 symbol control inputs according to a[3:0] signal.
- the first group selection signal can be generated based on a[0] and a[1]
- the second group selection signal can be generated based on a[1] to a[3].
- the first symbol control input signal can be a[1]
- the second symbol control input signal can be a[3].
- the above a[i] represents the i-th bit from right to left in a[3:0], and the value of i ranges from 0 to 3.
- Each group of encoders 3021 is used to encode the second value, the group selection signal and the sign control input signal corresponding to the group of encoders by adopting the positive phase coding operator or the reverse phase coding operator to obtain a partial product term, P group coding
- the encoder obtains P partial product terms.
- each group of encoders 3021 includes N encoders, each of the N encoders corresponds to the first bit and the second bit in the second value, and the group selection signal includes the first signal and the second signal. ; Then each encoder can be specifically used to: use a positive-phase coding operator or a reverse-phase coding operator to encode the first bit, the second bit, the group selection signal, and the symbol control input signal of the encoder to obtain a partial product One output bit of the item.
- the N encoders in each group of encoders 3021 respectively encode the N output bits of a partial product term, that is, the partial product term is obtained.
- the first bit and the second bit may be two adjacent bits in the second value, or the same bit in the second value, which will be described in more detail in subsequent embodiments.
- each group of encoders 3021 includes 3 encoders.
- the first encoder corresponds to the two adjacent bits in b[2:0], b[0] and b[1]
- the second encoder corresponds to b[2:0]
- the first and second bits corresponding to the third encoder are both b[2] in b[2:0], That is, the last third encoder only inputs one bit b[2] as the first bit and the second bit at the same time.
- the above b[i] represents the i-th bit from right to left in b[2:0].
- the first encoder in the first group of codes corresponds to the second value b[2:0]
- the adjacent two bits are b[0] and b[1]
- the corresponding group selection signal is the first group selection signal (represented as A and B) generated according to a[0] and a[1], corresponding
- the symbol control input signal is a[1]
- the first encoder can be specifically used to encode b[0], b[1], A, B, and a using a positive-phase coding operator or a reverse-phase coding operator [1], get 1 output bit in the first partial product term.
- the encoder when an encoder adopts a positive phase encoding operator, the encoder may be called a positive phase encoder; when an encoder adopts an inverted encoding operator, the encoder may be called an inverted encoder.
- the positive phase encoder and the reverse phase encoder are a detailed description of the positive phase encoder and the reverse phase encoder.
- the positive-phase encoder is specifically used to perform the following encoding operations: if the first signal and the first bit are both 1, or the second signal and the second bit are both 1, then the output bit obtained by the positive-phase encoder is The sign controls the inversion of the input signal; if at least one of the first signal and the first bit is 0, and at least one of the second signal and the second bit is 0, the output bit obtained by the positive phase encoder Bit is the sign control input signal.
- Fig. 4 is a logical block diagram of a positive phase encoder provided by an embodiment of the application.
- the logical block diagram includes an encoding gating unit, an inversion unit, and a switch control unit.
- the function of the code gating unit is: if A and Sel_A are 1 at the same time, or B and Sel_B are 1 at the same time, then output 1, otherwise output 0; the function of the inversion unit is: take the output of the code gating unit On the contrary; the function of the switch control unit is: if the output of the inversion unit is 1, output S, if the output of the inversion unit is 0, output /S.
- A represents the first signal
- B represents the second signal
- Sel_A represents the first bit
- Sel_B represents the second bit
- S represents the sign control input signal
- /S represents the inversion of the sign control input signal
- the positive phase encoder can be encoded according to the logic table shown in Table 1 below.
- the x in Table 1 represents any one of "0” or “1”, and A, B, Sel_A, Sel_B, S And OUT are consistent with A, B, Sel_A, Sel_B, S, and OUT in Figure 4.
- a Sel_A B Sel_B S OUT 1 1 x x 0 1 1 1 x x 1 0 x x 1 1 0 1 x x 1 1 1 0 0 x 0 x 0 0 0 x 0 x 1 1 x 0 x 0 0 0 x 0 x 0 1 1 1
- the inverted encoder is specifically used to perform the following encoding operations: if the first signal and the first bit are both 1, or the second signal and the second bit are both 1, then the output bit obtained by the inverted encoder Is a sign control input signal; if at least one of the first signal and the first bit is 0, and at least one of the second signal and the second bit is 0, the output bit obtained by the inverted encoder is The sign controls the inversion of the input signal.
- FIG. 5 is a logic block diagram of an inverting encoder provided by an embodiment of the application.
- the logic block diagram includes an encoding gating unit, an inversion unit, and a switch control unit.
- the function of the code gating unit is: if A and Sel_A are 1 at the same time or B and Sel_B are 1 at the same time, then output 1, otherwise output 0; the function of the inversion unit is: take the output of the code gating unit On the contrary; the function of the switch control unit is: if the output of the inversion unit is 0, output S, if the output of the inversion unit is 1, output /S.
- A represents the first signal
- B represents the second signal
- Sel_A represents the first bit
- Sel_B represents the second bit
- S represents the sign control input signal
- /S represents the inversion of the sign control input signal
- the inverted encoder can be specifically encoded according to the logic table shown in Table 2 below, where x in Table 2 represents either "0" or "1", A, B, Sel_A, Sel_B, S and OUT is consistent with A, B, Sel_A, Sel_B, S, and OUT in Figure 5.
- the W-layer inverting compressor 303 is used for compressing P partial product terms using an inverting compression operator to obtain two accumulated values.
- the W-layer inverting compressor 303 includes: a first-layer inverting compressor for sequentially arranging each digit in the array of P partial product items in order from low digits to high digits
- the inverse compression operator is used to compress until the remaining bits corresponding to each digit are less than three, and a first compressed array including two rows is obtained, and each row corresponds to an accumulated value.
- the W-layer inverting compressor 303 includes: the first layer of inverting compressor to the W-th layer of inverting compressor; the first layer of inverting compressor, used to follow the order from low to high In the order of digits, each digit in the array of P partial product items is compressed by an inverse compression operator until the remaining bits corresponding to each digit are less than three to obtain the first compressed array; the i-th layer is inverted Compressor, used to compress each digit in the i-1th compressed array in the order from low digit to high digit using an inverse compression operator until each digit corresponds to less than three remaining bits, and the first digit is obtained.
- the i compressed array the value of i ranges from 2 to W in turn, the W-th compressed array includes two rows, and each row corresponds to an accumulated value.
- each row in the array of P partial product items includes a partial product item, and each column includes multiple bits corresponding to the same digit in the P partial product items.
- the compression of each digit is for the three bits on the digit
- each row in the array of P partial product items includes a partial product item, and each column includes multiple bits corresponding to the same digit in the P partial product items.
- the array of these 8 partial product terms can be shown in Figure 6 (a), PP[ 1] to PP[8] respectively represent 8 partial product terms, and 2 0 , 2 1 , 2 1 ,..., 2 32 represent different digits.
- the digits refer to the output result of the W-layer inverting compressor. Similar to the ones, tens, or hundreds in decimal system, this digit is used to represent a bit in the binary value of the output result.
- the output result of the W-layer inverting compressor is a 32-bit binary number, and the output result includes 32 Digits.
- bits correspond to 0 or 1, indicating a binary information. It can be considered that one digit is one bit in the output result of the W-layer inverse compressor.
- FIG. 6 is converted into (b) in FIG. 6 to illustrate the compression process of each layer of inverting compressor in the W layer inverting compressor 303.
- the bits corresponding to other digits other than 24 to 22 are also reserved for less than three bits.
- Each solid rectangular box in (b) in Figure 6 can be used to indicate An inverting compressor in the first layer of inverting compressor.
- the first compressed array compressed by the first layer of inverting compressor is shown in Figure 6(c).
- the bits corresponding to each digit in 2 23 and 2 26 are compressed every three bits, and less than three bits are reserved. Except for 2 6 to 2 23 and 2 26 , other digits correspond to Bits less than three bits are also reserved.
- Each rectangular box in (c) in Figure 6 can be used to indicate an inverting compressor in the second layer of inverting compressor, and the second layer of inverting compressor compressing
- the obtained second compressed array is shown in (d) in Figure 6, where Indicates the current sum output bit output by the second layer inverting compressor, and ⁇ represents the carry output bit output by the second layer inverting compressor.
- the subsequent specific compression process from the third layer inverted compressor to the Wth layer inverted compressor is similar to the specific compression process of the first layer inverted compressor and the second layer inverted compressor described above, and the embodiments of the present application will not be described here. Repeat it again.
- each inverting compressor is specifically used to perform the following compression: if the three bits are all 0, the carry output bit is 1, and the current sum output bit is 1; If the three bits are all 1, the carry output bit is 0, and the current sum output bit is 0; if one of the three bits is 1, the other two are 0, then The carry output bit is 1, and the current sum output bit is 0; if two of the three bits are 1, and the other bit is 0, the carry output bit is 0, and the current sum output bit is 1.
- the carry output bit refers to the output bit pointing to the next digit of the current compressed digit
- the current sum output bit refers to the output bit after the current compressed digit is compressed. For example, suppose that the current compressed digit is 2 5 , the next digit of the current compressed digit is 2 6 , and the three bits of 25 are all 0. After compression, 25 corresponds to 1 1 , 2 6 corresponds to a 1.
- FIG. 7 is a logical block diagram of an inverting compressor provided by an embodiment of the application.
- the logical block diagram includes an inverted carry output unit and an inverted sum output unit.
- the function of the inverted carry output unit is: if at least 2 of Ai, Bi and Ci are valid (valid can be 1, or 0), the output is invalid (if valid is 1, invalid is 0, if valid If it is 0, it is invalid as 1), otherwise the output is valid.
- the function of the inverted summation output unit is: if 2 of Ai, Bi and Ci are valid or all are invalid, the output is valid, otherwise the output is invalid.
- the nCip1 input to the inverted summation output unit can be used when it is valid.
- Ai, Bi, and Ci in the above FIG. 7 respectively represent the three input bits, nCip1 represents the carry output bit, and nSi represents the current sum output bit. That is, each layer of inverting compressor can be specifically compressed according to the logic table shown in Table 3 below.
- Table 3 Ai, Bi, and Ci respectively represent the three input bits, and nCip1 represents the carry output bit. nSi represents the current sum output bit.
- the multiplier may also include: one or more inverters, which are used to calculate the current sum output bit and carry output bit output by one or more inverted compressors in the W-layer inverted compressor 303 Invert the phase, or invert the phase of at least one of the three bits input to the one or more inverting compressors.
- the W-layer inverting compressor 303 may include a multilayer inverting compressor, and each layer of the multilayer inverting compressor may include at least one inverting compressor, and the output phase of each inverting compressor can be adjusted according to requirements. Set, and the output phase of each inverting compressor is opposite to the input phase, so that the input phase of each inverting compressor is also set.
- the output phase of an inverting compressor can refer to the phases of the current sum output bit and carry output bit output by the inverting compressor, and the phases of the current sum output bit and carry output bit are the same , That is, the same is normal phase or reverse phase.
- the input phase of an inverting compressor may refer to the set phase of the three bits input to the inverting compressor, and the set phases of the three bits are the same, that is, the same is positive. Phase or reverse.
- the one or more inverters can be used to reverse the one or more inverting compressors.
- the phase of the current sum output bit and the carry output bit of the compressor output is reversed to make it consistent with the set output phase.
- the one or more inverters can be used to The phase of at least one of the three bits of the one or more inverting compressors is reversed to make it consistent with the set input phase.
- the output phase of at least one inverting compressor included in each layer of inverting compressors can be set as follows: the output phase of the inverting compressor of the last layer is set to the positive phase and the reciprocal The output phase of the second layer of inverting compressor is set to reverse, the output phase of the third-to-last layer of inverting compressor is set to normal phase, ..., and so on, until the first layer of inverting compressor is set The output phase.
- the first layer of inverting compressor here can refer to the top layer of inverting compressor when compressing multiple bits corresponding to each digit in the order from top to bottom, and the second layer of inverting compressor can Refers to the inverting compressor at the next upper level,..., and so on.
- the W-layer inverting compressor 303 includes a 4-layer inverting compressor, and it can be set as follows: the output phase of the fourth-layer inverting compressor is set to the normal phase, and the output of the third-layer inverting compressor The phase is set to reverse phase, the output phase of the second layer reverse compressor is set to normal phase, and the output phase of the first layer reverse compressor is set to reverse.
- the inverter can be adjusted locally.
- the output phase of the phase compressor is set to reduce the number of inverters required. For example, when the output phase set by a certain inverting compressor is positive (the input phase set by the inverting compressor at this time is inverted), if the output phase of the inverting compressor itself is positive , And the phases of the three bits input to the inverting compressor are also positive, then the inverting compressor requires three inverters to invert the phases of the three bits.
- the inverting compressor only needs two inverters to invert the output phase of the two output bits (that is, the current sum output bit and the carry output bit) to meet the set output phase and input phase requirements.
- phase of the encoding operator adopted by at least one of the encoders in the P group of encoders 302 is the same as the phase of the current sum output bit or carry output bit output by the at least one layer of inverting compressor in the W layer inverting compressor 303 related.
- the phase of the encoding operator adopted by each encoder in the at least one encoder is set to be the same as the input phase of the inverting compressor connected to itself.
- the phase of the encoding operator adopted by each encoder can be normal phase or reverse phase.
- the encoder When the phase of the encoding operator adopted by an encoder is positive (that is, the positive phase encoding operator is used), the encoder is the above-mentioned positive encoder; when the phase of the encoding operator adopted by an encoder is reversed ( That is, when the inverted coding operator is used, the encoder is the above-mentioned inverted encoder.
- the adder 304 is configured to receive the above two accumulated values and sum the two accumulated values to obtain the product. After the W-layer inverting compressor 303 compresses the P partial product terms to obtain the two accumulated values, the W-layer inverting compressor 303 can send the two accumulated values to the adder 304, and the adder 304 receives the two accumulated values. When there are two accumulated values, the product of the first value and the second value can be obtained by summing the two accumulated values.
- the multiplier described in the present application will be illustrated by taking the first value as a[10:0] and the second value as b[12:0] as an example below.
- the multiplier may include 6 precoders, 6 sets of encoders, and 3 layers of inverting compressors.
- the first precoder is used to generate group selection signals S0 and S1 and the symbol control input signal a[1] according to a[0] and a[1];
- the second precoder is used to generate group selection signals S0 and S1 according to a[1] , A[2] and a[3] generate group selection signals S2 and S3, and a symbol control input signal a[3];
- the third precoder is used according to a[3], a[4] and a[5] Generate group selection signals S4 and S5, and symbol control input signal a[5];
- the fourth precoder is used to generate group selection signals S6 and S7, and symbols according to a[5], a[6], and a[7] Control input signal a[7];
- the fifth precoder is used to generate group selection signals S8 and S9 and symbol control input signal a[9] according to a[7], a[8] and a[9];
- a precoder is
- the first group of encoders are used to encode b[12:0], S0, S1, and a[1] to obtain the first partial product term PP[1];
- the second group of encoders are used to encode b[12:0 ], S2, S3 and a[3] to get the second partial product term PP[2];
- the third group of encoders are used to encode b[12:0], S4, S5 and a[5] to get the third Partial product term PP[3];
- the fourth group of encoders are used to encode b[12:0], S6, S7 and a[7] to get the fourth partial product term PP[4];
- the fifth group of encoders are used for encoding b[12:0], S8, S9 and a[9], get the fifth partial product term PP[5];
- the sixth group of encoders are used to encode b[12:0], S10 and S_11, get the sixth Partial product term PP[
- each encoder in each group of encoders is used to encode one bit or two bits in b[12:0], as well as the corresponding group selection signal and symbol control input signal.
- Figure 8 Shown.
- the arrangement array corresponding to the six partial product terms PP[1] to PP[6] can be shown in Fig. 9.
- the W-layer inverting compressor 303 in the above multiplier it can be achieved by 3-layer inverting
- the compressor compresses the arrangement array shown in FIG. 9, and the detailed compression process is similar to the related description in FIG. 6, and details are not repeated in the embodiment of the present application.
- the P precoders may include precoders with different structures.
- the first precoder in FIG. 8 includes a NOT gate and an AND gate
- the second to fifth precoders The encoder includes XOR gate, XOR gate and NOR gate
- the sixth precoder includes XOR gate and AND gate.
- the first encoder of the same group of encoders in the embodiment of the present application may have a different structure from other encoders, and the structure of encoders of different groups may also be different, for example, the first to fifth groups of encoders in FIG. 8
- the first encoder includes AND gates and XOR gates
- the second to thirteenth encoders are positive-phase encoders or inverted encoders
- each encoder in the sixth group of encoders includes AND gates and XOR gates. .
- PP[1]_i in Figure 8 (the value range of i is 1 to 14) represents the i-th bit of the first partial product term PP[1], A represents the first signal, and B Represents the second signal, Sel_A represents the first bit, Sel_B represents the second bit, S represents the sign control input signal, and OUT represents the output bit.
- FIG. 10 is a schematic structural diagram of a positive phase encoding operator circuit provided by an embodiment of the application.
- the positive phase encoding operator circuit may also be referred to as a positive phase encoder.
- the positive phase encoder includes: a first transistor M1, a second transistor M2, a third transistor M3, a fourth transistor M4, a fifth transistor M5, a sixth transistor M6, a seventh transistor M7, an eighth transistor M8, and a ninth transistor M9, the tenth transistor M10, the eleventh transistor M11, the twelfth transistor M12, the thirteenth transistor M13, the fourteenth transistor M14, and the fifteenth transistor M15.
- the first transistor M1 and the second transistor M2 are coupled in parallel between the power supply terminal and the first node 1; the third transistor M3 and the fourth transistor M4 are coupled in parallel between the first node 1 and the second node 2;
- the transistor M5 and the seventh transistor M7 are coupled in series between the second node 2 and the ground terminal; the sixth transistor M6 and the eighth transistor M8 are coupled in series between the second node 2 and the ground terminal.
- the control ends of the third transistor M3 and the fifth transistor M5 are used to receive the first input A; the control ends of the first transistor M1 and the sixth transistor M6 are used to receive the second input Sel_A; the control ends of the fourth transistor M4 and the seventh transistor M7 The control terminal is used to receive the third input B; the control terminals of the second transistor M2 and the eighth transistor M8 are used to receive the fourth input Sel_B.
- the ninth transistor M9 is coupled between the inverted /S of the fifth input S and the output terminal OUT, the control terminal of the ninth transistor M9 is coupled to the second node 2, the signal of the second node 2 is /Y; the tenth transistor M10 Coupled between the second node 2 and the output terminal OUT, the control terminal of the tenth transistor M10 is coupled to the inverted /S of the fifth input S; the eleventh transistor M11 and the thirteenth transistor M13 are coupled in series at the output terminal OUT and Between ground terminals.
- the control terminal of the eleventh transistor M11 is coupled to the second node 2; the control terminal of the thirteenth transistor M13 is used to receive the inverted /S of the fifth input S; the twelfth transistor M12 is coupled to the output terminal OUT and the second node During 2, the control terminal of the twelfth transistor M12 is used to receive the fifth input S; the fourteenth transistor M14 and the fifteenth transistor M15 are coupled in series between the power supply terminal and the ground terminal, and the fourteenth transistor M14 and the tenth transistor M15 are connected in series.
- the series coupling node of the five transistor M15 is coupled to the inverted /S of the fifth input S; the control ends of the fourteenth transistor M14 and the fifteenth transistor M15 are used to receive the fifth input S.
- the first input A to the fifth input S may be the first signal, the first bit, the second signal, and the first signal in the related description of the positive phase encoder in the multiplier embodiment. Two bits and symbols control the input signal.
- the first transistor M1, the second transistor M2, the third transistor M3, the fourth transistor M4, the ninth transistor M9, the tenth transistor M10, and the fourteenth transistor M14 are PMOS transistors; the fifth transistor M5 and the sixth transistor M14 are PMOS transistors.
- the transistor M6, the seventh transistor M7, the eighth transistor M8, the eleventh transistor M11, the twelfth transistor M12, the thirteenth transistor M13, and the fifteenth transistor M15 are NMOS transistors.
- the aforementioned control terminal may specifically refer to the gate of the corresponding PMOS transistor or NMOS transistor.
- the first transistor M1 to the fifteenth transistor M15 in the above example may be MOS transistors, or may be replaced by bipolar transistors.
- the types of the transistors shown in FIG. 10 are only exemplary, and It does not limit the embodiments of this application.
- FIG. 11 is a schematic structural diagram of an inverted encoding operator circuit provided by an embodiment of the application.
- the inverted encoding operator circuit may also be referred to as an inverted encoder.
- the inverting encoder includes: a first transistor M1, a second transistor M2, a third transistor M3, a fourth transistor M4, a fifth transistor M5, a sixth transistor M6, a seventh transistor M7, an eighth transistor M8, and a ninth transistor M9, the tenth transistor M10, the eleventh transistor M11, the twelfth transistor M12, the thirteenth transistor M13, the fourteenth transistor M14, and the fifteenth transistor M15.
- the first transistor M1 and the second transistor M2 are coupled in parallel between the power supply terminal and the first node 1; the third transistor M3 and the fourth transistor M4 are coupled in parallel between the first node 1 and the second node 2;
- the transistor M5 and the seventh transistor M7 are coupled in series between the second node 2 and the ground terminal; the sixth transistor M6 and the eighth transistor M8 are coupled in series between the second node 2 and the ground terminal; the third transistor M3 and the fifth transistor
- the control terminal of M5 is used to receive the first input A; the control terminals of the first transistor M1 and the sixth transistor M6 are used to receive the second input Sel_A; the control terminals of the fourth transistor M4 and the seventh transistor M7 are used to receive the third input B;
- the control terminals of the second transistor M2 and the eighth transistor M8 are used to receive the fourth input Sel_B.
- the ninth transistor M9 and the tenth transistor M10 are coupled in series between the power terminal and the output terminal OUT, the control terminal of the ninth transistor M9 is coupled to the inverted /S of the fifth input S, and the control terminal of the tenth transistor M10 is coupled to the first
- the signal of the second node 2, the second node 2 is /Y
- the eleventh transistor M11 is coupled between the second node 2 and the output terminal OUT, and the control terminal of the eleventh transistor M11 is coupled to the fifth input S
- the transistor M12 is coupled between the output terminal OUT and the inverted /S of the fifth input S, the control terminal of the twelfth transistor M12 is coupled to the second node 2
- the thirteenth transistor M13 is coupled between the output terminal OUT and the second node 2 In between, the control terminal of the thirteenth transistor M13 is coupled to the inverted /S of the fifth input S
- the fourteenth transistor M14 and the fifteenth transistor M15 are coupled in series between the power terminal and the ground terminal,
- the first input A to the fifth input S may be the first signal, the first bit, the second signal, and the first signal in the related description of the inverted encoder in the above multiplier embodiment. Two bits and symbols control the input signal.
- the first transistor M1, the second transistor M2, the third transistor M3, the fourth transistor M4, the ninth transistor M9, the tenth transistor M10, the eleventh transistor M11, and the fourteenth transistor M14 are PMOS transistors;
- the fifth transistor M5, the sixth transistor M6, the seventh transistor M7, the eighth transistor M8, the twelfth transistor M12, the thirteenth transistor M13, and the fifteenth transistor M15 are NMOS transistors.
- the aforementioned control terminal may specifically refer to the gate of the corresponding PMOS transistor or NMOS transistor.
- the first transistor M1 to the fifteenth transistor M15 in the above example can be MOS transistors, or can be replaced by bipolar transistors.
- the types of the transistors shown in FIG. 11 are only exemplary, and It does not limit the embodiments of this application.
- FIG. 12 is a schematic structural diagram of an inverting compression operator circuit provided by an embodiment of the application.
- the inverting compression operator circuit may also be referred to as an inverting compressor.
- the inverting compressor includes: a first transistor M1, a second transistor M2, a third transistor M3, a fourth transistor M4, a fifth transistor M5, a sixth transistor M6, a seventh transistor M7, an eighth transistor M8, and a ninth transistor M9, tenth transistor M10, eleventh transistor M11, twelfth transistor M12, thirteenth transistor M13, fourteenth transistor M14, fifteenth transistor M15, sixteenth transistor M16, seventeenth transistor M17, An eighteenth transistor M18, a nineteenth transistor M19, a twentieth transistor M20, a twenty-first transistor M21, and a twenty-second transistor M22.
- the first transistor M1 and the second transistor M2 are coupled in parallel between the power supply terminal and the first node 1; the third transistor M3 is coupled between the first node 1 and the first output terminal nCip1; the fourth transistor M4 is coupled between the first node 1 and the first output terminal nCip1.
- the eleventh transistor M11 and the twelfth transistor M12 are coupled in series between the third node 3 and the second output terminal nSi; the thirteenth transistor M13 and the fourteenth transistor M14 are coupled in series at the second output terminal nSi And the fourth node 4; the fifteenth transistor M15, the sixteenth transistor M16, and the seventeenth transistor M17 are coupled in parallel between the power terminal and the fifth node 5; the eighteenth transistor M18 is coupled between the fifth node 5 and Between the second output
- the control terminals of the third transistor M3, the fourth transistor M4, the twelfth transistor M12, the thirteenth transistor M13, the fifteenth transistor M15, and the twentieth transistor M20 are used to receive the first input Ai;
- the control terminals of the five transistor M5, the seventh transistor M7, the tenth transistor M10, the sixteenth transistor M16, and the twenty-first transistor M21 are used to receive the second input Bi;
- the control terminals of M8, the ninth transistor M9, the eleventh transistor M11, the fourteenth transistor M14, the seventeenth transistor M17, and the twenty-second transistor M22 are used to receive the third input Ci;
- the control terminal of the nine transistor M19 is coupled to the first output terminal nCip1.
- the first input Ai, the second input Bi, and the third input Ci may be the three bits in the related description of the inverting compressor in the above multiplier embodiment, and the first output The terminal nCip1 may be used to output the carry output bit of the inverting compressor, and the second output terminal nSi may be used to output the current sum output bit of the inverting compressor.
- the transistor M16, the seventeenth transistor M17, and the eighteenth transistor M18 are PMOS transistors;
- the fourteenth transistor M14, the nineteenth transistor M19, the twentieth transistor M20, the twenty-first transistor M21, and the twenty-second transistor M22 are NMOS transistors.
- the aforementioned control terminal may specifically refer to the gate of the corresponding PMOS transistor or NMOS transistor.
- the first transistor M1 to the twenty-second transistor M22 in the above examples can be MOS transistors, or bipolar transistors can be used instead.
- the types of the transistors shown in FIG. 12 are only exemplary, and It does not limit the embodiments of this application.
- the embodiment of this application compares the multipliers using the positive phase encoder, the inverted encoder and the inverted compressor provided above with the existing multipliers based on the standard encoder and the standard adder, as shown in Table 4 below. As shown in Table 5, as an embodiment of the present application, it is not limited to the following specific parameter values.
- the number of transistors used by each standard encoder is 22, the occupied area is 0.2736, and the area gain is 1.18.
- the number of transistors used by each positive-phase encoder or inverted encoder is 15, and the occupied area is Is 0.23256, the area gain is 1, the number of transistors used by each standard adder is 28, the occupied area is 0.2736, the area gain is 1.10, the number of transistors used by each inverting compressor is 24, the occupied area is 0.24816, the area gain Is 1. Therefore, the area of the multiplier provided by the embodiment of the present application is small.
- the standard encoder has 4 flips per bit of data encoded, the static power consumption is 0.44522, the gain from static power consumption is 1.18, the gain from dynamic power consumption is 1.09, the positive phase encoder or the reverse phase encoder
- Each encoded 1bit data is flipped 3 times, the static power consumption is 0.4084, the static power consumption and the dynamic power consumption are both 1, and the standard adder is flipped 4 times for each compressed 1bit data, the static power consumption is 0.57685, and the static power consumption gains are 1.10.
- the gain of dynamic power consumption is 1.80.
- the inverting compressor flips twice for each bit of data compressed, the static power consumption is 0.32122, and the gains of static power consumption and dynamic power consumption are both 1. Therefore, the power consumption of the multiplier provided in the embodiment of the present application is small.
- the encoder in the multiplier provided by the embodiment of the application is encoded by using a positive phase encoding operator or an inverted encoding operator, that is, the multiplier uses a positive phase encoder or an inverted encoder for encoding, and the compressor uses
- the inverting compressor performs compression, and its implementation is relatively simple. For example, it can reduce the number of MOS transistors in the multiplier, thereby reducing the area of the multiplier.
- the corresponding encoder or compressor has a small number of flips, so that the power consumption of the multiplier is small.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Evolutionary Computation (AREA)
- Biomedical Technology (AREA)
- Health & Medical Sciences (AREA)
- Biophysics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Geometry (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Neurology (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Complex Calculations (AREA)
Abstract
Description
A | Sel_A | B | Sel_B | S | OUT |
1 | 1 | x | x | 0 | 1 |
1 | 1 | x | x | 1 | 0 |
x | x | 1 | 1 | 0 | 1 |
x | x | 1 | 1 | 1 | 0 |
0 | x | 0 | x | 0 | 0 |
0 | x | 0 | x | 1 | 1 |
x | 0 | x | 0 | 0 | 0 |
x | 0 | x | 0 | 1 | 1 |
A | Sel_A | B | Sel_B | S | OUT |
1 | 1 | x | x | 0 | 0 |
1 | 1 | x | x | 1 | 1 |
x | x | 1 | 1 | 0 | 0 |
x | x | 1 | 1 | 1 | 1 |
0 | x | 0 | x | 0 | 1 |
0 | x | 0 | x | 1 | 0 |
x | 0 | x | 0 | 0 | 1 |
x | 0 | x | 0 | 1 | 0 |
Ai | Bi | Ci | nCip1 | nSi |
0 | 0 | 0 | 1 | 1 |
0 | 0 | 1 | 1 | 0 |
0 | 1 | 0 | 1 | 0 |
0 | 1 | 1 | 0 | 1 |
1 | 0 | 0 | 1 | 0 |
1 | 0 | 1 | 0 | 1 |
1 | 1 | 0 | 0 | 1 |
1 | 1 | 1 | 0 | 0 |
Claims (17)
- 一种乘法器,其特征在于,用于实现M比特位的第一数值与N比特位的第二数值的相乘,M和N是大于1的整数,包括:P组编码器和W层反相压缩器,所述P组编码器中的每组编码器包括N个编码器,W是正整数,P是大于1的整数;所述每组编码器,用于采用正相编码算子或者反相编码算子编码所述第二数值中的部分比特位、对应于所述每组编码器的组选择信号和符号控制输入信号以得到一个部分积项,所述组选择信号和所述符号控制输入信号是根据所述第一数值中的部分比特位产生的,所述P组编码器编码得到P个部分积项;所述W层反相压缩器,用于采用反相压缩算子压缩所述P个部分积项,得到两个累加值,所述两个累加值之和为所述第一数值与所述第二数值的乘积。
- 根据权利要求1所述的乘法器,其特征在于,所述N个编码器中每个编码器对应所述第二数值中的第一比特位和第二比特位,所述组选择信号包括第一信号和第二信号;所述每个编码器,具体用于:采用正相编码算子或者反相编码算子编码所述第一比特位、所述第二比特位、所述组选择信号和所述符号控制输入信号得到一个部分积项的一个输出比特位。
- 根据权利要求2所述的乘法器,其特征在于,当一个编码器采用正相编码算子时,该编码器是正相编码器,且具体用于执行如下编码操作:若所述第一信号和所述第一比特位均为1、或者所述第二信号和所述第二比特位均为1,则该编码器得到的所述输出比特位为所述符号控制输入信号的反相;若所述第一信号和所述第一比特位中的至少一个为0、而且所述第二信号和所述第二比特位中的至少一个为0,则该编码器得到的所述输出比特位为所述符号控制输入信号。
- 根据权利要求2所述的乘法器,其特征在于,当一个编码器采用反相编码算子时,该编码器是反相编码器,且具体用于执行如下编码操作:若所述第一信号和所述第一比特位均为1、或者所述第二信号和所述第二比特位均为1,则该编码器得到的所述输出比特位为所述符号控制输入信号;若所述第一信号和所述第一比特位中的至少一个为0、而且所述第二信号和所述第二比特位中的至少一个为0,则该编码器得到的所述输出比特位为所述符号控制输入信号的反相。
- 根据权利要求1-4任一项所述的乘法器,其特征在于,W为1,所述W层反相压缩器包括:第一层反相压缩器;所述第一层反相压缩器,用于按照从低数位到高数位顺序依次对所述P个部分积项的排列阵列中每个数位采用所述反相压缩算子进行压缩,直到每个数位对应的剩余比特位少于三个,得到包括两行的第一压缩阵列,每行对应一个累加值;对每个数位的压缩是针对该数位上的每三个比特位进行的;所述P个部分积项的排列阵列中的每行包括一个部分积项,每列包括所述P个部分积项中对应同一数位的多个比特位。
- 根据权利要求1-4任一项所述的乘法器,其特征在于,W是大于1的整数,所 述W层反相压缩器包括:第一层反相压缩器至第W层反相压缩器;所述第一层反相压缩器,用于按照从低数位到高数位顺序依次对所述P个部分积项的排列阵列中每个数位采用所述反相压缩算子进行压缩,直到每个数位对应的剩余比特位少于三个,得到第一压缩阵列;所述第i层反相压缩器,用于按照从低数位到高数位顺序依次对第i-1压缩阵列中每个数位采用所述反相压缩算子进行压缩,直到每个数位对应的剩余比特位少于三个,得到第i压缩阵列,i的取值范围依次从2至W;所述第W压缩阵列包括两行,每行对应一个累加值;其中,每层反相压缩器对每个数位的压缩是针对该数位上的三个比特位进行的;所述P个部分积项的排列阵列中的每行包括一个部分积项,每列包括所述P个部分积项中对应同一数位的多个比特位。
- 根据权利要求5或6所述的乘法器,其特征在于,对每个数位的三个比特位,每个反相压缩器具体用于进行以下压缩:若所述三个比特位均为0,则进位输出位为1,当前求和输出位为1;若所述三个比特位均为1,则进位输出位为0,当前求和输出位为0;若所述三个比特位中存在一个比特位为1、另外两个比特位为0,则进位输出位为1,当前求和输出位为0;若所述三个比特位中存在两个比特位为1、另外一个比特位为0,则进位输出位为0,当前求和输出位为1。
- 根据权利要求7所述的乘法器,其特征在于,同一数位对应的编码器采用的编码算子的相位与反相压缩器输出的当前求和输出位或进位输出位的相位有关;其中,该同一数位对应的编码器是指编码得到该同一数位对应的输出比特位的编码器,该同一数位对应的反相压缩器是指压缩该同一数位的三个比特位的反相压缩器。
- 根据权利要求8所述的乘法器,其特征在于,所述乘法器还包括:一个或多个反相器,用于对所述W层反相压缩器中的一个或多个反相压缩器输出的当前求和输出位和进位输出位的相位取反、或对输入所述一个或多个反相压缩器的所述三个比特位中至少一个比特位的相位取反。
- 根据权利要求1-9任一项所述的乘法器,其特征在于,所述乘法器还包括:预编码器,用于接收所述第一数值,并根据所述第一数值中的所述部分比特位产生所述组选择信号和所述符号控制输入信号。
- 根据权利要求1-10任一项所述的乘法器,其特征在于,所述乘法器还包括:加法器,用于接收所述两个累加值,并对所述两个累加值求和以得到所述乘积。
- 一种算子电路,其特征在于,包括:第一晶体管、第二晶体管、第三晶体管、第四晶体管、第五晶体管、第六晶体管、第七晶体管、第八晶体管、第九晶体管、第十晶体管、第十一晶体管、第十二晶体管、第十三晶体管、第十四晶体管和第十五晶体管;其中,所述第一晶体管和所述第二晶体管并联耦合在电源端和第一节点之间;所述第三晶体管和所述第四晶体管并联耦合在所述第一节点和第二节点之间;所述第五晶体管和所述第七晶体管串联耦合在所述第二节点和接地端之间;所述第六晶体管和所述第八晶体管串联耦合在所述第二节点和所述接地端之间;所述第三晶体管和所述第五晶体管的控制端用于接收第一输入;所述第一晶体管和所述第六晶体管的控制端用于接收第二输入;所述第四晶体管和所述第七晶体管的控制端用于接收第三输入;所述第二晶体管和所述第八晶体管的控制端用于接收第四输入;所述第九晶体管耦合在第五输入的反相和输出端之间,所述第九晶体管的控制端耦合于所述第二节点;所述第十晶体管耦合在所述第二节点和所述输出端之间,所述第十晶体管的控制端耦合于所述第五输入的反相;所述第十一晶体管和所述第十三晶体管串联耦合在所述输出端和所述接地端之间;所述第十一晶体管的控制端耦合于所述第二节点;所述第十三晶体管的控制端用于接收所述第五输入的反相;所述第十二晶体管耦合在所述输出端和所述第二节点之间,所述第十二晶体管的控制端用于接收所述第五输入;所述第十四晶体管和所述第十五晶体管串联耦合在所述电源端和所述接地端之间,所述第十四晶体管和所述第十五晶体管的串联耦合节点耦合于所述第五输入的反相;所述第十四晶体管和所述第十五晶体管的控制端用于接收所述第五输入。
- 根据权利要求12所述的算子电路,其特征在于,所述第一晶体管、所述第二晶体管、所述第三晶体管、所述第四晶体管、所述第九晶体管、所述第十晶体管和所述第十四晶体管是PMOS晶体管;所述第五晶体管、所述第六晶体管、所述第七晶体管、所述第八晶体管、所述第十一晶体管、所述第十二晶体管、所述第十三晶体管和所述第十五晶体管是NMOS晶体管。
- 一种算子电路,其特征在于,包括:第一晶体管、第二晶体管、第三晶体管、第四晶体管、第五晶体管、第六晶体管、第七晶体管、第八晶体管、第九晶体管、第十晶体管、第十一晶体管、第十二晶体管、第十三晶体管、第十四晶体管和第十五晶体管;其中,所述第一晶体管和所述第二晶体管并联耦合在电源端和第一节点之间;所述第三晶体管和所述第四晶体管并联耦合在所述第一节点和第二节点之间;所述第五晶体管和所述第七晶体管串联耦合在所述第二节点和接地端之间;所述第六晶体管和所述第八晶体管串联耦合在所述第二节点和所述接地端之间;所述第三晶体管和所述第五晶体管的控制端用于接收第一输入;所述第一晶体管和所述第六晶体管的控制端用于接收第二输入;所述第四晶体管和所述第七晶体管的控制端用于接收第三输入;所述第二晶体管和所述第八晶体管的控制端用于接收第四输入;所述第九晶体管和所述第十晶体管串联耦合在所述电源端和输出端之间,所述第九晶体管的控制端耦合于第五输入的反相,所述第十晶体管的控制端耦合于所述第二 节点;所述第十一晶体管耦合在所述第二节点与所述输出端之间,所述第十一晶体管的控制端耦合于所述第五输入;所述第十二晶体管耦合在所述输出端和所述第五输入的反相之间,所述第十二晶体管的控制端耦合于所述第二节点;所述第十三晶体管耦合在所述输出端和所述第二节点之间,所述第十三晶体管的控制端耦合于所述第五输入的反相;所述第十四晶体管和所述第十五晶体管串联耦合在所述电源端和所述接地端之间,所述第十四晶体管和所述第十五晶体管的串联耦合节点耦合于所述第五输入的反相;所述第十四晶体管和所述第十五晶体管的控制端用于接收所述第五输入。
- 根据权利要求14所述的算子电路,其特征在于,所述第一晶体管、所述第二晶体管、所述第三晶体管、所述第四晶体管、所述第九晶体管、所述第十晶体管、所述第十一晶体管和所述第十四晶体管是PMOS晶体管;所述第五晶体管、所述第六晶体管、所述第七晶体管、所述第八晶体管、所述第十二晶体管、所述第十三晶体管和所述第十五晶体管是NMOS晶体管。
- 一种算子电路,其特征在于,包括:第一晶体管、第二晶体管、第三晶体管、第四晶体管、第五晶体管、第六晶体管、第七晶体管、第八晶体管、第九晶体管、第十晶体管、第十一晶体管、第十二晶体管、第十三晶体管、第十四晶体管、第十五晶体管、第十六晶体管、第十七晶体管、第十八晶体管、第十九晶体管、第二十晶体管、第二十一晶体管和第二十二晶体管;其中,所述第一晶体管和所述第二晶体管并联耦合在电源端和第一节点之间;所述第三晶体管耦合在所述第一节点和第一输出端之间;所述第四晶体管耦合在所述第一输出端和第二节点之间;所述第五晶体管和所述第六晶体管并联耦合在所述第二节点和接地端之间;所述第七晶体管耦合在所述电源端和第三节点之间;所述第八晶体管耦合在所述第三节点和所述第一输出端之间;所述第九晶体管耦合在所述第一输出端和第四节点之间;所述第十晶体管耦合在所述第四节点和所述接地端之间;所述第十一晶体管和所述第十二晶体管串联耦合在所述第三节点和第二输出端之间;所述第十三晶体管和所述第十四晶体管串联耦合在所述第二输出端和所述第四节点之间;所述第十五晶体管、所述第十六晶体管和所述第十七晶体管并联耦合在所述电源端和第五节点之间;所述第十八晶体管耦合在所述第五节点与所述第二输出端之间;所述第十九晶体管耦合在所述第二输出端与第六节点之间;所述第二十晶体管、所述第二十一晶体管和所述第二十二晶体管并联耦合在所述第六节点与所述接地端之间;所述第三晶体管、所述第四晶体管、所述第十二晶体管、所述第十三晶体管、所述第十五晶体管和所述第二十晶体管的控制端用于接收第一输入;所述第一晶体管、所述第五晶体管、所述第七晶体管、所述第十晶体管、所述第十六晶体管和所述第二十一晶体管的控制端用于接收第二输入;所述第二晶体管、所述第六晶体管、所述第八晶体管、所述第九晶体管、所述第十一晶体管、所述第十四晶体管、所述第十七晶体管和所述第二十二晶体管的控制端用于接收第三输入;所述第十八晶体管和所述第十九晶体管的控制端耦合于所述第一输出端。
- 根据权利要求16所述的算子电路,其特征在于,所述第一晶体管、所述第二晶体管、所述第三晶体管、所述第七晶体管、所述第八晶体管、所述第十一晶体管、所述第十二晶体管、所述第十五晶体管、所述第十六晶体管、所述第十七晶体管和所述第十八晶体管是PMOS晶体管;所述第四晶体管、所述第五晶体管、所述第六晶体管、所述第九晶体管、所述第十晶体管、所述第十三晶体管、所述第十四晶体管、所述第十九晶体管、所述第二十晶体管、所述第二十一晶体管和所述第二十二晶体管是NMOS晶体管。
Priority Applications (8)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022529732A JP7371255B2 (ja) | 2019-11-21 | 2019-11-21 | 乗算器及びオペレータ回路 |
KR1020227015465A KR102676098B1 (ko) | 2019-11-21 | 2019-11-21 | 곱셈기 및 연산자 회로 |
CN202111075411.3A CN113946312A (zh) | 2019-11-21 | 2019-11-21 | 一种乘法器及算子电路 |
CN201980006794.3A CN113227963B (zh) | 2019-11-21 | 2019-11-21 | 一种乘法器及算子电路 |
PCT/CN2019/119993 WO2021097765A1 (zh) | 2019-11-21 | 2019-11-21 | 一种乘法器及算子电路 |
BR112022007427A BR112022007427A2 (pt) | 2019-11-21 | 2019-11-21 | Multiplicador e circuito operador |
EP19953180.7A EP4030277A4 (en) | 2019-11-21 | 2019-11-21 | MULTIPLIER AND OPERATOR CIRCUIT |
US17/750,299 US11855661B2 (en) | 2019-11-21 | 2022-05-21 | Multiplier and operator circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/119993 WO2021097765A1 (zh) | 2019-11-21 | 2019-11-21 | 一种乘法器及算子电路 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/750,299 Continuation US11855661B2 (en) | 2019-11-21 | 2022-05-21 | Multiplier and operator circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021097765A1 true WO2021097765A1 (zh) | 2021-05-27 |
Family
ID=75980379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/119993 WO2021097765A1 (zh) | 2019-11-21 | 2019-11-21 | 一种乘法器及算子电路 |
Country Status (7)
Country | Link |
---|---|
US (1) | US11855661B2 (zh) |
EP (1) | EP4030277A4 (zh) |
JP (1) | JP7371255B2 (zh) |
KR (1) | KR102676098B1 (zh) |
CN (2) | CN113227963B (zh) |
BR (1) | BR112022007427A2 (zh) |
WO (1) | WO2021097765A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023015442A1 (zh) * | 2021-08-10 | 2023-02-16 | 华为技术有限公司 | 一种乘法器 |
EP4336345A4 (en) * | 2021-07-30 | 2024-10-02 | Huawei Tech Co Ltd | ACCUMULATOR, MULTIPLIER AND OPERATOR CIRCUIT |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6877022B1 (en) * | 2001-02-16 | 2005-04-05 | Texas Instruments Incorporated | Booth encoding circuit for a multiplier of a multiply-accumulate module |
US20150193203A1 (en) * | 2014-01-07 | 2015-07-09 | Nvidia Corporation | Efficiency in a fused floating-point multiply-add unit |
CN107977191A (zh) * | 2016-10-21 | 2018-05-01 | 中国科学院微电子研究所 | 一种低功耗并行乘法器 |
CN110058840A (zh) * | 2019-03-27 | 2019-07-26 | 西安理工大学 | 一种基于4-Booth编码的低功耗乘法器 |
Family Cites Families (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
NL179619C (nl) * | 1974-04-18 | 1987-05-18 | Philips Nv | Digitale signaalverwerkingsinrichting voor het realiseren van een vooraf bepaalde overdrachtskarakteristiek. |
US4153938A (en) * | 1977-08-18 | 1979-05-08 | Monolithic Memories Inc. | High speed combinatorial digital multiplier |
US4730340A (en) * | 1980-10-31 | 1988-03-08 | Harris Corp. | Programmable time invariant coherent spread symbol correlator |
JP3153370B2 (ja) * | 1993-01-14 | 2001-04-09 | 三菱電機株式会社 | 乗算装置 |
US6195392B1 (en) * | 1998-06-30 | 2001-02-27 | U.S. Philips Corporation | Method and arrangement for generating program clock reference values (PCRS) in MPEG bitstreams |
KR20010019352A (ko) * | 1999-08-26 | 2001-03-15 | 윤종용 | 곱셈기의 압축기 |
JP4177125B2 (ja) | 2003-01-22 | 2008-11-05 | 三菱電機株式会社 | 演算装置及び演算装置の演算方法 |
US7028068B1 (en) * | 2003-02-04 | 2006-04-11 | Advanced Micro Devices, Inc. | Alternate phase dual compression-tree multiplier |
US8064520B2 (en) * | 2003-09-07 | 2011-11-22 | Microsoft Corporation | Advanced bi-directional predictive coding of interlaced video |
US20110064214A1 (en) * | 2003-09-09 | 2011-03-17 | Ternarylogic Llc | Methods and Apparatus in Alternate Finite Field Based Coders and Decoders |
US8577026B2 (en) * | 2010-12-29 | 2013-11-05 | Ternarylogic Llc | Methods and apparatus in alternate finite field based coders and decoders |
US20140055290A1 (en) * | 2003-09-09 | 2014-02-27 | Peter Lablans | Methods and Apparatus in Alternate Finite Field Based Coders and Decoders |
CN100405288C (zh) * | 2004-05-27 | 2008-07-23 | 扬智科技股份有限公司 | 乘法器的符号延伸方法及结构 |
JP4988627B2 (ja) | 2008-03-05 | 2012-08-01 | ルネサスエレクトロニクス株式会社 | フィルタ演算器及び動き補償装置 |
JP5456766B2 (ja) * | 2008-05-12 | 2014-04-02 | クゥアルコム・インコーポレイテッド | プログラム可能なプロセッサにおける随意選択的なガロア域計算の実行 |
US10003342B2 (en) * | 2014-12-02 | 2018-06-19 | Taiwan Semiconductor Manufacturing Company, Ltd. | Compressor circuit and compressor circuit layout |
US10002219B2 (en) | 2015-03-25 | 2018-06-19 | Samsung Electronics Co., Ltd. | Method for placing parallel multiplier |
US9876488B2 (en) * | 2015-11-02 | 2018-01-23 | Mediatek Inc. | Flip-flop circuit with data-driven clock |
-
2019
- 2019-11-21 JP JP2022529732A patent/JP7371255B2/ja active Active
- 2019-11-21 CN CN201980006794.3A patent/CN113227963B/zh active Active
- 2019-11-21 EP EP19953180.7A patent/EP4030277A4/en active Pending
- 2019-11-21 CN CN202111075411.3A patent/CN113946312A/zh active Pending
- 2019-11-21 BR BR112022007427A patent/BR112022007427A2/pt unknown
- 2019-11-21 KR KR1020227015465A patent/KR102676098B1/ko active IP Right Grant
- 2019-11-21 WO PCT/CN2019/119993 patent/WO2021097765A1/zh unknown
-
2022
- 2022-05-21 US US17/750,299 patent/US11855661B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6877022B1 (en) * | 2001-02-16 | 2005-04-05 | Texas Instruments Incorporated | Booth encoding circuit for a multiplier of a multiply-accumulate module |
US20150193203A1 (en) * | 2014-01-07 | 2015-07-09 | Nvidia Corporation | Efficiency in a fused floating-point multiply-add unit |
CN107977191A (zh) * | 2016-10-21 | 2018-05-01 | 中国科学院微电子研究所 | 一种低功耗并行乘法器 |
CN110058840A (zh) * | 2019-03-27 | 2019-07-26 | 西安理工大学 | 一种基于4-Booth编码的低功耗乘法器 |
Non-Patent Citations (2)
Title |
---|
ASADI POOYA: "A New network multiplier using modified high order encoder and optimized hybrid adder in CMOS technology", INFORMATION SCIENCES LETTERS, vol. 2, no. 3, 1 September 2013 (2013-09-01), pages 159 - 164, XP055813313, ISSN: 2090-9551, DOI: 10.12785/isl/020305 * |
WU MEI-QI , ZHAO HONG-LIANG , LIU XING-HUI , KANG DA-WEI , LI WEI: "A design of multiplier based on modified Booth-4 algorithm and Wallace tree", ELECTRONIC DESIGN ENGINEERING, vol. 27, no. 16, 24 May 2019 (2019-05-24), pages 145 - 150, XP055813311, ISSN: 1674-6236, DOI: 10.14022/j.cnki.dzsjgc.20190523.001 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4336345A4 (en) * | 2021-07-30 | 2024-10-02 | Huawei Tech Co Ltd | ACCUMULATOR, MULTIPLIER AND OPERATOR CIRCUIT |
WO2023015442A1 (zh) * | 2021-08-10 | 2023-02-16 | 华为技术有限公司 | 一种乘法器 |
EP4336346A4 (en) * | 2021-08-10 | 2024-07-10 | Huawei Tech Co Ltd | MULTIPLIER |
Also Published As
Publication number | Publication date |
---|---|
US11855661B2 (en) | 2023-12-26 |
JP2023503119A (ja) | 2023-01-26 |
BR112022007427A2 (pt) | 2022-07-12 |
JP7371255B2 (ja) | 2023-10-30 |
CN113227963A (zh) | 2021-08-06 |
CN113946312A (zh) | 2022-01-18 |
EP4030277A4 (en) | 2023-01-11 |
CN113227963B (zh) | 2024-05-17 |
KR102676098B1 (ko) | 2024-06-19 |
KR20220074965A (ko) | 2022-06-03 |
EP4030277A1 (en) | 2022-07-20 |
US20220294468A1 (en) | 2022-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107977191B (zh) | 一种低功耗并行乘法器 | |
Dandapat et al. | A 1.2-ns16× 16-bit binary multiplier using high speed compressors | |
Rao et al. | A high speed and area efficient Booth recoded Wallace tree multiplier for fast arithmetic circuits | |
US11855661B2 (en) | Multiplier and operator circuit | |
CN111008003B (zh) | 数据处理器、方法、芯片及电子设备 | |
CN110515587B (zh) | 乘法器、数据处理方法、芯片及电子设备 | |
CN110531954B (zh) | 乘法器、数据处理方法、芯片及电子设备 | |
CN112764712B (zh) | 一种高性能近似Booth乘法器及计算方法 | |
WO2023004783A1 (zh) | 一种累加器、乘法器及算子电路 | |
CN209879493U (zh) | 乘法器 | |
Al-Khaleel et al. | Fast binary/decimal adder/subtractor with a novel correction-free BCD addition | |
Vaithiyanathan et al. | Performance Analysis of 8-Point Approximate DCT Architecture Using Conventional and Hybrid Adders | |
CN113031911B (zh) | 乘法器、数据处理方法、装置及芯片 | |
CN113033799B (zh) | 数据处理器、方法、装置及芯片 | |
CN110515586B (zh) | 乘法器、数据处理方法、芯片及电子设备 | |
CN110647307B (zh) | 数据处理器、方法、芯片及电子设备 | |
Saha et al. | 4: 2 and 5: 2 Decimal Compressors | |
Shin et al. | A 200-MHz complex number multiplier using redundant binary arithmetic | |
CN113033788B (zh) | 数据处理器、方法、装置及芯片 | |
JPH07160476A (ja) | 部分積生成回路 | |
Hsiao et al. | Low-cost design of reciprocal function units using shared multipliers and adders for polynomial approximation and Newton Raphson interpolation | |
WO2023015442A1 (zh) | 一种乘法器 | |
CN113031909B (zh) | 数据处理器、方法、装置及芯片 | |
CN110378478B (zh) | 乘法器、数据处理方法、芯片及电子设备 | |
CN113031918B (zh) | 数据处理器、方法、装置及芯片 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19953180 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2019953180 Country of ref document: EP Effective date: 20220411 |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112022007427 Country of ref document: BR |
|
ENP | Entry into the national phase |
Ref document number: 20227015465 Country of ref document: KR Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2022529732 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 112022007427 Country of ref document: BR Kind code of ref document: A2 Effective date: 20220418 |