[go: up one dir, main page]

CN115935878A - Multi-bit data computing circuit, chip and computing device based on analog signal - Google Patents

Multi-bit data computing circuit, chip and computing device based on analog signal Download PDF

Info

Publication number
CN115935878A
CN115935878A CN202310014794.6A CN202310014794A CN115935878A CN 115935878 A CN115935878 A CN 115935878A CN 202310014794 A CN202310014794 A CN 202310014794A CN 115935878 A CN115935878 A CN 115935878A
Authority
CN
China
Prior art keywords
calculation
adding unit
unit
unit group
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310014794.6A
Other languages
Chinese (zh)
Other versions
CN115935878B (en
Inventor
马松
吴强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Houmo Intelligent Technology Co ltd
Original Assignee
Shanghai Houmo Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Houmo Intelligent Technology Co ltd filed Critical Shanghai Houmo Intelligent Technology Co ltd
Priority to CN202310014794.6A priority Critical patent/CN115935878B/en
Publication of CN115935878A publication Critical patent/CN115935878A/en
Application granted granted Critical
Publication of CN115935878B publication Critical patent/CN115935878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

The embodiment of the disclosure discloses a multi-bit data calculation circuit, a chip and a calculation device based on analog signals, wherein the circuit comprises: a preset number of computing unit groups and a preset number of adding unit groups; for each computing unit group in a preset number of computing unit groups, the computing unit group corresponds to the target adding unit group and has corresponding accumulated weight, and the output end of each computing unit is connected with the input end of the corresponding adding unit; the target addition unit group is used for distributing corresponding digit weight for each calculation unit in the calculation unit group, accumulating the calculation result signals output by each calculation unit according to the corresponding digit weight, and outputting the accumulation result signals through the signal output end of the addition unit group; the addition unit groups in the preset number of addition unit groups each comprise different proportion relations of characteristic metric values of the addition units. The embodiment of the disclosure is beneficial to reducing the area and power consumption of the whole computing circuit.

Description

基于模拟信号的多比特数据计算电路、芯片及计算装置Multi-bit data computing circuit, chip and computing device based on analog signal

技术领域technical field

本公开涉及集成电路设计技术领域,尤其是一种基于模拟信号的多比特数据计算电路、芯片及计算装置。The present disclosure relates to the technical field of integrated circuit design, in particular to a multi-bit data computing circuit, chip and computing device based on analog signals.

背景技术Background technique

基于模拟信号域的存算一体阵列,对于乘累加(MAC,Multiply Accumulate)运算具有重要作用,该种计算方式常应用于深度神经网络算法中,用于执行密集的乘累加运算,且该种计算方式具有高并行度和低功耗的优势。模拟信号域的信号包括电流域、电荷域和时间域等。目前在存算一体阵列中常用的模拟信号为电荷域信号,这是因为在集成电路中电容的加工精度较高,相较于其他两种模拟信号,使用电容实现的电荷域的计算方法具有较好的线性度。The integrated storage and calculation array based on the analog signal domain plays an important role in the multiply-accumulate (MAC, Multiply Accumulate) operation. This calculation method is often used in deep neural network algorithms to perform intensive multiply-accumulate operations, and this calculation The method has the advantages of high parallelism and low power consumption. Signals in the analog signal domain include current domain, charge domain, and time domain. At present, the commonly used analog signal in the storage and calculation integrated array is the charge domain signal. This is because the processing precision of the capacitor in the integrated circuit is high. Compared with the other two analog signals, the calculation method of the charge domain using the capacitor has a relatively good linearity.

目前采用的包含电容的电荷域乘累加方案,每个单比特存储数据(例如神经网络场景下的权重数据中的一个比特位)对应的多个电容的容值均按照1:2:4:8……的比例关系分布,这样,根据电容分压的原理,实现了同一单比特存储数据与多比特输入数据的每个单比特位相乘后,再按照对应权重实现乘积的叠加。The currently adopted charge-domain multiplication-accumulation scheme including capacitors, the capacitance values of multiple capacitors corresponding to each single-bit storage data (such as a bit in the weight data in the neural network scenario) are in accordance with 1:2:4:8 ..., so that, according to the principle of capacitive voltage division, the same single-bit stored data is multiplied by each single-bit of the multi-bit input data, and then superposition of the products is realized according to the corresponding weight.

发明内容Contents of the invention

本公开的实施例提供了一种基于模拟信号的多比特数据计算电路,该电路包括:预设数量个计算单元组和预设数量个加法单元组;对于预设数量个计算单元组中的每个计算单元组,该计算单元组对应于目标加法单元组,并具有对应的累加权重,该计算单元组中的每个计算单元的输出端与对应的加法单元的输入端连接;目标加法单元组用于为该计算单元组中的每个计算单元分配对应的数位权重,并对每个计算单元输出的计算结果信号按照对应的数位权重进行累加,将累加结果信号经过该加法单元组的信号输出端输出,其中,每个计算单元对应的数位权重基于目标加法单元组中的每个加法单元的特性度量值和累加权重确定;预设数量个加法单元组中的每个加法单元组包括的各个加法单元的特性度量值的比例关系不同。An embodiment of the present disclosure provides a multi-bit data computing circuit based on an analog signal, the circuit includes: a preset number of computing unit groups and a preset number of adding unit groups; for each of the preset number of computing unit groups A calculation unit group, the calculation unit group corresponds to the target addition unit group, and has a corresponding cumulative weight, the output end of each calculation unit in the calculation unit group is connected to the input end of the corresponding addition unit; the target addition unit group It is used to assign a corresponding digital weight to each computing unit in the computing unit group, and accumulate the calculation result signal output by each computing unit according to the corresponding digital weight, and output the accumulated result signal through the signal of the adding unit group Terminal output, wherein, the digital weight corresponding to each calculation unit is determined based on the characteristic measurement value and cumulative weight of each addition unit in the target addition unit group; each addition unit group in the preset number of addition unit groups includes each The scaling relationship of the characteristic measures of the summing unit is different.

在一些实施例中,该电路还包括预设数量个模数转换器、移位累加器,其中,预设数量个模数转换器中的每个模数转换器对应一个加法单元组;预设数量个模数转换器中的每个模数转换器用于接收对应的加法单元组输出的累加结果信号,并根据接收的累加结果信号生成数字信号,以及将得到的数字信号发送至移位累加器;移位累加器用于对接收的第二预设数量个数字信号分别按照对应的累加权重进行移位累加操作,得到多比特累加结果数据。In some embodiments, the circuit also includes a preset number of analog-to-digital converters and shift accumulators, wherein each analog-to-digital converter in the preset number of analog-to-digital converters corresponds to an adding unit group; preset Each of the number of analog-to-digital converters is used to receive the accumulation result signal output by the corresponding adding unit group, generate a digital signal according to the received accumulation result signal, and send the obtained digital signal to the shift accumulator ; The shift accumulator is used to perform shift and accumulation operations on the received second preset number of digital signals respectively according to the corresponding accumulation weights to obtain multi-bit accumulation result data.

在一些实施例中,对于预设数量个计算单元组中的计算单元组,该计算单元组包括的每个计算单元对应一个存储单元,存储单元用于存储单比特存储数据,每个计算单元用于对对应的存储单元中的单比特数据和输入的单比特输入数据进行计算,并将计算结果信号输入对应的加法单元。In some embodiments, for a computing unit group in a preset number of computing unit groups, each computing unit included in the computing unit group corresponds to a storage unit, the storage unit is used to store single-bit storage data, and each computing unit uses The calculation is performed on the single-bit data in the corresponding storage unit and the input single-bit input data, and the calculation result signal is input to the corresponding addition unit.

在一些实施例中,预设数量个计算单元组中的计算单元组由乘法器组成,乘法器用于对对应的存储单元中的单比特存储数据和输入的单比特输入数据进行乘法计算,输出计算结果信号。In some embodiments, the computing unit groups in the preset number of computing unit groups are composed of multipliers, and the multipliers are used to perform multiplication calculations on the single-bit storage data in the corresponding storage units and the input single-bit input data, and output calculations result signal.

在一些实施例中,乘法器包括第一开关和第二开关,第一开关用于在乘法器对应的存储单元中的单比特存储数据为第一数据时,将输入的单比特输入数据作为计算结果信号输出,第二开关用于在乘法器对应的存储单元中的单比特存储数据为第二数据时,将预设电平作为计算结果信号输出。In some embodiments, the multiplier includes a first switch and a second switch, and the first switch is used to use the input single-bit input data as the first data when the single-bit storage data in the storage unit corresponding to the multiplier is the first data. The result signal is output, and the second switch is used to output the preset level as the calculation result signal when the single-bit stored data in the storage unit corresponding to the multiplier is the second data.

在一些实施例中,对于预设数量个加法单元组中的加法单元组,该加法单元组包括的加法单元为电容的容值,且加法单元的特性度量值为电容值;或者,该加法单元组包括的加法单元为晶体管,且加法单元的特性度量值为晶体管的跨导参数。In some embodiments, for the adding unit groups in the preset number of adding unit groups, the adding unit included in the adding unit group is the capacitance value of the capacitor, and the characteristic measurement value of the adding unit is the capacitance value; or, the adding unit The adding unit included in the group is a transistor, and the characteristic measure value of the adding unit is a transconductance parameter of the transistor.

在一些实施例中,对于预设数量个加法单元组中的加法单元组,若该加法单元组由电容组成,该加法单元组输出的累加结果信号为电压信号,该加法单元组对应的模数转换器用于将电压信号转换为数字信号;若该加法单元组由晶体管组成,该加法单元组输出的累加结果信号为电流信号,该加法单元组对应的模数转换器用于将电流信号转换为数字信号。In some embodiments, for the adding unit groups in the preset number of adding unit groups, if the adding unit group is composed of capacitors, the accumulated result signal output by the adding unit group is a voltage signal, and the modulus corresponding to the adding unit group The converter is used to convert the voltage signal into a digital signal; if the adding unit group is composed of transistors, the accumulated result signal output by the adding unit group is a current signal, and the analog-to-digital converter corresponding to the adding unit group is used to convert the current signal into a digital signal Signal.

根据本公开实施例的另一个方面,提供了一种芯片,该芯片包括上述基于模拟信号的多比特数据计算电路。According to another aspect of an embodiment of the present disclosure, a chip is provided, and the chip includes the above-mentioned multi-bit data calculation circuit based on an analog signal.

根据本公开实施例的另一个方面,提供了一种计算装置,该计算装置包括上述芯片。According to another aspect of the embodiments of the present disclosure, there is provided a computing device, the computing device including the above-mentioned chip.

本公开上述实施例提供的基于模拟信号的多比特数据计算电路、芯片及计算装置,在电路中设置预设数量个计算单元组和预设数量个加法单元组,每个计算单元组对应一个加法单元组,加法单元组为对应的计算单元组中的每个计算单元分配对应的数位权重,并对每个计算单元输出的计算结果信号按照对应的数位权重进行累加,将累加结果信号经过信号输出端输出,每个计算单元对应的数位权重基于对应的加法单元组中的每个加法单元的特性度量值和累加权重确定,且预设数量个加法单元组中的每个加法单元组包括的各个加法单元的特性度量值的比例关系不同。本公开实施例相比于目前的基于模拟信号的多比特数据乘累加电路,无需使每个加法单元组中的各个加法单元按照相同的比例关系分布,在实现了对多比特存储数据和多比特输入数据进行计算及累加的基础上,降低了加法单元的特殊度量值的总和,避免了随着计算数据的位宽的增加,加法单元的特性度量值指数增长的问题,进而有助于降低整个计算电路的面积和功耗。The multi-bit data computing circuit, chip and computing device based on analog signals provided by the above-mentioned embodiments of the present disclosure have a preset number of computing unit groups and a preset number of adding unit groups in the circuit, and each computing unit group corresponds to one addition The unit group, the addition unit group assigns a corresponding digital weight to each calculation unit in the corresponding calculation unit group, and accumulates the calculation result signal output by each calculation unit according to the corresponding digital weight, and outputs the accumulated result signal through the signal terminal output, the digital weight corresponding to each calculation unit is determined based on the characteristic measurement value and cumulative weight of each addition unit in the corresponding addition unit group, and each addition unit group in the preset number of addition unit groups includes each The scaling relationship of the characteristic measures of the summing unit is different. Compared with the current multi-bit data multiplication and accumulation circuit based on analog signals, the embodiment of the present disclosure does not need to distribute the addition units in each addition unit group according to the same proportional relationship, and realizes multi-bit storage data and multi-bit Based on the calculation and accumulation of the input data, the sum of the special measurement values of the addition unit is reduced, avoiding the problem of exponential growth of the characteristic measurement value of the addition unit with the increase of the bit width of the calculation data, which in turn helps to reduce the overall Calculate the area and power dissipation of the circuit.

下面通过附图和实施例,对本公开的技术方案做进一步的详细描述。The technical solution of the present disclosure will be described in further detail below with reference to the drawings and embodiments.

附图说明Description of drawings

通过结合附图对本公开实施例进行更详细的描述,本公开的上述以及其他目的、特征和优势将变得更加明显。附图用来提供对本公开实施例的进一步理解,并且构成说明书的一部分,与本公开实施例一起用于解释本公开,并不构成对本公开的限制。在附图中,相同的参考标号通常代表相同部件或步骤;The above and other objects, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail with reference to the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification, and are used together with the embodiments of the present disclosure to explain the present disclosure, and do not constitute limitations to the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps;

图1是本现有的基于模拟信号的多比特数据乘累加电路的结构示意图;Fig. 1 is the structural representation of the existing multi-bit data multiplication and accumulation circuit based on analog signals;

图2是本公开一示例性实施例提供的基于模拟信号的多比特数据计算电路的结构示意图;Fig. 2 is a schematic structural diagram of a multi-bit data calculation circuit based on an analog signal provided by an exemplary embodiment of the present disclosure;

图3是本公开一示例性实施例提供的四比特存储数据和四比特输入数据相乘的计算规则示意图;Fig. 3 is a schematic diagram of calculation rules for multiplying four-bit stored data and four-bit input data provided by an exemplary embodiment of the present disclosure;

图4是本公开一示例性实施例提供的基于模拟信号的多比特数据计算电路的另一结构示意图;Fig. 4 is another schematic structural diagram of an analog signal-based multi-bit data calculation circuit provided by an exemplary embodiment of the present disclosure;

图5是本公开一示例性实施例提供的基于模拟信号的多比特数据计算电路的另一结构示意图;Fig. 5 is another schematic structural diagram of an analog signal-based multi-bit data calculation circuit provided by an exemplary embodiment of the present disclosure;

图6是本公开一示例性实施例提供的存储单元、计算单元和加法单元的连接关系示意图;Fig. 6 is a schematic diagram of the connection relationship between the storage unit, the calculation unit and the addition unit provided by an exemplary embodiment of the present disclosure;

图7是本公开一示例性实施例提供的乘法单元的结构示意图;Fig. 7 is a schematic structural diagram of a multiplication unit provided by an exemplary embodiment of the present disclosure;

图8是本公开一示例性实施例提供的基于模拟信号的多比特数据计算电路的另一结构示意图。Fig. 8 is another schematic structural diagram of an analog signal-based multi-bit data calculation circuit provided by an exemplary embodiment of the present disclosure.

具体实施方式Detailed ways

下面,将参考附图详细地描述根据本公开的示例实施例。显然,所描述的实施例仅仅是本公开的一部分实施例,而不是本公开的全部实施例,应理解,本公开不受这里描述的示例实施例的限制。Hereinafter, exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited by the exemplary embodiments described here.

应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本公开的范围。It should be noted that relative arrangements of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

本领域技术人员可以理解,本公开实施例中的“第一”、“第二”等术语仅用于区别不同步骤、设备或模块等,既不代表任何特定技术含义,也不表示它们之间的必然逻辑顺序。Those skilled in the art can understand that terms such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc. necessary logical sequence.

还应理解,在本公开实施例中,“多个”可以指两个或两个以上,“至少一个”可以指一个、两个或两个以上。It should also be understood that in the embodiments of the present disclosure, "plurality" may refer to two or more than two, and "at least one" may refer to one, two or more than two.

还应理解,对于本公开实施例中提及的任一部件、数据或结构,在没有明确限定或者在前后文给出相反启示的情况下,一般可以理解为一个或多个。It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more unless there is a clear limitation or a contrary suggestion is given in the context.

另外,本公开中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本公开中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in the present disclosure is only an association relationship describing associated objects, indicating that there may be three relationships, for example, A and/or B may indicate: A exists alone, and A and B exist simultaneously , there are three cases of B alone. In addition, the character "/" in the present disclosure generally indicates that the contextual objects are an "or" relationship.

还应理解,本公开对各个实施例的描述着重强调各个实施例之间的不同之处,其相同或相似之处可以相互参考,为了简洁,不再一一赘述。It should also be understood that the description of the various embodiments in the present disclosure emphasizes the differences between the various embodiments, and the same or similar points can be referred to each other, and for the sake of brevity, details are not repeated here.

同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。At the same time, it should be understood that, for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本公开及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and in no way intended as any limitation of the disclosure, its application or uses.

对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods and devices should be considered part of the description.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like numerals and letters denote like items in the following figures, therefore, once an item is defined in one figure, it does not require further discussion in subsequent figures.

图1示出了目前的基于模拟信号的乘累加运算电路的示例性示意图。如图1所示,K个四比特权重数据和四比特输入数据进行乘累加运算,图中的SRAM(静态随机存取存储器,Static Random-Access Memory)单元,存储了单比特的权重数据Wi[3:0],i为行序号。同一列存储了相同位次的权重数据,不同列的乘加结果具有不同的数位权重(满足二进制比例关系1:1/2:1/4:1/8)。FIG. 1 shows an exemplary schematic diagram of a current multiply-accumulate operation circuit based on analog signals. As shown in Figure 1, K four-bit weight data and four-bit input data are multiplied and accumulated. The SRAM (Static Random-Access Memory, Static Random-Access Memory) unit in the figure stores single-bit weight data W i [3:0], i is the row number. The weight data of the same rank is stored in the same column, and the multiplication and addition results of different columns have different digital weights (satisfying the binary proportional relationship 1:1/2:1/4:1/8).

图中的乘法单元用于实现输入数据Ii[3:0]和权重数据Wi[3:0]的乘法。每个乘法单元的输出端连接一个电容,容值大小满足二进制比例关系,实现输入数据的权重关系。如对四比特输入数据而言,四者分别对应的电容的容值比例关系为8:4:2:1,根据电容分压原理,这样的电容安排可以使得乘加结果表示为Ii[3]×W×8/16+ Ii[2]×W×4/16+ Ii[1]×W×2/16+ Ii[0]×W×1/16,从而实现了乘法结果按照四比特数据分别对应的权重进行累加。图中未与乘法单元连接的电容为虚拟(Dummy)电容,该电容的作用是与其他电容配合以调整数位权重。The multiplication unit in the figure is used to realize the multiplication of input data I i [3:0] and weight data W i [3:0]. The output end of each multiplication unit is connected to a capacitor, and the capacitance value satisfies the binary proportional relationship to realize the weight relationship of the input data. For example, for four-bit input data, the capacitance ratios of the capacitors corresponding to the four are 8:4:2:1. According to the principle of capacitor voltage division, such capacitor arrangement can make the multiplication and addition result expressed as I i [3 ]×W×8/16+ I i [2]×W×4/16+ I i [1]×W×2/16+ I i [0]×W×1/16, thus realizing the multiplication result according to The weights corresponding to the four bits of data are accumulated. The capacitor not connected to the multiplication unit in the figure is a dummy capacitor, and the function of this capacitor is to cooperate with other capacitors to adjust the digital weight.

通过图1可以看出,目前的基于模拟信号的乘累加运算电路有以下缺点:It can be seen from Figure 1 that the current multiplication and accumulation operation circuit based on analog signals has the following disadvantages:

1、利用电容的二进制比例关系实现多比特输入数据的权重,使得在处理高位宽的输入时会面临电容容值指数增长的问题,从而限制了输入数据的位宽。1. Using the binary proportional relationship of capacitance to realize the weight of multi-bit input data, it will face the problem of exponential growth of capacitance value when processing high-bit-width input, thus limiting the bit-width of input data.

2、该方案的电容总容值较大,导致增大了计算阵列的面积和功耗,降低了存算一体阵列的面积效率和能量效率。以图1的四比特数据运算为例,每一行实现四比特数据乘法时,需要的电容量为4×(8C+4C+2C+1C+1C)=64C(C为单位电容的容值)。2. The total capacitance of the capacitors in this solution is relatively large, which increases the area and power consumption of the computing array, and reduces the area efficiency and energy efficiency of the integrated storage and computing array. Taking the four-bit data operation in Figure 1 as an example, when each row implements four-bit data multiplication, the required capacitance is 4×(8C+4C+2C+1C+1C)=64C (C is the capacitance of a unit capacitance).

本公开实施例旨在解决上述问题,提出了一种基于模拟信号的多比特数据计算电路,该电路的每个加法单元组(即与单比特存储数据对应的多个加法单元)包括的各个加法单元的特性度量值的比例关系不同,例如在对四比特数据进行计算及累加时,无需对每个加法单元组按照8:4:2:1的比例关系分布,从而解决高位宽数据计算时的特性度量值指数增长的问题,提高了电路的面积利用效率及能量利用效率。The embodiment of the present disclosure aims to solve the above problems, and proposes a multi-bit data calculation circuit based on an analog signal. The proportional relationship of the characteristic measurement value of the unit is different. For example, when calculating and accumulating four-bit data, it is not necessary to distribute each addition unit group according to the proportional relationship of 8:4:2:1, so as to solve the problem of high bit width data calculation. The problem of exponential growth of the characteristic measure value improves the area utilization efficiency and energy utilization efficiency of the circuit.

示例性结构exemplary structure

图2是本公开一示例性实施例提供的基于模拟信号的多比特数据计算电路的结构示意图。该电路包含的各个组成部分可以集成到一个芯片中,也可以设置到不同的芯片或电路板中,这些芯片或电路板之间建立数据通信的链路。Fig. 2 is a schematic structural diagram of an analog signal-based multi-bit data calculation circuit provided by an exemplary embodiment of the present disclosure. The various components included in the circuit can be integrated into one chip, or can be arranged in different chips or circuit boards, and data communication links are established between these chips or circuit boards.

如图2所示,该电路包括:预设数量个计算单元组(包括201、203、205、207、209)和预设数量个加法单元组(包括202、204、206、208、210)。其中,每个计算单元组对应一个加法单元组。预设数量可以根据需要设置。如图2所示,在对四比特输入数据Ii[3:0]和四比特存储数据Wi[3:0]进行乘法运算时,需要的计算单元的数量为16,16个计算单元和对应的加法单元被划分为5列,每列包括的多个计算单元和多个加法单元分别为相对应的一个计算单元组和一个加法单元组,即预设数量为5。As shown in Figure 2, the circuit includes: a preset number of computing unit groups (including 201, 203, 205, 207, 209) and a preset number of adding unit groups (including 202, 204, 206, 208, 210). Wherein, each calculation unit group corresponds to an addition unit group. The preset number can be set as required. As shown in Figure 2, when performing multiplication operation on four-bit input data I i [3:0] and four-bit storage data W i [3:0], the number of calculation units required is 16, 16 calculation units and The corresponding adding units are divided into 5 columns, and each column includes a plurality of computing units and a plurality of adding units corresponding to a group of computing units and a group of adding units, that is, the preset number is five.

计算单元组包括的计算单元可以根据需要执行任意类型的计算。例如,计算单元可以为乘法器,用于对输入的单比特输入数据和单比特存储数据进行乘法运算。可选的,计算单元还可以执行加法、异或、同或等计算。The calculation units included in the calculation unit group can perform any type of calculation as required. For example, the computing unit may be a multiplier, configured to perform multiplication operations on input single-bit input data and single-bit stored data. Optionally, the calculation unit can also perform calculations such as addition, exclusive OR, and exclusive OR.

加法单元组用于对对应的各个计算单元输出的计算结果信号在模拟信号域进行累加。加法单元组包括的加法单元可以由任意类型的器件构成,如图2所示,加法单元为电容。The addition unit group is used for accumulating the calculation result signals output by the corresponding calculation units in the analog signal domain. The adding units included in the adding unit group can be composed of any type of devices, as shown in FIG. 2 , the adding units are capacitors.

需要说明的是,相对应的计算单元组和加法单元组分别包括的计算单元的数量和加法单元的数量可以相同或不同,如图2所示,为了对计算单元组的计算结果信号分配权重,可以增加虚拟电容,即图中所示的一端接地,另一端接信号输出端的电容。It should be noted that the number of calculation units and the number of addition units included in the corresponding calculation unit group and the addition unit group can be the same or different, as shown in Figure 2, in order to assign weights to the calculation result signals of the calculation unit group, A dummy capacitor can be added, that is, a capacitor with one end connected to the ground and the other end connected to the signal output terminal as shown in the figure.

在本实施例中,对于预设数量个计算单元组中的每个计算单元组,该计算单元组对应于目标加法单元组,并具有对应的累加权重,该计算单元组中的每个计算单元的输出端与对应的加法单元的输入端连接。In this embodiment, for each computing unit group in the preset number of computing unit groups, the computing unit group corresponds to the target adding unit group and has a corresponding accumulation weight, and each computing unit in the computing unit group The output terminal of is connected with the input terminal of the corresponding adding unit.

其中,目标加法单元组为预设数量个加法单元组中的一个加法单元组,如图2,对于计算单元组201,其对应的目标加法单元组为202。计算单元组对应的累加权重是指,在对应的加法单元组输出累加结果信号后,将累加结果信号表示的数据与对应的累加权重相乘,从而可以得到该计算单元组对应的累加数据。Wherein, the target adding unit group is one of the preset number of adding unit groups, as shown in FIG. 2 , for computing unit group 201 , its corresponding target adding unit group is 202 . The accumulative weight corresponding to the calculation unit group means that after the corresponding addition unit group outputs the accumulation result signal, the data represented by the accumulation result signal is multiplied by the corresponding accumulation weight, so that the accumulation data corresponding to the calculation unit group can be obtained.

如图2所示,五个计算单元组分别对应的累加权重为1、1/2、1/4、1/8、1/16。需要说明的是,图2所示的累加权重为相对权重,即相邻两个加法单元组的信号输出端分别对应的累加权重满足2倍的关系即可,在模数转换器和移位累加器中,可以根据实际需要设置绝对权重,从而完成实际场景的计算。As shown in FIG. 2 , the accumulated weights corresponding to the five computing unit groups are 1, 1/2, 1/4, 1/8, and 1/16 respectively. It should be noted that the accumulation weights shown in Figure 2 are relative weights, that is, the accumulation weights corresponding to the signal output terminals of two adjacent adding unit groups can satisfy the relationship of 2 times. In the controller, the absolute weight can be set according to actual needs, so as to complete the calculation of the actual scene.

上述目标加法单元组用于为对应的计算单元组中的每个计算单元分配对应的数位权重,并对每个计算单元输出的计算结果信号按照对应的数位权重进行累加,将累加结果信号经过该加法单元组的信号输出端输出,其中,每个计算单元对应的数位权重基于目标加法单元组中的每个加法单元的特性度量值和累加权重确定。The above-mentioned target addition unit group is used to assign corresponding digital weights to each calculation unit in the corresponding calculation unit group, and accumulate the calculation result signal output by each calculation unit according to the corresponding digital weight, and pass the accumulated result signal through the The signal output terminal of the adding unit group outputs, wherein the digital weight corresponding to each calculation unit is determined based on the characteristic measurement value and the accumulation weight of each adding unit in the target adding unit group.

作为示例,如图2所示,当加法单元为电容时,加法单元的特性度量值为电容的容值,图2所示的1C、2C等,表示电容的容值。对于某个计算单元组中的一个计算单元,其对应的数位权重由与其连接的电容的容值占对应的加法单元组的总容值的比例确定。例如,对于图2中的计算单元组201中的计算单元2011,其对应的数位权重为8C/(8C+4C+2C+1C+1C)=1/2,对于图2中的计算单元2012,其对应的数位权重为4C/(8C+4C+2C+1C+1C)=1/4。As an example, as shown in FIG. 2, when the adding unit is a capacitor, the characteristic measurement value of the adding unit is the capacitance of the capacitor, and 1C, 2C, etc. shown in FIG. 2 represent the capacitance of the capacitor. For a computing unit in a certain computing unit group, its corresponding digital weight is determined by the ratio of the capacitance of the capacitor connected to it to the total capacitance of the corresponding adding unit group. For example, for the calculation unit 2011 in the calculation unit group 201 in FIG. 2, its corresponding digital weight is 8C/(8C+4C+2C+1C+1C)=1/2. For the calculation unit 2012 in FIG. 2, The corresponding digital weight is 4C/(8C+4C+2C+1C+1C)=1/4.

在本实施例中,预设数量个加法单元组中的每个加法单元组包括的各个加法单元的特性度量值的比例关系不同。In this embodiment, the proportional relationship of the characteristic measure values of the adding units included in each adding unit group of the preset number of adding unit groups is different.

如图2所示,对于加法单元组202,其中的各个加法单元的特性度量值的比例关系为8:4:2:1:1,对于加法单元组204,其中的各个加法单元的特性度量值的比例关系为2:1:1。类似的,其他加法单元组中的各个加法单元的特性度量值的比例关系分别为1:1:1:1、1:1:1:1、2:2:1:3。As shown in Figure 2, for the addition unit group 202, the proportional relation of the characteristic measure value of each addition unit wherein is 8:4:2:1:1, for the addition unit group 204, the characteristic measure value of each addition unit wherein The ratio relationship is 2:1:1. Similarly, the proportional relationships of the characteristic measure values of the respective adding units in other adding unit groups are 1:1:1:1, 1:1:1:1, 2:2:1:3 respectively.

对比图1所示的现有的基于模拟信号的乘累加计算电路,其中的每列同样包括一个计算单元组(由乘法单元构成)和一个加法单元组(由电容构成),图1所示的加法单元组中的各个加法单元的特性度量值的比例关系相等,均为8:4:2:1:1。图1所示的电路所需的加法单元的总特性度量值为4×(8C+4C+2C+1C+1C)=64C。而本实施例通过对计算单元和加法单元的位置进行重组,并重新分配各个加法单元组的比例关系,可以减少总特性度量值,如图2所示的本实施例提供的电路,其总特性度量值为(8C+4C+2C+1C+1C)+ (2C+1C+1C)+(1C+1C+1C+1C)+ (1C+1C+1C+1C) +(2C+2C+1C+3C)=36C,相比图1所示的电路,总特性度量值大大减小了。Compared with the existing analog signal-based multiplication and accumulation calculation circuit shown in Figure 1, each column also includes a calculation unit group (composed of multiplication units) and an addition unit group (composed of capacitors), as shown in Figure 1 The proportional relationship of the characteristic measurement values of each adding unit in the adding unit group is equal, which is 8:4:2:1:1. The total characteristic measure of the summing unit required for the circuit shown in Figure 1 is 4 x (8C + 4C + 2C + 1C + 1C) = 64C. However, in this embodiment, by reorganizing the positions of the calculation unit and the addition unit, and redistributing the proportional relationship of each addition unit group, the total characteristic measurement value can be reduced. The circuit provided by this embodiment as shown in Figure 2 has a total characteristic The measured value is (8C+4C+2C+1C+1C)+ (2C+1C+1C)+(1C+1C+1C+1C)+ (1C+1C+1C+1C) +(2C+2C+1C+ 3C)=36C, compared to the circuit shown in Figure 1, the overall characteristic measure is greatly reduced.

下面,基于四比特输入数据和四比特权重数据相乘的原理,说明图2所示的电路中的各个电容的容值的分配原则。如图3所示,其示出了四比特存储数据Wi[3:0]和四比特输入数据Ii[3:0]相乘的计算规则。图3所示的每列数值(即单比特乘积)对应一个乘积权重,Wi[3:0]和Ii[3:0]最终的乘积为每个单比特乘积与对应的乘积权重相乘后再相加。图3所示的每个单比特乘积对应的乘积权重等于图2中的对应加法单元的数位权重乘以对应的累加权重。Next, based on the principle of multiplying the four-bit input data and the four-bit weight data, the principle of allocating the capacitance values of the capacitors in the circuit shown in FIG. 2 will be described. As shown in FIG. 3 , it shows a calculation rule for multiplying four-bit stored data W i [3:0] and four-bit input data I i [3:0]. Each column of values (that is, single-bit product) shown in Figure 3 corresponds to a product weight, and the final product of W i [3:0] and I i [3:0] is the multiplication of each single-bit product by the corresponding product weight Then add them up. The product weight corresponding to each single-bit product shown in FIG. 3 is equal to the digital weight of the corresponding adding unit in FIG. 2 multiplied by the corresponding accumulation weight.

例如,对于Ii[3]*Wi[3],其对应的数位权重为1/2,对应的累加权重为1,则对应的乘积权重为1/2;For example, for I i [3]*W i [3], the corresponding digital weight is 1/2, and the corresponding cumulative weight is 1, then the corresponding product weight is 1/2;

对于Ii[2]*Wi[2],其对应的数位权重为1/4,对应的累加权重为1/2,则对应的乘积权重为1/8;For I i [2]*W i [2], the corresponding digital weight is 1/4, the corresponding cumulative weight is 1/2, and the corresponding product weight is 1/8;

对于Ii[1]*Wi[1],其对应的数位权重为1/4,对应的累加权重为1/8,则对应的乘积权重为1/16。For I i [1]*W i [1], the corresponding digital weight is 1/4, the corresponding accumulation weight is 1/8, and the corresponding product weight is 1/16.

需要说明的是,图2所示的各计算单元和各加法单元的分布方式仅仅是一个示例,可选的,在多比特数据乘法计算时,满足图3所示的多比特计算规则,以及图3所示的各列按照二进制方式排列的基础上,各计算单元和各加法单元的分布方式可以按需要调整。例如,可以将图2中Ii[0]、Wi[3]对应的计算单元和电容可以设置在第三列(即累加权重为1/4的列),并将第三列接地的虚拟电容删除,同时将第一列中接地的虚拟电容的容值设置为2C,则Ii[0]、Wi[3]对应的乘积权重仍为1/4 * 1/4 = 1/16。It should be noted that the distribution of each calculation unit and each addition unit shown in FIG. 2 is only an example. Optionally, when multi-bit data is multiplied and calculated, the multi-bit calculation rule shown in FIG. 3 is satisfied, and the multi-bit calculation rule shown in FIG. On the basis that the columns shown in 3 are arranged in a binary manner, the distribution of each calculation unit and each addition unit can be adjusted as required. For example, the computing units and capacitors corresponding to I i [0] and W i [3] in Figure 2 can be set in the third column (that is, the column with a cumulative weight of 1/4), and the virtual The capacitor is deleted, and the capacitance of the virtual capacitor grounded in the first column is set to 2C, then the product weight corresponding to I i [0] and W i [3] is still 1/4 * 1/4 = 1/16.

本公开的上述实施例提供的电路,设置预设数量个计算单元组和预设数量个加法单元组,每个计算单元组对应一个加法单元组,加法单元组为对应的计算单元组中的每个计算单元分配对应的数位权重,并对每个计算单元输出的计算结果信号按照对应的数位权重进行累加,将累加结果信号经过信号输出端输出,每个计算单元对应的数位权重基于对应的加法单元组中的每个加法单元的特性度量值和累加权重确定,且预设数量个加法单元组中的每个加法单元组包括的各个加法单元的特性度量值的比例关系不同。本公开实施例相比于目前的基于模拟信号的多比特数据乘累加电路,无需使每个加法单元组中的各个加法单元按照相同的比例关系分布,在实现了对多比特存储数据和多比特输入数据进行计算及累加的基础上,降低了加法单元的特殊度量值的总和,避免了随着计算数据的位宽的增加,加法单元的特性度量值指数增长的问题,进而有助于降低整个计算电路的面积和功耗。The circuits provided by the above-mentioned embodiments of the present disclosure are provided with a preset number of computing unit groups and a preset number of adding unit groups, each computing unit group corresponds to an adding unit group, and the adding unit group is each of the corresponding computing unit groups The corresponding digital weights are assigned to each calculation unit, and the calculation result signal output by each calculation unit is accumulated according to the corresponding digital weight, and the accumulated result signal is output through the signal output terminal, and the corresponding digital weight of each calculation unit is based on the corresponding addition. The characteristic measurement value and accumulation weight of each adding unit in the unit group are determined, and the proportional relationship of the characteristic measurement value of each adding unit included in each adding unit group in the preset number of adding unit groups is different. Compared with the current multi-bit data multiplication and accumulation circuit based on analog signals, the embodiment of the present disclosure does not need to distribute the addition units in each addition unit group according to the same proportional relationship, and realizes multi-bit storage data and multi-bit Based on the calculation and accumulation of the input data, the sum of the special measurement values of the addition unit is reduced, avoiding the problem of exponential growth of the characteristic measurement value of the addition unit with the increase of the bit width of the calculation data, which in turn helps to reduce the overall Calculate the area and power dissipation of the circuit.

在一些可选的实现方式中,如图4所示,该电路还包括预设数量个模数转换器211、移位累加器212。其中,预设数量个模数转换器211中的每个模数转换器对应一个加法单元组。In some optional implementation manners, as shown in FIG. 4 , the circuit further includes a preset number of analog-to-digital converters 211 and shift accumulators 212 . Wherein, each analog-to-digital converter in the preset number of analog-to-digital converters 211 corresponds to one adding unit group.

预设数量个模数转换器211中的每个模数转换器用于接收对应的加法单元组输出的累加结果信号,并根据接收的累加结果信号生成数字信号,以及将得到的数字信号发送至移位累加器212。Each analog-to-digital converter in the preset number of analog-to-digital converters 211 is used to receive the accumulation result signal output by the corresponding adding unit group, generate a digital signal according to the received accumulation result signal, and send the obtained digital signal to the mobile station. bit accumulator 212 .

移位累加器212用于对接收的第二预设数量个数字信号分别按照对应的累加权重进行移位累加操作,得到多比特累加结果数据。The shift accumulator 212 is configured to perform shift and accumulation operations on the second preset number of received digital signals respectively according to corresponding accumulation weights to obtain multi-bit accumulation result data.

作为示例,如图2所示,对于加法单元组202输出的累加结果信号,该信号表示计算单元组201中的每个计算单元输出的计算结果(例如乘法计算结果)的累加,对应的模数转换器可以将该模拟信号转换为数字信号。As an example, as shown in FIG. 2, for the accumulation result signal output by the addition unit group 202, the signal represents the accumulation of the calculation results (such as multiplication calculation results) output by each calculation unit in the calculation unit group 201, and the corresponding modulus A converter can convert this analog signal to a digital signal.

各个数字信号分别对应于一个累加权重,根据图3所示的多比特乘法的计算规则,移位累加器104可以将模数转换后的数字信号分别与对应的累加权重(如图2中所示的1、1/2、1/4、1/8、1/16)相乘(例如通过移位实现),再将各个乘积相加,即可得到一个多比特输入数据和一个多比特存储数据的乘积。例如,图2所示的多比特累加结果数据为Ii[3:0]*Wi[3:0]的乘积。Each digital signal corresponds to an accumulation weight respectively. According to the calculation rules of multi-bit multiplication shown in FIG. 1, 1/2, 1/4, 1/8, 1/16) are multiplied (for example, by shifting), and then the products are added together to obtain a multi-bit input data and a multi-bit storage data product of . For example, the multi-bit accumulation result data shown in FIG. 2 is the product of I i [3:0]*W i [3:0].

本实施例通过设置模数转换器和移位累加器,实现了将各个加法单元组输出的模拟信号域的累加结果信号转换为数字信号,并将数字信号按照对应的累加权重进行累加,得到数字信号域的多比特累加结果信号,从而有助于进一步对数字信号域的多比特累加结果信号进行进一步处理,扩展了多比特数据计算电路的应用领域。In this embodiment, by setting an analog-to-digital converter and a shift accumulator, the accumulation result signal of the analog signal domain output by each adding unit group is converted into a digital signal, and the digital signal is accumulated according to the corresponding accumulation weight to obtain a digital signal. The multi-bit accumulation result signal in the signal domain helps to further process the multi-bit accumulation result signal in the digital signal domain, and expands the application field of the multi-bit data calculation circuit.

可选的,如图5所示,可以将图2所示的电路设置为多组,按照图5所示的电路,将对应于同一累加权重的多个计算单元组和加法单元组设置为同一列,该列的所有加法单元组的输出端连接到同一条累加线上,从而实现了多个多比特输入数据和多比特存储数据的计算及累加。Optionally, as shown in Figure 5, the circuit shown in Figure 2 can be set to multiple groups, according to the circuit shown in Figure 5, a plurality of computing unit groups and adding unit groups corresponding to the same accumulation weight are set to A column, the output terminals of all the adding unit groups of the column are connected to the same accumulation line, thereby realizing the calculation and accumulation of multiple multi-bit input data and multi-bit storage data.

如图5所示,同一条累加线输出的累加结果信号表示K+1个计算单元组分别输出的计算结果的累加,各条累加线输出的累加结果信号输入对应的模数转换器,得到数字信号,各个数字信号再输入移位累加器,由移位累加器按照对应的累加权重,计算多个多比特输入数据和多比特存储数据的多比特累加结果数据,即当计算单元用于执行单比特乘法计算时,图5所示电路输出的多比特累加结果数据为W0[3:0]* I0[3:0]+ W1[3:0]* I1[3:0]+…+WK[3:0]* IK[3:0]。As shown in Figure 5, the accumulation result signal output by the same accumulation line represents the accumulation of the calculation results output by K+1 computing unit groups respectively, and the accumulation result signal output by each accumulation line is input to the corresponding analog-to-digital converter to obtain a digital Each digital signal is then input into the shift accumulator, and the shift accumulator calculates the multi-bit accumulation result data of multiple multi-bit input data and multi-bit stored data according to the corresponding accumulation weight, that is, when the calculation unit is used to execute a single During bit multiplication calculation, the multi-bit accumulation result data output by the circuit shown in Figure 5 is W 0 [3:0]* I 0 [3:0]+ W 1 [3:0]* I 1 [3:0]+ …+W K [3:0]* I K [3:0].

图5所示电路可以应用在存算一体阵列中,从而实现了多个多比特数据的计算,有助于降低存算一体阵列的面积和功耗。The circuit shown in Figure 5 can be applied to an integrated storage and calculation array, thereby realizing the calculation of multiple multi-bit data and helping to reduce the area and power consumption of the integrated storage and calculation array.

在一些可选的实现方式中,对于预设数量个计算单元组中的计算单元组,该计算单元组包括的每个计算单元对应一个存储单元,存储单元用于存储单比特存储数据,每个计算单元用于对对应的存储单元中的单比特数据和输入的单比特输入数据进行计算,并将计算结果信号输入对应的加法单元。In some optional implementation manners, for a computing unit group in a preset number of computing unit groups, each computing unit included in the computing unit group corresponds to a storage unit, and the storage unit is used to store single-bit storage data, each The calculating unit is used for calculating the single-bit data in the corresponding storage unit and the input single-bit input data, and inputting the calculation result signal into the corresponding adding unit.

如图6所示,计算单元的一个输入端与存储单元连接,存储单元用于存储一个单比特存储数据,例如Wi[0],计算单元的另一个输入端用于接收一个单比特输入数据,例如Ii[0],计算单元输出计算结果信号至加法单元。As shown in Figure 6, one input end of the calculation unit is connected to the storage unit, the storage unit is used to store a single-bit storage data, such as W i [0], and the other input end of the calculation unit is used to receive a single-bit input data , such as I i [0], the calculation unit outputs the calculation result signal to the addition unit.

本实施例通过设置存储单元,可以将存储单元与计算单元构成存算单元,进而实现存算单元阵列,该存算单元阵列由于包含了图2所示的电路,因此,本实施例可以降低存算单元阵列的面积和功耗。In this embodiment, by arranging the storage unit, the storage unit and the calculation unit can be configured as a storage and calculation unit, thereby realizing a storage and calculation unit array. Since the storage and calculation unit array includes the circuit shown in FIG. 2, this embodiment can reduce the storage and calculation unit array. Calculate the area and power consumption of the cell array.

在一些可选的实现方式中,预设数量个计算单元组中的计算单元组由乘法器组成,乘法器用于对对应的存储单元中的单比特存储数据和输入的单比特输入数据进行乘法计算,输出计算结果信号。In some optional implementations, the computing unit groups in the preset number of computing unit groups are composed of multipliers, and the multipliers are used to perform multiplication calculations on the single-bit storage data in the corresponding storage unit and the input single-bit input data , output the calculation result signal.

其中,乘法器可以通过各种结构的电路实现。例如,通过双N型场效应管、N型P型组合场效应管等电路实现乘法器。乘法器的工作流程为:当存储单元中的单比特存储数据(例如Wi[0])为1时,乘法器导通,将输入的单比特输入数据(例如Ii[0])直接输出到对应的加法单元;当存储单元中的单比特存储数据为0时,乘法器的输出端与预设电平接通(例如低电平),即输出表示数字0的电平到对应的加法单元。Among them, the multiplier can be realized by circuits with various structures. For example, the multiplier is implemented by circuits such as double N-type field effect transistors, N-type P-type combined field effect transistors, and the like. The working process of the multiplier is: when the single-bit storage data (such as W i [0]) in the storage unit is 1, the multiplier is turned on, and the input single-bit input data (such as I i [0]) is directly output to the corresponding addition unit; when the single-bit storage data in the storage unit is 0, the output terminal of the multiplier is connected to the preset level (such as low level), that is, the output represents the level of digital 0 to the corresponding addition unit.

本实施例通过将计算单元设置为乘法器,可以实现由每个计算单元进行单比特存储数据与单比特输入数据进行乘法计算,每个加法单元组输出的累加结果信号即乘累加结果信号,进而实现基于模拟信号的多比特数据乘累加计算,本实施例的电路结构简洁有效,有助于在降低乘累加计算电路的面积和功耗的基础上,高效地进行多比特数据的乘累加计算。In this embodiment, by setting the calculation unit as a multiplier, each calculation unit can perform multiplication calculation of single-bit storage data and single-bit input data, and the accumulation result signal output by each addition unit group is the multiplication and accumulation result signal, and then To realize multi-bit data multiplication and accumulation calculation based on analog signals, the circuit structure of this embodiment is simple and effective, and helps to efficiently perform multi-bit data multiplication and accumulation calculation on the basis of reducing the area and power consumption of the multiplication and accumulation calculation circuit.

在一些可选的实现方式中,乘法器包括第一开关和第二开关,第一开关用于在乘法器对应的存储单元中的单比特存储数据为第一数据时,将输入的单比特输入数据作为计算结果信号输出,第二开关用于在乘法器对应的存储单元中的单比特存储数据为第二数据时,将预设电平作为计算结果信号输出。In some optional implementation manners, the multiplier includes a first switch and a second switch, and the first switch is used to input the input single bit when the single-bit storage data in the storage unit corresponding to the multiplier is the first data The data is output as a calculation result signal, and the second switch is used to output a preset level as a calculation result signal when the single-bit stored data in the storage unit corresponding to the multiplier is the second data.

其中,第一数据可以为1,第二数据可以为0,预设电平可以为低电平。如图7所示,一个计算单元为由第一开关701和第二开关702组成的乘法器。第一开关701和第二开关702均为N型MOS管,第一开关的701和第二开关702的栅极分别与存储单元703的Q端和QB端连接,Q端输出存储的单比特数据,QB端输出该单比特数据的反相数据。Wherein, the first data may be 1, the second data may be 0, and the preset level may be low level. As shown in FIG. 7 , a calculation unit is a multiplier composed of a first switch 701 and a second switch 702 . Both the first switch 701 and the second switch 702 are N-type MOS transistors, the gates of the first switch 701 and the second switch 702 are respectively connected to the Q terminal and the QB terminal of the storage unit 703, and the Q terminal outputs the stored single-bit data , the QB terminal outputs the inverted data of the single-bit data.

具体的工作流程为:当Q为1时,QB为0,第一开关701导通,第二开关702截止,输入的单比特输入数据(例如Ii[0])直接输出至加法单元704;当Q为0时,QB为1,第一开关701截止,第二开关702导通,由于第二开关702的漏极接地,因此,输入加法单元704的信号为低电平信号,从而实现了单比特存储数据与单比特输入数据的乘法计算。The specific working process is: when Q is 1, QB is 0, the first switch 701 is turned on, the second switch 702 is turned off, and the input single-bit input data (such as I i [0]) is directly output to the addition unit 704; When Q is 0, QB is 1, the first switch 701 is turned off, and the second switch 702 is turned on. Since the drain of the second switch 702 is grounded, the signal input to the adding unit 704 is a low-level signal, thereby realizing Multiplication calculation of single-bit stored data and single-bit input data.

需要说明的是,图7所示的由两个N型MOS管组成的乘法器,仅仅是一个示例,在可以实现乘法计算的前提下,第一开关和第二开关的类型可以任意设置,例如可以为三极管。It should be noted that the multiplier composed of two N-type MOS transistors shown in FIG. 7 is only an example. On the premise that the multiplication calculation can be realized, the types of the first switch and the second switch can be set arbitrarily, for example Can be triode.

本实施例通过设置第一开关和第二开关构成乘法器,可以实现通过简单电路进行单比特存储数据与单比特输入数据的乘法计算,电路更易实现,且电路运行更稳定。In this embodiment, the first switch and the second switch are configured to form a multiplier, which can realize the multiplication calculation of single-bit storage data and single-bit input data through a simple circuit, and the circuit is easier to implement and the circuit operation is more stable.

在一些可选的实现方式中,对于预设数量个加法单元组中的加法单元组,该加法单元组包括的加法单元为电容的容值,且加法单元的特性度量值为电容值;或者,该加法单元组包括的加法单元为晶体管,且加法单元的特性度量值为晶体管的跨导参数。In some optional implementation manners, for an adding unit group in the preset number of adding unit groups, the adding unit included in the adding unit group is a capacitance value of a capacitor, and the characteristic measurement value of the adding unit is a capacitance value; or, The adding unit included in the adding unit group is a transistor, and the characteristic measurement value of the adding unit is a transconductance parameter of the transistor.

如图2-图5所示的电路中的加法单元组包括的加法单元均为电容,通过电容可以在信号输出端实现电荷域(即电压)的比例叠加。The adding units in the circuit shown in Figure 2-Figure 5 include all adding units that are capacitors, through which the proportional superposition of the charge domain (that is, voltage) can be realized at the signal output terminal.

如图8所示,其示出了加法单元为晶体管的多比特数据计算电路的示意图。图8中的加法单元为N型MOS管,通过MOS管的跨导参数可以实现输出信号端在电流域进行叠加。图8中的各个MOS管的跨导参数表示为8k、4k、2k、1k,即实现了在电流域为计算结果信号分配权重。如图8所示的各个加法单元组的信号输出端输出的累加结果信号为电流信号,对于一个由MOS管组成的加法单元组,该加法单元组输出的电流等效于各计算单元输出的计算结果信号与分流比例(即数位权重)的乘积的叠加(Isum4、Isum3、Isum2、Isum1、Isum0),分流比例为单个MOS管的跨导参数与各个MOS管的总跨导参数之比。As shown in FIG. 8 , it shows a schematic diagram of a multi-bit data calculation circuit in which the addition unit is a transistor. The adding unit in FIG. 8 is an N-type MOS transistor, and the output signal terminal can be superimposed in the current domain through the transconductance parameter of the MOS transistor. The transconductance parameters of each MOS transistor in FIG. 8 are expressed as 8k, 4k, 2k, and 1k, which realizes the distribution of weights for the calculation result signals in the current domain. As shown in Figure 8, the cumulative result signal output by the signal output terminals of each adding unit group is a current signal. For an adding unit group composed of MOS transistors, the current output by the adding unit group is equivalent to the calculation of the output of each calculation unit The superposition of the product of the result signal and the shunt ratio (that is, the digital weight) (I sum4 , I sum3 , I sum2 , I sum1 , I sum0 ), the shunt ratio is the transconductance parameter of a single MOS transistor and the total transconductance parameter of each MOS transistor Ratio.

作为示例,对于第一列MOS管801,对应的累加权重为1,各MOS管分别对应的数位权重为8/15、4/15、2/15、1/15,分别对应的乘积权重为8/15、4/15、2/15、1/15。As an example, for the first row of MOS tubes 801, the corresponding accumulation weight is 1, the digital weights corresponding to each MOS tube are 8/15, 4/15, 2/15, 1/15, and the corresponding product weights are 8 /15, 4/15, 2/15, 1/15.

对于第二列MOS管802,对应的累加权重为8/15,各MOS管分别对应的数位权重为2/4、1/4、1/4,分别对应的乘积权重为4/15、2/15、2/15;For the second row of MOS tubes 802, the corresponding accumulation weight is 8/15, the digital weights corresponding to each MOS tube are 2/4, 1/4, 1/4, and the corresponding product weights are 4/15, 2/ 15, 2/15;

对于第三列MOS管803,对应的累加权重为1/5,各MOS管分别对应的数位权重为1/3、1/3、1/3,分别对应的乘积权重为1/15、1/15、1/15;For the third row of MOS tubes 803, the corresponding cumulative weight is 1/5, the digital weights corresponding to each MOS tube are 1/3, 1/3, 1/3, and the corresponding product weights are 1/15, 1/3, respectively. 15, 1/15;

对于第四列MOS管804,对应的累加权重为1/10,各MOS管分别对应的数位权重为1/3、1/3、1/3,分别对应的乘积权重为1/30、1/30、1/30;For the fourth row of MOS tubes 804, the corresponding cumulative weight is 1/10, the digital weights corresponding to each MOS tube are 1/3, 1/3, 1/3, and the corresponding product weights are 1/30, 1/3 30, 1/30;

对于第五列MOS管805,对应的累加权重为1/24,各MOS管分别对应的数位权重为2/5、2/5、1/5,分别对应的乘积权重为1/60、1/60、1/120。For the fifth row of MOS tubes 805, the corresponding cumulative weight is 1/24, the digital weights corresponding to each MOS tube are 2/5, 2/5, 1/5, and the corresponding product weights are 1/60, 1/5 60, 1/120.

基于上述示例,结合图3所示的四比特存储数据Wi[3:0]和四比特输入数据Ii[3:0]相乘的计算规则,可以看出,将图3中的各乘法因子对应到图8中的各个数据,图3中各列之间的乘积权重仍为2倍的关系,在模数转换器和移位累加器中,可以根据实际需要设置绝对权重,从而完成实际场景的计算。Based on the above example, combined with the calculation rules for multiplying the four-bit stored data W i [3:0] and the four-bit input data I i [3:0] shown in Figure 3, it can be seen that each multiplication in Figure 3 The factor corresponds to each data in Figure 8, and the product weight between the columns in Figure 3 is still 2 times. In the analog-to-digital converter and shift accumulator, the absolute weight can be set according to actual needs, so as to complete the actual Scenario calculations.

例如,对于Ii[3]*Wi[2],其对应的数位权重为2/4,对应的累加权重为8/15,则对应的乘积权重为4/15;For example, for I i [3]*W i [2], the corresponding digital weight is 2/4, the corresponding cumulative weight is 8/15, and the corresponding product weight is 4/15;

对于Ii[2]*Wi[2],其对应的数位权重为1/4,对应的累加权重为8/15,则对应的乘积权重为2/15;For I i [2]*W i [2], the corresponding digital weight is 1/4, the corresponding cumulative weight is 8/15, and the corresponding product weight is 2/15;

对于Ii[1]*Wi[2],其对应的数位权重为1/3,对应的累加权重为3/15,则对应的乘积权重为1/15。For I i [1]*W i [2], the corresponding digital weight is 1/3, the corresponding cumulative weight is 3/15, and the corresponding product weight is 1/15.

本实施例通过将电容或晶体管作为加法单元,实现了在电荷域或电流域实现模拟信号的叠加,在降低电路的面积和功耗的基础上,进一步提高了电路设计的灵活性,扩展了应用场景。In this embodiment, by using capacitors or transistors as the addition unit, the superposition of analog signals in the charge domain or current domain is realized. On the basis of reducing the area and power consumption of the circuit, the flexibility of circuit design is further improved, and the application is expanded. Scenes.

在一些可选的实现方式中,对于预设数量个加法单元组中的加法单元组,若该加法单元组由电容组成,该加法单元组输出的累加结果信号为电压信号,该加法单元组对应的模数转换器用于将电压信号转换为数字信号;In some optional implementations, for the adding unit groups in the preset number of adding unit groups, if the adding unit group is composed of capacitors, the cumulative result signal output by the adding unit group is a voltage signal, and the adding unit group corresponds to The analog-to-digital converter is used to convert the voltage signal into a digital signal;

若该加法单元组由晶体管组成,该加法单元组输出的累加结果信号为电流信号,该加法单元组对应的模数转换器用于将电流信号转换为数字信号。If the adding unit group is composed of transistors, the accumulated result signal output by the adding unit group is a current signal, and the analog-to-digital converter corresponding to the adding unit group is used to convert the current signal into a digital signal.

本实施例根据不同类型的累加结果信号,设置不同类型的模数转换器,进一步提高了电路设计的灵活性,使基于不同类型的模拟信号的多比特计算电路均可以降低电路的面积和功耗,扩展了该电路的应用领域。In this embodiment, different types of analog-to-digital converters are set according to different types of accumulated result signals, which further improves the flexibility of circuit design, so that multi-bit computing circuits based on different types of analog signals can reduce the area and power consumption of the circuit , expanding the application field of the circuit.

本公开的实施例还提供了一种芯片,芯片上集成了基于模拟信号的多比特数据计算电路,基于模拟信号的多比特数据计算电路的技术细节如图1-图8和相关描述所示,此处不再展开描述。Embodiments of the present disclosure also provide a chip on which a multi-bit data calculation circuit based on an analog signal is integrated. The technical details of the multi-bit data calculation circuit based on an analog signal are shown in FIGS. 1-8 and related descriptions. No further description here.

本公开的实施例还提供了一种计算装置,该计算装置包括上述实施例描述的芯片。此外,该计算装置还可以包括输入装置、输出装置以及必要的存储器等。其中,输入装置可以包括诸如鼠标、键盘、触控屏、通信网络连接器等,用于输入多比特输入数据、多比特存算数据等。输出装置可以包括诸如显示器、打印机、以及通信网络及其所连接的远程输出设备等等,用于输出多比特累加结果数据等。存储器用于存储上述输入装置输入的数据,以及基于模拟信号的多比特数据计算电路运行过程中产生的数据。存储器可以包括易失性存储器和/或非易失性存储器。易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。Embodiments of the present disclosure also provide a computing device, which includes the chip described in the above embodiments. In addition, the computing device may also include an input device, an output device, and necessary memory. Wherein, the input device may include, for example, a mouse, a keyboard, a touch screen, a communication network connector, etc., and is used for inputting multi-bit input data, multi-bit stored calculation data, and the like. The output device may include, for example, a display, a printer, a communication network and a remote output device connected thereto, etc., for outputting multi-bit accumulation result data and the like. The memory is used to store the data input by the above-mentioned input device, and the data generated during the operation of the multi-bit data calculation circuit based on the analog signal. Memory may include volatile memory and/or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and/or cache memory (cache). Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, and the like.

以上结合具体实施例描述了本公开的基本原理,但是,需要指出的是,在本公开中提及的优点、优势、效果等仅是示例而非限制,不能认为这些优点、优势、效果等是本公开的各个实施例必须具备的。另外,上述公开的具体细节仅是为了示例的作用和便于理解的作用,而非限制,上述细节并不限制本公开为必须采用上述具体的细节来实现。The basic principles of the present disclosure have been described above in conjunction with specific embodiments, but it should be pointed out that the advantages, advantages, effects, etc. mentioned in the present disclosure are only examples rather than limitations, and these advantages, advantages, effects, etc. Various embodiments of the present disclosure must have. In addition, the specific details disclosed above are only for the purpose of illustration and understanding, rather than limitation, and the above details do not limit the present disclosure to be implemented by using the above specific details.

本说明书中各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似的部分相互参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other.

本公开中涉及的器件、装置、设备、系统的方框图仅作为例示性的例子并且不意图要求或暗示必须按照方框图示出的方式进行连接、布置、配置。如本领域技术人员将认识到的,可以按任意方式连接、布置、配置这些器件、装置、设备、系统。诸如“包括”、“包含”、“具有”等等的词语是开放性词汇,指“包括但不限于”,且可与其互换使用。这里所使用的词汇“或”和“和”指词汇“和/或”,且可与其互换使用,除非上下文明确指示不是如此。这里所使用的词汇“诸如”指词组“诸如但不限于”,且可与其互换使用。The block diagrams of devices, devices, devices, and systems involved in the present disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, devices, systems may be connected, arranged, configured in any manner. Words such as "including", "comprising", "having" and the like are open-ended words meaning "including but not limited to" and may be used interchangeably therewith. As used herein, the words "or" and "and" refer to the word "and/or" and are used interchangeably therewith, unless the context clearly dictates otherwise. As used herein, the word "such as" refers to the phrase "such as but not limited to" and can be used interchangeably therewith.

可能以许多方式来实现本公开的电路。例如,可通过软件、硬件、固件或者软件、硬件、固件的任何组合来实现本公开的电路。用于电路中的方法的步骤的上述顺序仅是为了进行说明,本公开的方法的步骤不限于以上具体描述的顺序,除非以其它方式特别说明。此外,在一些实施例中,还可将本公开实施为记录在记录介质中的程序,这些程序包括用于实现根据本公开的电路的功能的机器可读指令。因而,本公开还覆盖存储用于执行根据本公开的电路的功能的程序的记录介质。It is possible to implement the circuits of the present disclosure in many ways. For example, the circuits of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of the steps of the method used in the circuit is for illustration only, and the steps of the method of the present disclosure are not limited to the order of the above specific description, unless otherwise specified. Furthermore, in some embodiments, the present disclosure can also be implemented as programs recorded in recording media including machine-readable instructions for realizing the functions of the circuits according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the functions of the circuit according to the present disclosure.

还需要指出的是,在本公开的电路中,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本公开的等效方案。It should also be pointed out that in the circuit of the present disclosure, each component or each step can be decomposed and/or reassembled. These decompositions and/or recombinations should be considered equivalents of the present disclosure.

提供所公开的方面的以上描述以使本领域的任何技术人员能够做出或者使用本公开。对这些方面的各种修改对于本领域技术人员而言是非常显而易见的,并且在此定义的一般原理可以应用于其他方面而不脱离本公开的范围。因此,本公开不意图被限制到在此示出的方面,而是按照与在此公开的原理和新颖的特征一致的最宽范围。The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

为了例示和描述的目的已经给出了以上描述。此外,此描述不意图将本公开的实施例限制到在此公开的形式。尽管以上已经讨论了多个示例方面和实施例,但是本领域技术人员将认识到其某些变型、修改、改变、添加和子组合。The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the disclosed embodiments to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims (9)

1.一种基于模拟信号的多比特数据计算电路,包括:预设数量个计算单元组和预设数量个加法单元组;1. A multi-bit data computing circuit based on an analog signal, comprising: a preset number of computing unit groups and a preset number of adding unit groups; 对于所述预设数量个计算单元组中的每个计算单元组,该计算单元组对应于目标加法单元组,并具有对应的累加权重,该计算单元组中的每个计算单元的输出端与对应的加法单元的输入端连接;For each computing unit group in the preset number of computing unit groups, the computing unit group corresponds to the target adding unit group and has a corresponding accumulation weight, and the output terminal of each computing unit in the computing unit group is connected to the The input terminal of the corresponding addition unit is connected; 所述目标加法单元组用于为该计算单元组中的每个计算单元分配对应的数位权重,并对每个计算单元输出的计算结果信号按照对应的数位权重进行累加,将累加结果信号经过该加法单元组的信号输出端输出,其中,每个计算单元对应的数位权重基于所述目标加法单元组中的每个加法单元的特性度量值和所述累加权重确定;The target addition unit group is used to assign corresponding digital weights to each calculation unit in the calculation unit group, and to accumulate the calculation result signals output by each calculation unit according to the corresponding digital weights, and pass the accumulated result signals through the The signal output terminal of the adding unit group outputs, wherein the digital weight corresponding to each calculation unit is determined based on the characteristic measurement value of each adding unit in the target adding unit group and the accumulation weight; 所述预设数量个加法单元组中的每个加法单元组包括的各个加法单元的特性度量值的比例关系不同。Each of the adding unit groups included in the preset number of adding unit groups has a different proportional relationship of characteristic measure values of each adding unit. 2.根据权利要求1所述的电路,其中,所述电路还包括预设数量个模数转换器、移位累加器,其中,所述预设数量个模数转换器中的每个模数转换器对应一个加法单元组;2. The circuit according to claim 1, wherein the circuit further comprises a preset number of analog-to-digital converters and a shift accumulator, wherein each analog-to-digital converter in the preset number of analog-to-digital converters The converter corresponds to an addition unit group; 所述预设数量个模数转换器中的每个模数转换器用于接收对应的加法单元组输出的累加结果信号,并根据接收的累加结果信号生成数字信号,以及将得到的数字信号发送至所述移位累加器;Each of the preset number of analog-to-digital converters is used to receive the accumulation result signal output by the corresponding adding unit group, generate a digital signal according to the received accumulation result signal, and send the obtained digital signal to said shift accumulator; 所述移位累加器用于对接收的第二预设数量个数字信号分别按照对应的累加权重进行移位累加操作,得到多比特累加结果数据。The shift accumulator is used to perform shift and accumulation operations on the received second preset number of digital signals respectively according to corresponding accumulation weights to obtain multi-bit accumulation result data. 3.根据权利要求1所述的电路,其中,对于所述预设数量个计算单元组中的计算单元组,该计算单元组包括的每个计算单元对应一个存储单元,所述存储单元用于存储单比特存储数据,每个计算单元用于对对应的存储单元中的单比特数据和输入的单比特输入数据进行计算,并将计算结果信号输入对应的加法单元。3. The circuit according to claim 1, wherein, for a computing unit group in the preset number of computing unit groups, each computing unit included in the computing unit group corresponds to a storage unit, and the storage unit is used for Store single-bit storage data, and each calculation unit is used to perform calculations on the single-bit data in the corresponding storage unit and the input single-bit input data, and input the calculation result signal to the corresponding addition unit. 4.根据权利要求3所述的电路,其中,所述预设数量个计算单元组中的计算单元组由乘法器组成,所述乘法器用于对对应的存储单元中的单比特存储数据和输入的单比特输入数据进行乘法计算,输出计算结果信号。4. The circuit according to claim 3, wherein the computing unit groups in the preset number of computing unit groups are composed of multipliers, and the multipliers are used for storing data and inputting the single bit in the corresponding storage unit The single-bit input data is multiplied, and the calculation result signal is output. 5.根据权利要求4所述的电路,其中,所述乘法器包括第一开关和第二开关,所述第一开关用于在所述乘法器对应的存储单元中的单比特存储数据为第一数据时,将输入的单比特输入数据作为计算结果信号输出,所述第二开关用于在所述乘法器对应的存储单元中的单比特存储数据为第二数据时,将预设电平作为计算结果信号输出。5. The circuit according to claim 4, wherein the multiplier comprises a first switch and a second switch, and the first switch is used for storing data of a single bit in the storage unit corresponding to the multiplier as the first When there is one data, the input single-bit input data is output as a calculation result signal, and the second switch is used to set the preset level Output as a calculation result signal. 6.根据权利要求1所述的电路,其中,对于所述预设数量个加法单元组中的加法单元组,该加法单元组包括的加法单元为电容的容值,且加法单元的特性度量值为电容值;或者,该加法单元组包括的加法单元为晶体管,且加法单元的特性度量值为晶体管的跨导参数。6. The circuit according to claim 1, wherein, for the adding unit groups in the preset number of adding unit groups, the adding unit included in the adding unit group is the capacitance of a capacitor, and the characteristic measurement value of the adding unit is is a capacitance value; or, the adding unit included in the adding unit group is a transistor, and the characteristic measurement value of the adding unit is a transconductance parameter of the transistor. 7.根据权利要求6所述的电路,其中,对于所述预设数量个加法单元组中的加法单元组,若该加法单元组由电容组成,该加法单元组输出的累加结果信号为电压信号,该加法单元组对应的模数转换器用于将所述电压信号转换为数字信号;7. The circuit according to claim 6, wherein, for the adding unit groups in the preset number of adding unit groups, if the adding unit group is composed of capacitors, the cumulative result signal output by the adding unit group is a voltage signal , the analog-to-digital converter corresponding to the adding unit group is used to convert the voltage signal into a digital signal; 若该加法单元组由晶体管组成,该加法单元组输出的累加结果信号为电流信号,该加法单元组对应的模数转换器用于将所述电流信号转换为数字信号。If the adding unit group is composed of transistors, the accumulated result signal output by the adding unit group is a current signal, and the analog-to-digital converter corresponding to the adding unit group is used to convert the current signal into a digital signal. 8.一种芯片,其特征在于,包括根据权利要求1-7中任一项所述的基于模拟信号的多比特数据计算电路。8. A chip, characterized by comprising the multi-bit data calculation circuit based on an analog signal according to any one of claims 1-7. 9.一种计算装置,其特征在于,包括根据权利要求8所述的芯片。9. A computing device comprising the chip according to claim 8.
CN202310014794.6A 2023-01-06 2023-01-06 Multi-bit data calculating circuit, chip and calculating device based on analog signals Active CN115935878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310014794.6A CN115935878B (en) 2023-01-06 2023-01-06 Multi-bit data calculating circuit, chip and calculating device based on analog signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310014794.6A CN115935878B (en) 2023-01-06 2023-01-06 Multi-bit data calculating circuit, chip and calculating device based on analog signals

Publications (2)

Publication Number Publication Date
CN115935878A true CN115935878A (en) 2023-04-07
CN115935878B CN115935878B (en) 2023-05-05

Family

ID=85825319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310014794.6A Active CN115935878B (en) 2023-01-06 2023-01-06 Multi-bit data calculating circuit, chip and calculating device based on analog signals

Country Status (1)

Country Link
CN (1) CN115935878B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5479578A (en) * 1989-06-15 1995-12-26 General Electric Company Weighted summation circuitry with digitally controlled capacitive structures
US9069995B1 (en) * 2013-02-21 2015-06-30 Kandou Labs, S.A. Multiply accumulate operations in the analog domain
US20180211154A1 (en) * 2017-01-25 2018-07-26 Kabushiki Kaisha Toshiba Multiplier accumurator, network unit, and network apparatus
US20190042949A1 (en) * 2018-09-28 2019-02-07 Intel Corporation Methodology for porting an ideal software implementation of a neural network to a compute-in-memory circuit
CN109344964A (en) * 2018-08-08 2019-02-15 东南大学 A multiplication and addition calculation method and calculation circuit suitable for neural network
US10592209B1 (en) * 2018-10-17 2020-03-17 International Business Machines Corporation Charge-scaling multiplier circuit
US20200356848A1 (en) * 2019-05-07 2020-11-12 Cirrus Logic International Semiconductor Ltd. Computing circuitry
US20210158854A1 (en) * 2019-11-27 2021-05-27 Taiwan Semiconductor Manufacturing Company, Ltd. Compute in memory system
US20220075600A1 (en) * 2020-09-08 2022-03-10 Macronix International Co., Ltd. Memory device and operation method thereof
CN114546335A (en) * 2022-04-25 2022-05-27 中科南京智能技术研究院 Memory computing device for multi-bit input and multi-bit weight multiplication accumulation
WO2022199684A1 (en) * 2021-03-26 2022-09-29 南京后摩智能科技有限公司 Circuit based on digital domain in-memory computing

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5479578A (en) * 1989-06-15 1995-12-26 General Electric Company Weighted summation circuitry with digitally controlled capacitive structures
US9069995B1 (en) * 2013-02-21 2015-06-30 Kandou Labs, S.A. Multiply accumulate operations in the analog domain
US20180211154A1 (en) * 2017-01-25 2018-07-26 Kabushiki Kaisha Toshiba Multiplier accumurator, network unit, and network apparatus
CN109344964A (en) * 2018-08-08 2019-02-15 东南大学 A multiplication and addition calculation method and calculation circuit suitable for neural network
US20190042949A1 (en) * 2018-09-28 2019-02-07 Intel Corporation Methodology for porting an ideal software implementation of a neural network to a compute-in-memory circuit
US10592209B1 (en) * 2018-10-17 2020-03-17 International Business Machines Corporation Charge-scaling multiplier circuit
US20200356848A1 (en) * 2019-05-07 2020-11-12 Cirrus Logic International Semiconductor Ltd. Computing circuitry
US20210158854A1 (en) * 2019-11-27 2021-05-27 Taiwan Semiconductor Manufacturing Company, Ltd. Compute in memory system
CN112951294A (en) * 2019-11-27 2021-06-11 台湾积体电路制造股份有限公司 Computing device and computing method
US20220075600A1 (en) * 2020-09-08 2022-03-10 Macronix International Co., Ltd. Memory device and operation method thereof
WO2022199684A1 (en) * 2021-03-26 2022-09-29 南京后摩智能科技有限公司 Circuit based on digital domain in-memory computing
CN114546335A (en) * 2022-04-25 2022-05-27 中科南京智能技术研究院 Memory computing device for multi-bit input and multi-bit weight multiplication accumulation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
万鑫;谈熙;: "一种非二进制权重的高能效比逐次比较型模数转换器", 固体电子学研究与进展 *

Also Published As

Publication number Publication date
CN115935878B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
US11262982B2 (en) Computation circuit including a plurality of processing elements coupled to a common accumulator, a computation device and a system including the same
CN112636745B (en) Logic unit, adder and multiplier
CN108345935A (en) Product and arithmetic unit, network element and network equipment
CN114063975B (en) Computing system and method based on sram memory computing array
CN111652359B (en) Array of multipliers for matrix operations and array of multipliers for convolution operations
CN113741858B (en) In-memory multiplication and addition calculation method, device, chip and computing device
CN113268220B (en) Memory Multiplication Circuit Based on Time Domain and Memory Multiplication and Addition Circuit Based on Time Domain
KR102318819B1 (en) In-memory device for operation of multi-bit Weight
CN113885831A (en) Storage and calculation integrated circuit based on mixed data input, chip and calculation device
CN115495152A (en) Memory computing circuit with variable length input
CN114610267A (en) Optimization method based on exponential function and softmax function, hardware system and chip
JP7255068B2 (en) Memory device and method of operation
CN113516235B (en) A deformable convolution accelerator and a deformable convolution acceleration method
CN115935878B (en) Multi-bit data calculating circuit, chip and calculating device based on analog signals
JP2023503119A (en) Multiplier and operator circuit
CN115756388B (en) Multi-mode storage and calculation integrated circuit, chip and calculation device
CN113743046A (en) Storage and calculation integrated layout structure and data splitting storage and calculation integrated layout structure
CN119669147A (en) Multi-bit data in-memory computing array structure, SRAM and electronic devices
CN111611528A (en) Current integration and charge sharing multi-bit convolution operation module with variable current value
CN118312133A (en) Ultra-high-order binary polynomial multiplier based on Karatsuba
WO2025050822A1 (en) Improved circuit for convolution operation, chip, device, and method
US20240355372A1 (en) Circuit, multiplier-adder, and circuit optimization method
WO2022088157A1 (en) Floating-point number computing circuit and floating-point number computing method
CN115658013B (en) ROM in-memory computing device of vector multiply adder and electronic equipment
CN114168888B (en) An in-memory simulation linear equation solver, solving system and solving method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20251217

Address after: Room 305A, 3rd Floor, Building 6, No. 10 Kegu 1st Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 101111

Patentee after: Beijing Houmo Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: 200131 Shanghai Pudong New Area Haike Road 999, Building 7, 3rd Floor

Patentee before: Shanghai houmo Intelligent Technology Co.,Ltd.

Country or region before: China