Computing systems and computing methods
By adopting the design of current input and differential sampling stages in the integrated storage and computing system, the decoupling of the input stage and the array is achieved, the problem of coupling between stored data is solved, and the computing efficiency and storage density are improved.
Patent Information
- Application Number
- CN202210054486.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-18
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-01-18
AI Technical Summary
In parallel computing that integrates storage and computing, the input stage is under pressure from different task load changes, and there are coupling problems between stored data, which affects computing efficiency.
By encoding data under constant load, using the design of current input and differential sampling stages, the decoupling of the input circuit and the array is achieved, and the data distribution is changed locally but has global invariance through the complementary data storage mode.
The decoupling of the input stage and the array is achieved, which reduces the coupling effect between devices and improves computing efficiency and memory density.
Smart Images

Figure CN116504285B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of integrated circuits, and more specifically, to the system architecture and working mode of integrated circuit computing chips. Background Art
[0002] With the development of the Internet of Things and cloud computing, the complexity of computing tasks is increasing day by day, which brings greater pressure to computing chips. Among them, the main performance indicators of computing chips can be divided into power consumption and computing power indicators. Whether in energy-constrained scenarios such as the Internet of Things or in scenarios that consume a lot of energy such as cloud computing, power consumption indicators are very critical. Therefore, how to further reduce chip power consumption while providing a given computing power is an important research direction for computing chips.
[0003] The power consumption of computing chips mainly comes from two operations: data reading and writing, and data computing. For specific calculations, such as the reasoning and training calculations involved in deep neural networks, a large number of data reading and writing operations will occur. The target memory for data reading and writing can be divided into on-chip storage and off-chip storage. Since static random access memory (SRAM) is widely used in on-chip storage, its density is low, so its storage capacity is often small. When encountering a large number of data reading and writing operations, it is necessary to access off-chip storage. In examining data reading and writing operations, the charging and discharging of parasitic capacitance around the interconnection wires is the main source of energy consumption. However, off-chip storage uses interconnection wires and pins with larger spacing for data access, which will generate much greater energy consumption than on-chip storage. In response to this phenomenon, deploying data in on-chip storage as much as possible and further reducing data access to on-chip storage are important strategies for optimizing the energy efficiency of computing chips.
[0004] The storage and computing integrated architecture is one of the specific implementations. This architecture can partially solidify the calculation data in the calculation unit by constructing a high-density calculation unit based on memristors, thereby reducing the access operations to the data. At the same time, due to the use of analog calculations, it has a certain robustness for storing data, so it can achieve larger-scale on-chip storage. A typical calculation method is to input a voltage vector V through a digital-to-analog converter (DAC) on one side of the memristor array with a conductance value of the matrix G, and by measuring the output current vector I on the other side of the orthogonal, the matrix-vector multiplication calculation of I=GV can be realized. Among them, in the calculation scenario of neural network reasoning, G corresponds to the network weight and is updated less frequently, and V corresponds to the feature map of the data and is updated more frequently.
[0005] In the existing implementation of storage and computing integration, when performing array-scale parallel computing, there are huge changes in the open area of the array, and there are huge differences in the high and low resistance states of the internal storage nodes. Therefore, the load resistance and capacitance that the input driver stage needs to stably drive may vary greatly. This problem puts a certain amount of pressure on the design of the input circuit.
[0006] In addition, in the same input direction, non-ideal factors such as line resistance will also have different effects on different storage data arrangements, which means that changing the data in a certain memory may affect the adjacent data. Summary of the invention
[0007] The purpose of the present invention is to solve the above problems and to provide a computing system and a computing method.
[0008] The objective of the present invention is achieved through the following technical solutions:
[0009] In a first aspect, a computing system is provided.
[0010] The computing system includes a memory array and peripheral circuits;
[0011] The memory array includes intersecting word lines and bit lines;
[0012] The sum of the data in the memory bits connected to the word line is a constant;
[0013] The peripheral circuit comprises a signal input stage and a signal sampling stage;
[0014] The input stage is connected to the word line;
[0015] The sampling stage is connected to the bit line.
[0016] Further,
[0017] The signal input stage is a current input;
[0018] The signal sampling stage is current sampling.
[0019] Further,
[0020] Combining memory bits connected to the word lines in groups of two without intersection according to adjacent positions;
[0021] The sum of the two bits of data in each of the combinations is a constant.
[0022] Further,
[0023] The memory is a digital memory, that is, the stored data is 1 or 0;
[0024] There are two situations for the bit data in the combination, the first one is 0 and the second one is 1, or the first one is 1 and the second one is 0.
[0025] Further,
[0026] The digital memory comprises a magnetic tunnel junction, wherein the high resistance state stores data 1, and the low resistance state stores data 0, or the high resistance state stores data 0, and the low resistance state stores data 1.
[0027] Further,
[0028] The two bit lines in the group are input to a differential sampling stage.
[0029] Further,
[0030] The memory is an analog memory, that is, the stored data is a data value between 0 and 1, wherein the data value is defined as a corresponding relationship between the measured values of the data reading circuit, and the corresponding relationship is defined as follows:
[0031] The data reading circuit includes a voltage excitation circuit and a current measurement circuit;
[0032] For a certain stored data, when the voltage excitation circuit applies a read voltage, the current value measured by the current measurement circuit is recorded as X;
[0033] For storage data 1, when the voltage excitation circuit applies a read voltage, the current value measured by the current measurement circuit is recorded as Y2;
[0034] For storage data 0, when the voltage excitation circuit applies a read voltage, the current value measured by the current measurement circuit is recorded as Y1;
[0035] Then the storage data corresponding to the measured value of the data reading circuit is (X-Y1) / (Y2-Y1);
[0036] The bit data in the combination satisfies that when the first bit stores data x, the second bit stores data 1-x, where x is a data value between 0 and 1.
[0037] Further,
[0038] The two bit lines in the group are input to a differential sampling stage.
[0039] Furthermore, the memory includes one or more of a magnetoresistive memory, a resistive random access memory, a phase change memory, a ferroelectric memory, a static random access memory, a dynamic random access memory, a floating gate memory and a charge trapping memory.
[0040] In a second aspect, a computing method of the computing system according to the first aspect is provided, comprising:
[0041] Step 1, setting the potential of the sampling stage input terminal to be the same as the zero potential of the input stage;
[0042] Step 2, applying an excitation signal to the input stage;
[0043] Step 3, performing signal sampling at the sampling stage;
[0044] Step 4: Mapping the signal sampling value to the calculated value according to the corresponding relationship between the calculated value and the signal sampling value;
[0045] The order of precedence is that step 2 precedes step 3, step 1 precedes step 3, and step 3 precedes step 4.
[0046] Further,
[0047] The excitation signal applied at the input stage is a current signal;
[0048] The signal sampling performed at the sampling stage is current sampling.
[0049] The beneficial effects of the present invention are as follows: the present invention can realize decoupling of the input stage and the array during the calculation process, and decoupling between array units.
[0050] Those skilled in the art will recognize additional features and advantages upon reading the following detailed description, and upon viewing the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A typical storage and computing integration implementation method is shown;
[0053] Figure 2 A 2*3 simulation storage and computing system is shown;
[0054] Figure 3 A 2*4 analog storage and computing system with differential output is shown;
[0055] Figure 4 A complementary bit combination based on a single-tube single-resistance memory is shown;
[0056] Figure 5 A complementary resistive memory structure with shared transistors is shown;
[0057] Figure 6 A complementary bit combination based on charge storage is shown;
[0058] Figure 7A complementary bit combination based on static random access memory is shown;
[0059] Figure 8 A complementary bit combination based on dynamic random access memory is shown. DETAILED DESCRIPTION
[0060] In the following specific embodiments, reference is made to the accompanying drawings that form a part of the present invention, wherein the specific embodiments that can implement the present invention are shown by way of diagrams. It should be understood that other embodiments can be utilized and structural or logical changes can be made without departing from the scope of the present invention. For example, the features shown or described for one embodiment can be used for or in combination with other embodiments to produce another embodiment. It is intended that the present invention includes these modifications and variations. Specific language (which should not be interpreted as limiting the scope of the appended claims) is used to describe the embodiments. The accompanying drawings are not drawn to scale and are for illustration purposes only.
[0061] The technical problem that the present invention seeks to solve is: how to overcome the problem of input stage changes in response to different task loads in parallel computing with integrated storage and computing, and the coupling between storage data in some cases.
[0062] refer to Figure 1 As shown, the current mainstream in-memory calculation method is to input a voltage vector V through a voltage digital-to-analog converter (DAC) on one side of a memristor array whose conductance value is a matrix G, and by measuring the output current vector I on the other orthogonal side, the matrix-vector multiplication calculation of I=GV can be implemented.
[0063] In the implementation of storage and computing integration, in order to increase the amount of calculation for each calculation operation, multiple columns will be opened at the same time. Therefore, the input stage will need to drive multiple devices. In large-scale arrays, the number of drivers can be as high as thousands. At the same time, if the storage unit is an analog value, there may be hundreds of times the difference between its high resistance state and low resistance state. Considering these two factors, the load of the input drive may differ by 5 orders of magnitude, which will cause a certain amount of pressure on the input circuit. The present invention can achieve decoupling of the input circuit and the array by encoding data under the restriction of a constant load. Reference Figure 2As shown, in this embodiment, a computing system with an input width of 2 and an output width of 3 is provided. The system includes current digital-to-analog converters 201, 202 for input, current analog-to-digital converters 241, 242, 243 for output, word lines 151, 152, bit lines 261, 262, 263, and a memory array 220. The data of the memory bits in the memory array satisfy the requirement that the sum is a constant in the input direction. Specifically, for the input word line 152, the data sum of the corresponding memory bits 221, 222, 223 is a constant, and for the input word line 151, the data sum of the corresponding memory bits 231, 232, 233 is a constant.
[0064] In addition, in the same input direction, data between different memory bits may also be coupled, so that writing to a certain device will affect other devices. This means that the array cannot be written randomly. In the case of voltage input, coupling may occur between devices due to factors such as line resistance. In the case of current input, due to the overall conservation of current, there is naturally coupling between devices. To address this problem, the present invention proposes a complementary data storage mode that enables the data distribution in the array to change only locally while maintaining global invariance. Reference Figure 3 As shown, in this embodiment, a computing system with an input width of 2 and an output width of 4 is provided. The system includes current digital-to-analog converters 301, 302 for input, current analog-to-digital converters 331, 332 for output, and a memory array 320. The memory bits in the memory array 320 are combined in groups of two according to the relationship of adjacent positions. Specifically, for the input interconnection line 345, the memory bits 311 and 312 belong to the combination 321, and the memory bits 313 and 314 belong to the combination 322. For the input interconnection line 346, the memory bits 315 and 316 belong to the combination 323, and the memory bits 317 and 318 belong to the combination 324. The data and the data in the combination 321 are recorded as A. 1 , the sum of the data in combination 322 is recorded as A 2 , the data in combination 323 is recorded as A 3 , the data in combination 324 is recorded as A 4 , satisfying the relationship A 1 =A 2 =A 3 =A 4 This method uses the complementary configuration of the bits in each combination to achieve data encoding using the differences in the bits in the combination. The sampling stage uses differential input. For example, the sampling value of the current analog-to-digital converter 331 is the current I on the bit line 341. 1 and the current I on the bit line 342 2 The difference between .
[0065] The following description provides some embodiments of memory bits and their combinations that meet the requirements of the present application.
[0066] In at least one embodiment, the memory may use a single transistor-single resistor memory (1T-1R) structure. Magnetoresistive memory, phase change memory and resistive memory all belong to this category. Figure 4 As shown, in memory bits 410 and 420, storage media 411 and storage media 412 are used for information storage, respectively. Complementary values are stored in 411 and 412. For example, for magnetoresistive memory, 411 and 412 are both magnetic tunnel junctions, and they have two states, 411 is a high resistance in an antiparallel state and 412 is a low resistance in a parallel state, or 412 is a high resistance in an antiparallel state and 411 is a low resistance in a parallel state. For analog memories such as resistive memory and phase change memory, the conductance of storage medium 411 and the conductance of 412 are in a generalized complementary relationship, that is, the sum is a constant. Further, as Figure 5 As shown, Figure 4 The transistor used as the gating structure can also be shared between data in the same group, thereby improving the memory density. The gating structure can also be implemented by diodes and the like. The input stage is connected to the interconnection line 502, and the sampling stage interconnections 503 and 504 are connected.
[0067] In at least one embodiment, the memory may be a ferroelectric memory, a floating gate memory or a charge trapping memory. Figure 6 As shown, the input stage is connected to the interconnection line 602, and the sampling stage is connected to the interconnections 603 and 604. The conductance of the storage medium 611 and the conductance of 621 are in a generalized complementary relationship, that is, the sum is a constant. For example, in a floating gate memory, 611 is a charge erased state, and 621 is a charge injected state. More specifically, the linear region turn-on conductance of 610 and the linear region turn-on conductance of 620 are adjusted to complementary states. For example, the linear region conductance of transistor 610 is G on;A , the linear region conductance of transistor 620 is G on;B , define G of data 1 on;1 10uS, defines data 0 G on;0 is 2uS, then G on;A and G on;B Satisfies the following relationship:
[0068] G on;A +G on;B =G on;1 +G on;0 =12uS.
[0069] In at least one embodiment, the memory may be a static random access memory. Figure 7As shown, the input stage is connected to the interconnection line 702, and the sampling stage is connected to the interconnection lines 704 and 706. Since the static random access memory uses a latch as an information storage medium, its data naturally has two complementary ends. Therefore, within a group 730, the same storage medium 731 can be used to connect its complementary ends to the memory bits 710 and 720.
[0070] In at least one embodiment, the memory may be a dynamic random access memory. Figure 8 As shown, the input stage is connected to the interconnection line 802, and the sampling stage is connected to the interconnection lines 804 and 805. The dynamic random access memory uses a capacitor as an information storage medium. This embodiment uses the potential of the capacitor to control the conduction of the transistor. For example, the capacitor 811 is charged to a high potential and the capacitor 821 is at a low potential, or conversely, the capacitor 821 is charged to a high potential and the capacitor 811 is at a low potential. Thus, two conduction states can be encoded.
[0071] In at least one embodiment, an array is used in which data configuration is completed, that is, the storage state is as follows. Its conductivity value is G = {G ij;A ,G ij;B ,i=1,2,…,Q,j=1,2,…,P}, corresponding to the memory block of Q*P, where G ij;A and G ij;B In the equation, A and B represent a pair of complementary units, and the subscript i corresponds to the sum index during calculation.
[0072] G A +G B =G on;1 +G on;0 ,
[0073] Among them, G on;1 represents the linear region conductance of data 1, G on;0 Represents the linear region conductance of data 0.
[0074] Data to be calculated M ij ∈[M 0 , M 1 ],satisfy
[0075] M ij =M 0 +e ij *M 1 , where e ij ∈[0,1]
[0076] G ij;A =e ij *G on;0 +(1-e ij )*G on;1
[0077] G ij;B =(1-e ij )*G on;0 +e ij *G on;1
[0078] From the above relationship, we can get
[0079] G ij;A +G ij;B =G on;0 +G on;1
[0080] G ij;A -G ij;B =(2e ij -1)*G on;0 +(1-2e ij )*G on;1
[0081] =1*(G on;1 -G on;0 )+2e ij *(G on;0 -G on;1 )
[0082] =D-2e ij *D
[0083] Among them, G on;1 -G on;0 Denoted as D.
[0084] The calculation method is as follows, including:
[0085] First, the potential of the input terminal of the sampling stage of the analog-to-digital converter is set to be the same as the zero potential of the input stage of the digital-to-analog converter, which can be a fixed voltage, such as GND;
[0086] Continuing, the input data IN to be calculated is applied to the input stage of the digital-to-analog converter. i Proportional to the excitation signal, voltage V i =c*IN i , c is the proportionality coefficient. Calculate and store Σ i IN i , denoted as F;
[0087] Continuing, sampling the differential signal between the complementary input terminals is performed at the analog-to-digital converter sampling stage;
[0088] Continuing, the signal sampling value may be mapped to the calculated value according to the following calculation process:
[0089] Differential signal sampling value
[0090] I j =Σ i V i *(G ij;A -G ij;B )
[0091] =Σ i V i *[(G on;1 -G on;0 )+2e ij *(G on;0 -G on;1 )]
[0092] =DΣ i V i +2D*Σ i V i *e ij
[0093] =D*c*F+2D*Σ i V i *e ij
[0094] Note that the value OUT needs to be calculated j =Σ i IN i* M ij , we can observe that this value is
[0095] Σ i IN i *M ij =Σ i IN i *(M 0 +e ij *M 1 )
[0096] =M 0 *Σ i IN i +M 1 *Σ i IN i *e ij
[0097] =M 0 *F+M 1 / c*Σ i V i *e ij
[0098] =M 0 *F+M 1 / c*(I j -D*c*F) / (2D)
[0099] Thus, the physical value I obtained by sampling is completed j and dimensionless calculated value OUT j The mapping between.
[0100] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0101] The above is only a preferred embodiment of the present invention. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the above disclosed methods and technical contents without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.
Claims
1. A computing system, characterized in that: The computing system includes a memory array and peripheral circuits; The memory array includes intersecting word lines and bit lines; The sum of the data in the memory bits connected to the word line is a constant; Combining memory bits connected to the word lines in groups of two without intersection according to adjacent positions; The sum of the two bits of data in each of the combinations is a constant; The peripheral circuit comprises a signal input stage and a signal sampling stage; The input stage is connected to the word line; The sampling stage is connected to the bit line.
2. The computing system according to claim 1, characterized in that: The signal input stage is a current input; The signal sampling stage is current sampling.
3. The computing system according to claim 1 or 2, characterized in that: The memory is a digital memory, that is, the stored data is 1 or 0; There are two situations for the bit data in the combination, the first one is 0 and the second one is 1, or the first one is 1 and the second one is 0.
4. The computing system according to claim 3, characterized in that: The digital memory comprises a magnetic tunnel junction, wherein the high resistance state stores data 1, and the low resistance state stores data 0, or the high resistance state stores data 0, and the low resistance state stores data 1.
5. The computing system according to claim 4, characterized in that: The two bit lines in the group are input to a differential sampling stage.
6. The computing system according to claim 1 or 2, characterized in that: The memory is an analog memory, that is, the stored data is a data value between 0 and 1, wherein the data value is defined as a corresponding relationship between the measured values of the data reading circuit, and the corresponding relationship is defined as follows: The data reading circuit includes a voltage excitation circuit and a current measurement circuit; For a certain stored data, when the voltage excitation circuit applies a read voltage, the current value measured by the current measurement circuit is recorded as X; For storage data 1, when the voltage excitation circuit applies a read voltage, the current value measured by the current measurement circuit is recorded as Y2; For storage data 0, when the voltage excitation circuit applies a read voltage, the current value measured by the current measurement circuit is recorded as Y1; Then the storage data corresponding to the measured value of the data reading circuit is (X-Y1) / (Y2-Y1); The bit data in the combination satisfies that when the first bit stores data x, the second bit stores data 1-x, where x is a data value between 0 and 1.
7. The computing system according to claim 1 or 2, characterized in that: The two bit lines in the group are input to a differential sampling stage.
8. The computing system according to claim 1 or 2, characterized in that: The memory includes one or more of a magnetoresistive memory, a resistive random access memory, a phase change memory, a ferroelectric memory, a static random access memory, a dynamic random access memory, a floating gate memory and a charge trapping memory.
9. A computing method of the computing system according to any one of claims 1 to 8, characterized in that: include: Step 1, setting the potential of the sampling stage input terminal to be the same as the zero potential of the input stage; Step 2, applying an excitation signal to the input stage; Step 3, performing signal sampling at the sampling stage; Step 4: Mapping the signal sampling value to the calculated value according to the corresponding relationship between the calculated value and the signal sampling value; The order of precedence is that step 2 precedes step 3, step 1 precedes step 3, and step 3 precedes step 4.
10. The calculation method according to claim 9, characterized in that: The excitation signal applied at the input stage is a current signal; The signal sampling performed at the sampling stage is current sampling.
Citation Information
Patent Citations
Computing system of resistive memory
CN110390074A
Cited By
Calculation method of array lateral electrode spacing
CN120706108A
