Reconfigurable intelligent storage-computing integrated processor and storage-computing architecture design device
By introducing a reconfigurable intelligent in-memory processor and in-memory architecture into the memory, and using selectors and driver components to store data in the column direction, the problem of low memory access efficiency during deep neural network computation is solved, achieving efficient data writing and computation, and reducing energy consumption.
Patent Information
- Application Number
- CN202311099768.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-29
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-08-29
AI Technical Summary
Existing deep neural networks suffer from low memory access efficiency between storage data and computing units when performing computations on devices, resulting in high energy consumption.
Design a reconfigurable intelligent in-memory processor and in-memory architecture. Data is stored in the column direction through selectors and driver components. Data can be written to all storage cells on the storage column in just two cycles. Combined with power supply unit and read unit, the efficiency of data writing and reading is ensured.
It improves data writing efficiency, reduces device power consumption, and completes calculations within the storage unit, reducing the need for long-distance memory access.
Smart Images

Figure CN117389466B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of memory design technology, and in particular to a reconfigurable intelligent in-memory processor and in-memory architecture design device. Background Technology
[0002] With the rapid development of artificial intelligence technology, many machine learning algorithms (such as deep neural network algorithm models) are constantly being updated, and they have achieved great success in many fields such as facial recognition, autonomous driving, and augmented reality (AR) / virtual reality (VR).
[0003] However, applying deep neural networks to various smart devices places high demands on the hardware computing capabilities of these devices (e.g., high throughput and low power consumption) due to the massive amount of data and computation involved. Currently, existing deep neural networks typically employ Computing In Memory (CIM) chips with in-memory computing capabilities when performing computations on devices. This integrates the data accessed by the deep neural network with the computation unit, achieving a unified storage and computation function within the computation unit.
[0004] However, the above read / write methods suffer from low write efficiency. Summary of the Invention
[0005] Therefore, it is necessary to provide a reconfigurable intelligent in-memory processor and in-memory architecture design device that can improve the write efficiency of memory in response to the above-mentioned technical problems.
[0006] In a first aspect, this application provides a reconfigurable intelligent in-memory computing processor and an in-memory computing architecture design device. The device includes:
[0007] Multiple storage units, selectors, and driver components; each selector is connected to a storage unit and a driver component; each storage unit is connected to a selector and a driver component.
[0008] The selector is used to activate the target storage cell in the target column in memory according to the first data to be processed, and send a first driving signal to the driving component; it is also used to activate all storage cells in the target row in memory according to the second data to be processed, and send a second driving signal to the driving component.
[0009] The driving component is configured to write first data to be processed into a target storage unit according to a first driving signal; and to write second data to be processed into all storage units within the target row according to a second driving signal.
[0010] In one embodiment, the target storage unit includes a first target storage unit and a selector, which is further configured to determine the first target storage unit based on a first value contained in the first data to be processed, activate the first target storage unit, and send a first value driving signal to the driving component; correspondingly, the driving component is further configured to write the first value into the first target storage unit based on the first value driving signal.
[0011] In one embodiment, the target storage unit further includes a second target storage unit. After the driving component writes the first value into the first target storage unit, the selector is further configured to determine the second target storage unit based on the second value contained in the first data to be processed, activate the second target storage unit, and send a second value driving signal to the driving component. Correspondingly, the driving component is further configured to write the second value into the second target storage unit based on the second value driving signal.
[0012] In one embodiment, the above-described apparatus further includes a power supply unit, which is connected to each storage unit respectively;
[0013] The power supply unit is used to provide power to each storage unit after the drive component writes the first and second data to be processed into each storage unit.
[0014] In one embodiment, the above-mentioned device further includes: a reading unit; the reading unit is connected to each storage unit and is used to read the data written on each storage unit after the power supply unit provides power to each storage unit to obtain the data to be calculated.
[0015] In one embodiment, the power supply unit includes a pre-charging unit, which is connected to each storage unit respectively;
[0016] The pre-charge unit is used to pre-charge each storage unit before the read unit reads the data to be calculated.
[0017] In one embodiment, the power supply unit further includes a power supply control unit, which is connected to each storage unit;
[0018] The power supply control unit is used to provide power to each storage unit after the pre-charging unit has pre-charged each storage unit.
[0019] In one embodiment, the above-mentioned device further includes: a reading unit; the reading unit is connected to each storage unit and is used to read the data written on each storage unit after the pre-charging unit provides power to each storage unit to obtain the data to be calculated.
[0020] In one embodiment, the above-described apparatus further includes: a logic calculation unit; the logic calculation unit and the reading unit are connected;
[0021] A logic calculation unit is used to perform calculations on the data to be calculated.
[0022] In one embodiment, the above-described device further includes a sensitive amplifier, which is connected to the readout unit and the logic calculation unit respectively;
[0023] A sensitive amplifier is used to amplify the data to be calculated, obtain amplified calculation data, and then send the amplified calculation data to the logic calculation unit for logic calculation.
[0024] The aforementioned reconfigurable intelligent in-memory computing processor and in-memory computing architecture design device includes: multiple storage units, selectors, and driver components. The selectors are connected to each storage unit and the driver component, and each storage unit is connected to the selector and the driver component. It can not only store the input data to be stored in the storage row in the row direction, but also store the input data to be stored in the storage column in the column direction. Compared with the existing methods that can only store the input data to be stored in the storage row in the row direction, or store the input data to be stored one by one in the storage column in the column direction, this solution can store data in each storage unit of the storage column in only two cycles, regardless of how many storage units the storage column contains. This improves the efficiency of data writing to a certain extent. Attached Figure Description
[0025] Figure 1 This is a schematic diagram of a reconfigurable intelligent in-memory computing processor and in-memory computing architecture design device in one embodiment;
[0026] Figure 2 This is a schematic diagram illustrating the process of writing data columns in one embodiment;
[0027] Figure 3 This is a schematic diagram illustrating the process of writing data columns in one embodiment;
[0028] Figure 4 This is a schematic diagram illustrating the data row writing process in one embodiment;
[0029] Figure 5 This is a schematic diagram of a reconfigurable intelligent in-memory processor and in-memory architecture design device in another embodiment;
[0030] Figure 6 This is a schematic diagram of a reconfigurable intelligent in-memory processor and in-memory architecture design device in another embodiment;
[0031] Figure 7 This is a schematic diagram illustrating the data reading process in one embodiment;
[0032] Figure 8This is a schematic diagram of a reconfigurable intelligent in-memory processor and in-memory architecture design device in another embodiment;
[0033] Figure 9 This is a schematic diagram of the data calculation process in the logic computing unit in one embodiment. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0035] In recent years, artificial intelligence (AI) technology has developed rapidly, with various artificial systems simulating human intelligence emerging one after another. The core of AI—machine learning—has also seen continuous updates to its algorithms, particularly deep neural networks, which have achieved tremendous success in areas such as facial recognition, autonomous driving, and augmented reality (AR) / virtual reality (VR), gradually ushering humanity into the intelligent era. However, deep neural networks involve a massive amount of data and computation. Applying them to various intelligent devices places high demands on the hardware's computing power, requiring not only high-speed, high-throughput computing performance but also extremely low power consumption. Faced with the challenges posed by intelligent computing devices, academia and industry have proposed numerous methods to continuously optimize and improve their performance and reduce their energy consumption.
[0036] Research has revealed that deep neural networks consume the majority of system energy during computation due to the long distances between stored data and computation units. Researchers began considering bringing the data requiring memory access and the computation units as close as possible, leading to the development of Computing In Memory (CIM) chips. CIM chips integrate the data requiring memory access with the computation units, combining internal storage and computation within the computation unit. This avoids numerous off-chip memory accesses, resulting in an order-of-magnitude increase in system energy efficiency and providing a bright future for the further widespread application of artificial intelligence.
[0037] Below, we introduce two in-memory computing architectures:
[0038] Example 1: Princeton University first proposed a memory-computing architecture based on Static Random Access Memory (SRAM). This architecture includes input data (e.g., FVBuffer in the diagram), an input data digital-to-analog conversion unit, SRAM storage units, output quantization units, accumulation units, and other peripheral circuit designs. The input data, through the control of the row decoding unit and word line driver (WLDriver), charges and discharges the data stored in the SRAM array onto the bit lines (BL / BLB). Charge is accumulated on the BL / BLB, thus achieving data accumulation in the column direction. Additionally, V... DD The power supply is used to provide power to the SRAM array. The column-based classifier is used to classify the columns in the SRAM array. The write buffer and WD are write driver units used to write input data to the SRAM array.
[0039] Similar to general in-memory computing memory, this in-memory architecture design can operate in two modes: SRAM mode and Classify MODE. In SRAM mode, the circuit can perform normal read and write operations on SRAM cells, just like a traditional SRAM circuit. In Classify MODE, 128 5-bit input data are converted into 128 word lines (WL) via WLDAC. The voltage difference on the BL and BLB of each column corresponds to the multiplication and addition result of the 128 5-bit inputs and 1-bit weight. Finally, a comparator determines the sign of the multiplication and addition result to obtain the classification result. It should be noted that this in-memory architecture design achieves 90% recognition accuracy on handwritten digit datasets, while achieving an energy efficiency of 46.6 pJ / cycle in Classify MODE.
[0040] Furthermore, the calculation process of the above-mentioned in-memory architecture design is as follows: the input data is converted into a voltage signal through a digital-to-analog converter (DAC). The voltage signal is used to activate the word line (WL). When the data is 0, the SRAM cell is turned off, and there is no current path (I) from the SRAM cell to the bitline (BL / BLB). BC When the data is not zero, there is a current path (I) from the SRAM cell to the BL / BLB. BC The current magnitude depends on the voltage across WL. If the data storage is 0, a current path (I) will be provided to BL. BC If the data storage is 1, it will provide a current path (I) to the BLB. BCThe Sense Amplifier (SA) corresponding to BL / BLB quantizes the corresponding charge quantity into 0 / 1 values to complete the calculation.
[0041] Example 2: The Massachusetts Institute of Technology (MIT) presented an in-memory computing design based on a specially designed 10TSRAM cell. The operation it can perform is a multiply and average (MAV) operation with 7-bit input (IN), i.e., 1-bit weight and 7-bit output (OUT).
[0042] The design mainly consists of a 256×64-bit 10TSRAM array, 64 column-oriented digital-to-analog converters (DACs), and 16 row-oriented DACs. Here, Local SRAM Array represents the local SRAM array, Local AnalogAveraging represents local analog averaging, Convolution Inputs represents the inputs, and Convolution outputs represents the outputs.
[0043] Its main operation can be divided into three steps:
[0044] 1. Based on the 7-bit convolutional layer input information (IN), the corresponding digital codeword is converted into the corresponding analog voltage through a DAC and sent to the Global BL (GBL) and Read BL (RBL) of the SRAM array;
[0045] 2. After the voltage sent to the GBL stabilizes, the RWL of the 10 SRAM cell is turned on. According to the weight information stored in the 10 SRAM cell, the voltage on one RBL will maintain the RBL voltage sent to the SRAM cell in the first step, while the other RBL will be discharged to ground, thus realizing the multiplication of a 7-bit IN and a 1-bit binary weight information (weight, W).
[0046] 3. By disabling the RWL on the SRAM cell and shorting the corresponding lateral GBLs together, charge redistribution is achieved. Mathematically, this corresponds to a summation and averaging operation. Finally, the result is quantized by the ADC. This completes one MAV operation.
[0047] The 10TSRAM cell used in the above architecture is shown below. This SRAM cell consists of a 6TSRAM cell for storing 1 bit weight and two read ports (Vin) for implementing multiplication. In the single-bit weighted neural network, the single bit weight has two states: +1 and -1, which correspond to 1 and 0 in the 6TSRAM cell. Before entering the calculation mode, the weight data is written to the SRAM array by performing a write operation on the 6TSRAM cell. This operation is the same as the 6TSRAM write process described above. When entering the calculation mode, the voltage corresponding to the 7-bit IN is sent to RBL and RBLB simultaneously via the DAC. When RWL is open and the data stored in the SRAM is 1, the voltage on RBL is discharged to ground, while the voltage on RBLB remains at its original value, and vice versa. The voltage difference between RBL and RBLB represents the result of multiplying the 7-bit input and the 1-bit weight.
[0048] Both of the above SRAM architecture designs can achieve in-memory computation within the storage unit and can achieve high computational accuracy. However, both designs still suffer from low data write efficiency. This application aims to solve this problem.
[0049] After introducing the background technology of the reconfigurable intelligent in-memory processor and in-memory architecture design device provided in the embodiments of this application, the following focuses on the reconfigurable intelligent in-memory processor and in-memory architecture design device proposed in this solution.
[0050] In one embodiment, such as Figure 1 As shown, a reconfigurable intelligent in-memory computing processor and in-memory computing architecture design device 01 is provided, including multiple storage units 010, selectors 011 and driving components 012; the selectors 011 are respectively connected to each storage unit 010 and driving components 012; each storage unit 010 is respectively connected to the selectors 011 and driving components 012.
[0051] Selector 011 is used to activate the target storage unit in the target column in memory according to the first data to be processed, and send a first driving signal to the driving component 012; it is also used to activate all storage units 010 in the target row in memory according to the second data to be processed, and send a second driving signal to the driving component 012.
[0052] The driving component 012 is used to write the first data to be processed into the target storage unit according to the first driving signal; and is also used to write the second data to be processed into all storage units in the target row according to the second driving signal.
[0053] Multiple storage cells 010 are arranged in a two-dimensional direction to form a static random access memory (SRAM) array. Each storage cell is called a bit and can only store one signal 0 or 1.
[0054] The first data to be processed consists of multiple data that need to be written into a column of the SRAM array, and the second data to be processed consists of multiple data that need to be written into a row of the SRAM array. Both the first data to be processed and the second data to be processed are 0 and 1. For example, the first data to be processed is 0, 1, 1 and 0, and the second data to be processed is 0, 1, 0 and 1.
[0055] The first driving signal can be the location information of the target storage unit in the target column in memory, and the second driving signal can be the location information of all storage units in the target column in memory.
[0056] The target storage cell can be a storage cell in the SRAM array where all written data is the same. For example, the target storage cell can be a storage cell in the SRAM array where all written data is 1, or the target storage cell can be a storage cell in the SRAM array where all written data is 0.
[0057] In the embodiments of this application, such as Figure 1As shown, selector 011 is connected to each storage unit 010 and driver component 012, and each storage unit 010 is connected to selector 011 and driver component 012. If it is necessary to store the first data to be processed into each target storage unit of the target column in memory, the first data to be processed is first sent to the selector. After receiving the first data to be processed, the selector activates the target storage unit in the target column in memory according to a certain type of data in the first data to be processed, and sends the first drive signal of the activated target storage unit to the driver component. After receiving the first drive signal, the driver component writes a certain type of data in the first data to be processed into the target storage unit in the target column according to the first drive signal. Further, after writing into the target storage unit in the target column, the selector activates the remaining storage units in the target column in memory other than the target storage unit according to another type of data in the first data to be processed, and sends the first drive signal of the activated remaining storage units to the driver component. After receiving the first drive signal, the driver component writes the other type of data in the first data to be processed into the remaining storage unit in the target column according to the first drive signal. For example, if the first set of data to be processed (0, 1, 0, and 1) needs to be stored into the target storage units of the target column in memory, then 0, 1, 0, and 1 are first sent to the selector. The selector activates any type of target storage unit in the target column in memory based on the data 0, 1, 0, and 1. For example, it activates the target storage unit in the target column with a value of 1 and sends the first drive signal of the target storage unit with a value of 1 to the drive component. The drive component writes the data with a value of 1 from the first set of data to be processed into the target storage unit. After writing into the target storage unit in the target column, the selector activates the remaining storage units in the target column in memory other than the target storage unit based on the data with a value of 0 from the first set of data to be processed, and sends the first drive signal of the activated remaining storage units to the drive component. After receiving the first drive signal, the drive component writes the data with a value of 0 from the first set of data to be processed into the remaining storage units in the target column according to the first drive signal.
[0058] For example, by using a selector to activate a column in the SRAM array, the first data to be processed is written in column mode, such as... Figure 2 and 3 The write process is divided into two cycles: the first cycle writes to columns with a value of 1, and the second cycle writes to columns with a value of 0. It should be noted that... Figure 2 and Figure 3 013 in the text refers to the power supply unit.
[0059] Similarly, if it is necessary to store the second data to be processed into all storage units of the target row in memory, the second data to be processed is first sent to the selector. After receiving the second data to be processed, the selector activates all storage units in the target row in memory according to the second data to be processed, and sends the second drive signal of all activated storage units to the driver component. After receiving the second drive signal, the driver component writes the second data to be processed into all storage units in the target row according to the second drive signal. For example, if it is necessary to store the first data to be processed 0, 1, 1, and 0 into each target storage unit of the target row in memory, 0, 1, 1, and 0 are first sent to the selector. The selector activates all storage units in the target row in memory according to the data 0, 1, 1, and 0, and sends the second drive signal of all storage units to the driver component. The driver component writes the second data to be processed into all storage units. Figure 4 As shown, when selector 011 activates a row in the SRAM array, the data to be written is written from driver component 012 to each storage cell 010 within that row of the SRAM array, completing the data writing process. It should be noted that... Figure 4 013 in the text refers to the power supply unit.
[0060] The reconfigurable intelligent in-memory computing processor and in-memory computing architecture design device provided in this application includes: multiple storage units, selectors, and driver components. The selectors are connected to each storage unit and the driver component, and each storage unit is connected to the selector and the driver component. It can not only store the input data to the storage row in the row direction, but also store the input data to the storage column in the column direction. Compared with the existing methods that can only store the input data to the storage row in the row direction, or store the input data to the storage column one by one in the column direction, this solution can store data in each storage unit of the storage column in only two cycles, regardless of how many storage units the storage column contains. This improves the efficiency of data writing to a certain extent.
[0061] In one embodiment, the target storage unit includes a first target storage unit. The selector 011 is further configured to determine the first target storage unit based on the first value contained in the first data to be processed, activate the first target storage unit, and send a first value driving signal to the driving component 012. Correspondingly, the driving component 012 is further configured to write the first value into the first target storage unit based on the first value driving signal.
[0062] The first target storage unit can be a storage unit that stores a value of 1 or a storage unit that stores a value of 0.
[0063] In this embodiment of the application, if it is necessary to store the first value contained in the first data to be processed into the first storage unit, the first data to be processed is first sent to the selector. After receiving the first data to be processed, the selector 011 filters out the first value contained in the first data to be processed according to the first data to be processed, determines the first target storage unit according to the first value contained in the first data to be processed, activates the first target storage unit, and then sends the first value driving signal of the first target storage unit to the driving component 012. After receiving the first value driving signal, the driving component 012 writes the first value into the first target storage unit. For example, if it is necessary to store the value 1 in the first data to be processed (0, 1, 0, and 1) into the first target storage unit of the target column in memory, the first data to be processed (0, 1, 0, and 1) is first sent to the selector. After receiving the first data to be processed, the selector 011 filters out the value 1 contained in the first data to be processed, determines the first target storage unit based on the value 1 contained in the first data to be processed, activates the first target storage unit, and then sends the first value driving signal of the first target storage unit to the driving component 012. After receiving the first value driving signal, the driving component 012 writes the value 1 into the first target storage unit.
[0064] In one embodiment, the target storage unit further includes a second target storage unit. After the driving component 012 writes the first value into the first target storage unit, the selector 011 is further configured to determine the second target storage unit based on the second value contained in the first data to be processed, activate the second target storage unit, and send a second value driving signal to the driving component 012. Correspondingly, the driving component 012 is further configured to write the second value into the second target storage unit based on the second value driving signal.
[0065] The second target storage unit can be a storage unit that stores a value of 1 or a storage unit that stores a value of 0.
[0066] In this embodiment, after the driving component 012 writes the first value into the first target storage unit, the selector determines the second target storage unit based on the remaining second value in the first data to be processed, activates the second target storage unit, and then sends the second value driving signal of the second target storage unit to the driving component 012. After receiving the second value driving signal, the driving component 012 writes the second value into the second target storage unit. For example, if it is necessary to store the values other than the value 1 in the first data to be processed (0, 1, 0, 1) into the second target storage unit of the target column in memory, the selector determines the second target storage unit based on the value 0 contained in the first data to be processed, activates the second target storage unit, and then sends the value 0 driving signal of the second target storage unit to the driving component 012. After receiving the value 0 driving signal, the driving component 012 writes the value 0 into the second target storage unit.
[0067] The reconfigurable intelligent in-memory processor and in-memory architecture design device provided in this application embodiment, when storing data on columns in an SRAM array, first stores data with a first value and then stores data with a second value, ensuring that no matter how many storage units are contained in the storage column, it only takes two cycles to store data on each storage unit in the storage column, which improves the efficiency of data writing to a certain extent.
[0068] In one embodiment, such as Figure 5 As shown, the above-mentioned reconfigurable intelligent in-memory processor and in-memory architecture design device 01 also includes a power supply unit 013, which is connected to each storage unit 010.
[0069] The power supply unit 013 is used to provide power to each storage unit 010 after the drive component 012 writes the first data to be processed and the second data to be processed into each storage unit 010.
[0070] In one embodiment, the above-mentioned device 01 further includes: a reading unit 014; the reading unit 014 is connected to each storage unit 010 and is used to read the data written on each storage unit 010 after the power supply unit 013 provides power to each storage unit 010, so as to obtain the data to be calculated.
[0071] The power supply unit 013 can provide power to each storage unit 010 to prevent the loss of data stored in each storage unit 010, and precharge each storage unit 010 before reading the data in each storage unit 010, so that the data stored in each storage unit 010 can be read.
[0072] In this embodiment, the device further includes a power supply unit 013, each power supply unit 013 being connected to each storage unit 010. The power supply unit 013 can provide power to each storage unit 010 after the driving component 012 writes the first and second data to be processed into each storage unit 010, to prevent data loss in each storage unit 010, or to pre-charge each storage unit 010 before reading data from each storage unit 010, so that the data stored in each storage unit 010 can be read. The device also includes a reading unit 014, connected to each storage unit 010, used to read the data written to each storage unit 010 after the power supply unit 013 provides power to each storage unit 010, to obtain the data to be calculated. It should be noted that the reading unit 014 reads one line of data from each storage unit 010 at a time.
[0073] The reconfigurable intelligent in-memory processor and in-memory architecture design device provided in this application embodiment can ensure that data is read and written in whole rows when reading data on each storage unit, thus ensuring data reading efficiency.
[0074] In one embodiment, such as Figure 6 As shown, the power supply unit 013 includes a pre-charging unit 0130, which is connected to each storage unit 010.
[0075] The pre-charge unit 0130 is used to pre-charge each storage unit 010 before the read unit 014 reads the data to be calculated.
[0076] The pre-charge unit 0130 is responsible for basic data read and write functions. When it is necessary to read the data stored in each storage unit 010, it pre-charges each storage unit 010.
[0077] In one embodiment, the power supply unit 013 further includes a power supply control unit 0131, which is connected to each storage unit 010;
[0078] The power supply control unit 0131 is used to provide power to each storage unit 010 after the pre-charging unit 0130 pre-charges each storage unit 010.
[0079] Among them, the power supply control unit 0131 continuously supplies power to each storage unit to ensure the stability of the data stored on each storage unit.
[0080] In one embodiment, the above-mentioned device 01 further includes: a reading unit 014; the reading unit 014 is connected to each storage unit 010 and is used to read the data written on each storage unit 010 after the pre-charging unit 0130 provides power to each storage unit 010 to obtain the data to be calculated.
[0081] In this embodiment, the reading unit is connected to each storage unit and is used to read the data written on each storage unit after the pre-charging unit provides power to each storage unit, thereby obtaining the data to be calculated. The data reading mode is as follows: Figure 7 As shown, the data is read from inside the SRAM array to the read unit 014.
[0082] The reconfigurable intelligent in-memory processor and in-memory architecture design device provided in this application embodiment includes a power supply unit and a reading unit. While ensuring that the written data of the storage unit is not lost, it can also read and write the data on each storage unit in whole rows, thus ensuring the data reading efficiency.
[0083] In one embodiment, such as Figure 8 As shown, the above-mentioned device 01 further includes: a logic calculation unit 015; the logic calculation unit 015 is connected to the reading unit 014;
[0084] The logic calculation unit 015 is used to perform calculations on the data to be calculated.
[0085] The logic calculation unit 015 obtains data from the reading unit 014 and performs calculations based on the obtained data and external input data to realize the calculation function inside the memory.
[0086] In one embodiment, the above-mentioned device 01 further includes: a sensitive amplifier 016, which is connected to the reading unit 014 and the logic calculation unit 015 respectively;
[0087] The sensitive amplifier 016 is used to amplify the data to be calculated, obtain the amplified calculation data, and then send the amplified calculation data to the logic calculation unit 015 for logic calculation.
[0088] The sensitive amplifier 016 is used to amplify the data read by the read unit 014 from each memory cell 010. It should be noted that, due to the small size of SRAM cells and the large load of BL, the outputs of BL and BLB are voltages with relatively high absolute values (e.g., 3~3.5V). Therefore, the sensitive amplifier 016 is needed to amplify the data read by the read unit 014 to obtain the values 0 and 1.
[0089] For example, the computation mode data flow of the logic computation unit 015 is as follows: Figure 9As shown, the reading unit 014 amplifies the read data through the sensitive amplifier 016 to obtain the amplified value, and inputs the amplified value into the logic calculation unit 015. At the same time, the input data is input from the outside into the logic calculation unit 015. The input data and the amplified value complete the logic calculation operation inside the logic calculation unit 015.
[0090] The reconfigurable intelligent in-memory computing processor and in-memory computing architecture design device provided in this application embodiment includes a logic computing unit and a sensitive amplifier, which enables data stored in the storage unit to complete logical calculations within the storage unit without being transmitted to the outside. This improves computing efficiency to a certain extent and further reduces energy consumption compared to long-distance storage and computing.
[0091] Those skilled in the art will understand that Figure 1-9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0092] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0093] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0094] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A reconfigurable intelligent in-memory computing processor and in-memory computing architecture design device, characterized in that, The device includes: a plurality of storage units, a selector, and a drive assembly; the selector is connected to each of the storage units and the drive assembly respectively; each of the storage units is connected to the selector and the drive assembly respectively; The selector is configured to activate a first target storage unit in the target storage unit in the target column in memory according to the first data to be processed, determine the first target storage unit according to the first value contained in the first data to be processed, activate the first target storage unit, and send a first value driving signal to the driving component; it is also configured to activate all storage units in the target row in memory according to the second data to be processed, and send a second driving signal to the driving component. The driving component is configured to write the first value into the first target storage unit according to the first value driving signal; and to write the second data to be processed into all storage units in the target row according to the second driving signal. The target storage unit further includes a second target storage unit. After the driving component writes the first value into the first target storage unit, the selector is further configured to determine the second target storage unit based on the second value contained in the first data to be processed, activate the second target storage unit, and send a second value driving signal to the driving component. Correspondingly, the driving component is further configured to write the second value into the second target storage unit based on the second value driving signal.
2. The apparatus according to claim 1, characterized in that, The device further includes a power supply unit, which is connected to each of the storage units respectively; The power supply unit is used to provide power to each of the storage units after the driving component writes the first data to be processed and the second data to be processed into each of the storage units.
3. The apparatus according to claim 2, characterized in that, The device further includes a reading unit; the reading unit is connected to each of the storage units and is used to read the data written on each of the storage units after the power supply unit provides power to each of the storage units to obtain the data to be calculated.
4. The apparatus according to claim 3, characterized in that, The power supply unit includes a pre-charging unit, which is connected to each of the storage units. The pre-charging unit is used to pre-charge each of the storage units before the reading unit reads the data to be calculated.
5. The apparatus according to claim 4, characterized in that, The power supply unit further includes a power supply control unit, which is connected to each of the storage units; The power supply control unit is used to provide power to each of the storage units after the pre-charging unit pre-charges each of the storage units.
6. The apparatus according to claim 4, characterized in that, The device further includes a reading unit; the reading unit is connected to each of the storage units and is used to read the data written on each of the storage units after the pre-charging unit provides power to each of the storage units to obtain the data to be calculated.
7. The apparatus according to claim 3, characterized in that, The device further includes: a logic calculation unit; the logic calculation unit and the reading unit are connected; The logic calculation unit is used to perform calculations on the data to be calculated.
8. The apparatus according to claim 7, characterized in that, The device further includes a sensitive amplifier, which is connected to the reading unit and the logic calculation unit respectively; The sensitive amplifier is used to amplify the data to be calculated, obtain amplified calculation data, and then send the amplified calculation data to the logic calculation unit for logic calculation.
Citation Information
Patent Citations
In-memory computing method and device based on hybrid storage
CN112015673A
Storage and calculation integrated circuit, chip system and electronic equipment
CN115982092A
