Analog storage and analog computation method, computing system
By adopting a shared mode of self-aligned excitation and sampling circuits in the analog computing system, combined with the stable state of memory such as magnetic tunnel junctions, the problem of uniformity of analog cell metrics is solved, efficient collaborative computing of multi-core computing systems is realized, and additional costs and testing complexity are reduced.
Patent Information
- Application Number
- CN202210053712.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-18
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-01-18
AI Technical Summary
In large-scale analog computing systems, it is difficult to guarantee the uniformity of the metric of the analog unit, which makes it difficult to conduct collaborative computing among multiple computing cores on the chip, and the correction process increases the additional chip area and testing costs.
The system adopts a self-aligned operating mode for analog cells. By sharing the same circuit in the excitation circuit and sampling circuit, the consistency of linear characteristics is ensured. The self-alignment measurement is achieved by adjusting the state of the memory cells through a cyclic calibration process. The system utilizes memory such as magnetic tunnel junctions and static random access memory to achieve a stable state. It also shares transistor gating structures to achieve self-consistent data interaction in multi-core computing systems.
It enables collaborative computing among large-scale simulation units in multi-core computing systems, reducing costs and improving computational accuracy and efficiency.
Smart Images

Figure CN116504286B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of integrated circuits, and more specifically, relates to the architecture and operation of integrated circuit computing chips. Background Technology
[0002] With the development of the Internet of Things (IoT) and cloud computing, the complexity of computing tasks is increasing daily, putting greater pressure on computing chips. The main performance indicators of computing chips can be divided into power consumption and computing power. Whether in energy-constrained scenarios such as IoT or energy-intensive scenarios such as cloud computing, power consumption is crucial. 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 parts of operations: data read / write and data computation. For specific computations, such as inference and training computations involved in deep neural networks, a large number of data read / write operations occur. The target memory for data read / write can be divided into on-chip memory and off-chip memory. Since on-chip memory widely uses static random access memory (SRAM), its density is relatively low, and therefore its storage capacity is often small. When encountering a large number of data read / write operations, it is necessary to access off-chip memory. Examining data read / write operations, the charging and discharging of parasitic capacitances around interconnects is the main source of energy consumption. Off-chip memory accesses data through interconnects and pins with larger spacing, resulting in much higher energy consumption than on-chip memory. To address this phenomenon, deploying data in on-chip memory as much as possible and further reducing data access to on-chip memory are important strategies for optimizing the energy efficiency of computing chips.
[0004] In-memory computing architecture is one specific implementation of this approach. This architecture constructs high-density computing units based on memristors, allowing computational data to be partially embedded within these units, thus reducing data access operations. Simultaneously, due to its analog computing method, it exhibits robustness to stored data, enabling larger-scale on-chip storage. A typical computation method involves inputting a voltage vector V to one side of a memristor array with a conductance matrix G via a digital-to-analog converter (DAC), and measuring the output current vector I on the other orthogonal side to perform a matrix-vector multiplication calculation of I = GV. In the context of neural network inference, G corresponds to the network weights and is updated less frequently, while V corresponds to the feature map of the data and is updated more frequently. It can be seen that the effective implementation of this scheme relies on the linearity of three parts: input linearity, memory linearity, and output linearity. Furthermore, a less obvious requirement is that each unit in these three parts must satisfy a unified linear relationship, or a unified metric.
[0005] Because in-memory computing systems utilize a large number of analog units, standardizing their metrics can be problematic. For analog units located in numerous different positions, such as analog-to-digital converters, the reference analog signal may experience attenuation factors such as voltage drops between and on the chip, leading to differences in parameters such as dynamic range. In multi-core chip scenarios, the number of analog units further increases, making it even more difficult to standardize metrics across multiple computing cores on the chip. Summary of the Invention
[0006] The purpose of this invention is to solve the above-mentioned problems and to propose a method and system for simulating storage and simulating computation.
[0007] The objective of this invention is achieved through the following technical solution:
[0008] Firstly, a method for simulating storage and simulating computation is provided.
[0009] It includes two steps: simulated storage and simulated computation;
[0010] The simulation calculations use the memory in the simulation storage operations;
[0011] The simulated storage uses a read excitation circuit to apply excitation, and a read sampling circuit to sample the storage result.
[0012] The simulation calculation uses a computational excitation circuit to apply excitation, and a computational sampling circuit to sample the calculation results.
[0013] There is a shared circuit between the read excitation circuit and the calculate excitation circuit;
[0014] The reading sampling circuit and the calculation sampling circuit share some circuitry.
[0015] Furthermore, the read excitation circuit and the calculation excitation circuit are digital-to-analog converters, and the read sampling circuit and the calculation sampling circuit are analog-to-digital converters.
[0016] Furthermore, the shared circuitry indicates that the analog storage and the analog computation employ the same excitation circuitry and the same sampling circuitry.
[0017] Furthermore, in the memory, each storage bit has at least two stable states, and the states remain consistent across multiple writes.
[0018] Furthermore, the memory uses a magnetic tunnel junction or static random access memory as the information storage medium.
[0019] Furthermore, the memory includes one or more of the following: resistive switching memory, phase change memory, ferroelectric memory, dynamic random access memory, floating gate memory, and charge trapping memory.
[0020] Furthermore,
[0021] The method first writes data into the memory according to the target stored value, which is denoted as step one;
[0022] The memory is then read through the read sampling circuit to obtain the analog stored value, which is recorded as step two;
[0023] Then, based on the target stored value and the simulated stored value, repeat steps one and two until the difference between the target stored value and the simulated stored value is less than a preset value, and then perform simulation calculation.
[0024] Furthermore,
[0025] The memory is an array type; the analog storage includes data writing and data reading.
[0026] During the reading process, a voltage input or a current input is applied to perform current sampling, and the sampling terminal voltage of the reading sampling circuit is fixed and denoted as voltage one.
[0027] During the calculation process, the excitation is a voltage input or a current input, applied to the interconnect lines of the memory array;
[0028] The sampling process is current sampling, and the sampling terminal voltage of the calculation sampling circuit is fixed at voltage one.
[0029] Secondly, a multi-core computing system is provided, which includes at least two computing cores;
[0030] The computing core is capable of performing simulated storage and simulated computation as described in the first aspect;
[0031] During the internal simulation storage and simulation calculation process of the computing core, the applied excitation circuit is shared, and the result sampling is shared, thereby realizing self-aligned measurement.
[0032] The beneficial effect of this invention is that it enables collaboration between large-scale simulation units during parallel simulation computation at a lower cost.
[0033] Those skilled in the art will recognize the additional features and advantages when reading the following detailed description and looking at the accompanying drawings. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1 This demonstrates a typical in-memory computing simulation method;
[0036] Figure 2 This demonstrates an in-memory computing system with coupled read and compute loops;
[0037] Figure 3 This demonstrates a method for read / write verification;
[0038] Figure 4 This paper illustrates an implementation method for an in-memory computing system that couples the read loop and the compute loop.
[0039] Figure 5 A memory cell using transistor gating is shown;
[0040] Figure 6 This illustrates the relationship between memory state and read / write cycles;
[0041] Figure 7 A structure based on a charge memory is shown;
[0042] Figure 8 An architecture based on static random access memory is shown;
[0043] Figure 9 An architecture based on dynamic random access memory is shown;
[0044] Figure 10 This paper presents a memory-based multi-core computing system with coupled read and compute loops. Detailed Implementation
[0045] In the following detailed description, reference is made to the accompanying drawings, which form part of this invention, wherein specific embodiments in which the invention may be practiced are illustrated by way of illustration. It should be understood that other embodiments may be utilized and structural or logical changes may be made without departing from the scope of the invention. For example, features shown or described for one embodiment may be used or combined with other embodiments to produce yet another embodiment. It is intended that the invention include these modifications and variations. Embodiments are described using specific language (which should not be construed as limiting the scope of the appended claims). The drawings are not drawn to scale and are for illustrative purposes only.
[0046] The technical problem that this invention aims to solve is: how to ensure the consistency of metrics in a large-scale simulation computing system.
[0047] like Figure 1 As shown, a typical in-memory computing analog computing method involves inputting a voltage vector V to one side of a memristor array with a conductance matrix G via a digital-to-analog converter (DAC), and then measuring the output current vector I on the other orthogonal side to perform matrix-vector multiplication calculations such as I = GV. It can be seen that the effective implementation of this scheme relies on the linearity of three parts: input linearity, memory linearity, and output linearity. In addition, a less obvious requirement is that each unit in these three parts needs to satisfy a unified linear relationship, or rather, a unified measurement. It is worth noting that this problem does not exist in traditional digital circuits. This is because in gate-level circuits, meaningful values are the signal and V. dd The logical relationship of / 2, where V dd Since it is the power supply voltage, changes in its absolute value will not affect the circuit.
[0048] Because in-memory computing systems utilize a large number of analog units, achieving uniformity in metrics can be problematic. Traditional digital-to-analog converters (DTCs) use reference circuits to correct each unit. However, this approach has several drawbacks: First, for large-scale analog circuits, the correction process incurs additional chip area and testing costs. Second, for numerous analog units located in different positions, such as in analog-to-digital converters and digital-to-analog converters, the analog signal from the reference circuit may experience attenuation factors like voltage drops when transmitted to the analog units, thus degrading the effectiveness of the correction process itself. In multi-core chip scenarios, the number of analog units further increases, making uniformity across multiple computing cores on the chip even more difficult.
[0049] To address the problems of existing solutions, this application proposes a working mode based on simulation cell self-alignment, which enables it to work normally under the metric of the local simulation cell itself, without needing to ensure that all simulation cells meet a uniform metric.
[0050] like Figure 2 As shown, a storage system includes an excitation circuit 201, a memory 202, a sampling circuit 204, and a control circuit 203. To achieve accurate calculations, it is necessary to ensure the linearity described above and the accuracy of the data stored in the memory cells under defined metrics.
[0051] To achieve linear operation, the linearity of the three parts mentioned above is achieved as follows. First, among the excitation circuit 201 (input), the sampling circuit 204 (output), and the memory 202 (providing the conversion between the two), an ideal linear unit is required. In this embodiment, the memory 202 is used as the ideal linear unit. Further, one of the three needs to be selected as an internal reference. In this embodiment, the excitation circuit 201 is used as the reference. For a given memory state, the output of the excitation circuit is changed, for example, by traversing the digital states of the digital-to-analog converter in which the excitation circuit is a digital-to-analog converter. For the sampling circuit, the theoretical sampled value under the current input of the excitation circuit and the memory state can be calculated. The sampling circuit is then calibrated based on the theoretical and actual sampled values. Thus, a sampling circuit 204 that is linear under the measurement of the excitation circuit 201 can be obtained.
[0052] For each linear cell, the accuracy of the data stored in the memory cell under the defined metric is further achieved in the following way: (e.g.) Figure 2 As shown in Figure 3, taking storage cell 210 as an example, the calculation is implemented through read circuit 211. For a given input to excitation circuit 201, the current state of memory 202 can be used to obtain an actual sampled value, i.e., the analog stored value Y, in sampling circuit 204. For a given input to excitation circuit 201, the target state of memory 202 can be used to calculate the theoretical sampled value of the sampling circuit, i.e., the target stored value X. The state of storage cell 210 is modified by applying a write stimulus based on the difference between the actual sampled value and the theoretical sampled value. For example... Figure 3 As shown, steps 301, 302, 303, and 304 are repeated until the difference between the actual sampled value and the theoretical sampled value is less than a predetermined threshold Δ.
[0053] During the calculation process, the same excitation circuit 201, memory 202, and sampling circuit 204 are used. Taking memory unit 201 as an example, the calculation is implemented through calculation loop 212. Since the same loop as the read loop is used, during the calculation process, for different inputs defined by the input data given by the excitation circuit, according to the linear relationship, the sampled value of the sampling circuit will be consistent with the theoretical value.
[0054] like Figure 4 As shown, in at least one embodiment, the excitation circuit used for reading and calculation is a voltage digital-to-analog converter, and the sampling circuit used for reading and calculation is a current analog-to-digital converter.
[0055] like Figure 5As shown, in at least one embodiment, the memory structure can be selected using a transistor. This transistor can also be shared among multiple memory structures. This memory structure can be a two-terminal magnetic tunneling junction, a two-terminal resistive switching memory, or a two-terminal phase-change memory, or a two-terminal structure in a multi-terminal device.
[0056] like Figure 6 As shown, the correction process requires each storage bit to have at least two stable states, and these states must remain consistent across multiple write operations. Taking magnetic random access memory (MRRAM) as an example, due to the negative feedback characteristic of its state storage, the state differences are small between multiple read / write cycles.
[0057] like Figure 7 As shown, in at least one embodiment, the memory structure can use transistors with storage capabilities for gating and storage. Floating-gate memories, single-transistor ferroelectric memories, and charge-trapping memories all belong to this category.
[0058] like Figure 8 As shown, in at least one embodiment, the storage structure can use the storage structure 811 of a static random access memory.
[0059] This storage structure can provide a stable voltage to control the switching of transistors, thereby configuring the resistance between the input and output ports of the computing array.
[0060] like Figure 9 As shown, in at least one embodiment, the storage structure can use the storage structure 911 of dynamic random access memory.
[0061] This memory structure can provide a stable voltage to control the switching of transistors, thereby configuring the resistance between the input and output ports of the computing array. The capacitors in memory structure 911 can be non-volatile structures based on ferroelectric materials, thus avoiding repeated data refresh processes.
[0062] like Figure 10 As shown, a multi-core computing system contains multiple computing cores, which can perform the aforementioned analog storage and analog computation. Different computing cores are calibrated and configured with memory according to their internal circuits, thereby enabling self-consistent data interaction and computational content integration between different computing cores.
[0063] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on its differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0064] The above description is merely a preferred embodiment of the present invention. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make many possible variations and modifications to the technical solutions of the present invention using the methods and techniques disclosed above, or modify them into equivalent embodiments with equivalent changes, without departing from the scope of the technical solutions of the present invention. Therefore, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solutions of the present invention shall still fall within the protection scope of the technical solutions of the present invention.
Claims
1. A method for simulating storage and simulating computation, characterized in that, It includes simulated storage and simulated computation; the simulated computation uses the memory in the simulated storage operation; the simulated storage uses a read excitation circuit to apply excitation, and a read sampling circuit to sample the stored results; The simulation calculation uses a computational excitation circuit to apply excitation, and a computational sampling circuit to sample the calculation results. The read excitation circuit and the calculation excitation circuit share circuitry; the read sampling circuit and the calculation sampling circuit share circuitry. The memory is an array type; the simulated storage includes data writing and data reading; according to the target storage value, data is written to the memory, which is recorded as step one; the memory is read through the read sampling circuit to obtain the simulated storage value, which is recorded as step two; according to the target storage value and the simulated storage value, step one and step two are executed repeatedly until the difference between the target storage value and the simulated storage value is less than a preset value, and then simulation calculation is performed; During the reading process, a voltage input or a current input is applied to perform current sampling; During the calculation process, the excitation is a voltage input or a current input, applied to the interconnect lines of the memory array; The sampling in the calculation process is current sampling, and the sampling terminal voltage of the reading sampling circuit is the same as the sampling terminal voltage of the calculation sampling circuit.
2. The method according to claim 1, characterized in that, The read excitation circuit and the calculation excitation circuit are digital-to-analog converters, and the read sampling circuit and the calculation sampling circuit are analog-to-digital converters.
3. The method according to claim 1, characterized in that, The shared circuitry indicates that the analog storage and the analog computation use the same excitation circuitry and the same sampling circuitry.
4. The method according to claim 1, characterized in that, In the memory, each storage bit has at least two stable states, and the states remain consistent across multiple writes.
5. The method according to claim 4, characterized in that, The memory uses a magnetic tunnel junction or static random access memory as the information storage medium.
6. The method according to claim 1, characterized in that, The memory includes one or more of the following: resistive random access memory, phase change memory, ferroelectric memory, dynamic random access memory, floating gate memory, and charge trapping memory.
7. A multi-core computing system, characterized in that, It contains at least two computing cores; The computing core is capable of performing simulated storage and simulated computation as described in any one of claims 1-6; During the internal simulation storage and simulation calculation process of the computing core, the applied excitation circuit is shared, and the result sampling is shared, thereby realizing self-aligned measurement.
Citation Information
Patent Citations
In-memory computing chip based on NAND Flash, and control method thereof
CN111128279A
Storage and calculation integrated circuit based on mixed data input, chip and calculation device
CN113885831A
