Mapping method and mapping device for symbolic parameters of memristor array
By selecting multiple columns as reference columns in the memristor array, obtaining reference conductance values and mapping symbolic parameters, the storage wall problem and calculation error problem in traditional data processing are solved, and calculation accuracy and energy efficiency are improved.
Patent Information
- Application Number
- CN202210469130.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-04-28
AI Technical Summary
The traditional von Neumann structure has a storage wall problem in data processing, which causes data to be moved between multi-level storage, resulting in huge energy consumption. In addition, existing memristor arrays have calculation errors and errors in matrix-vector multiply-accumulate operations. Read noise problem.
A symbolic parameter mapping method is adopted. By selecting multiple columns in the memristor array as reference columns, the reference conductance values are obtained based on the conductance values of multiple reference columns and used to map the memristors in non-reference columns. Symbol parameters, reducing read noise and calculation errors. The method includes selecting memristors of multiple reference columns to be set according to the target conductance value, obtaining the average or median of the conductance values of the multiple reference columns as the reference conductance value, and determining the set conductance value based on the relationship between the symbol parameter and the threshold. .
It effectively suppresses the calculation errors caused by the read noise of the memristor device, improves the accuracy of the calculation results, reduces the errors caused by device deviation and conductance state drift, and reduces power consumption and overhead.
Smart Images

Figure CN114863976B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to a mapping method and a mapping device for symbol parameters of a memristor array. Background Art
[0002] With the development of information technology, more and more data needs to be processed quickly and efficiently. However, the traditional von Neumann architecture has an intrinsic storage wall problem, and data needs to be moved between multiple levels of storage, resulting in huge energy consumption.
[0003] As a new type of information processing device, memristor has the function of storage and computing fusion, which can perform computing operations on stored data in situ, thereby eliminating the huge cost of data movement. Memristor arrays can perform operations directly in the analog domain according to Kirchhoff's current law and Ohm's law, thereby realizing matrix-vector multiplication and accumulation operations in one step, and there is no need for the cost of digital-to-analog conversion during the operation. Summary of the invention
[0004] At least one embodiment of the present disclosure provides a method for mapping symbol parameters of a memristor array, the method comprising: selecting multiple columns in the memristor array as multiple reference columns, wherein the memristors in the multiple reference columns are set according to target conductance values; for a first memristor in the memristor array, obtaining a reference conductance value based on multiple conductance values of multiple memristors in the multiple reference columns, wherein the first memristor is not in the multiple reference columns; and using the reference conductance value, mapping a first symbol parameter corresponding to the first memristor to the first memristor.
[0005] For example, in the symbol parameter mapping method of at least one embodiment of the present disclosure, the target conductance values of the respective memristors in the plurality of reference columns are the same as or different from each other.
[0006] For example, in the symbol parameter mapping method of at least one embodiment of the present disclosure, obtaining a reference conductance value based on multiple conductance values of the multiple memristors in the multiple reference columns includes: obtaining the reference conductance value based on multiple conductance values of the multiple memristors that are in the same row as the first memristor and are respectively located in the multiple reference columns.
[0007] For example, in the symbol parameter mapping method of at least one embodiment of the present disclosure, obtaining a reference conductance value based on the multiple conductance values of the multiple memristors of the multiple reference columns includes: obtaining the average or median of the multiple conductance values of the multiple memristors of the multiple reference columns as the reference conductance value.
[0008] For example, in the symbol parameter mapping method of at least one embodiment of the present disclosure, obtaining a reference conductance value based on multiple conductance values of the multiple memristors in the multiple reference columns includes: applying a read voltage in the memristor array to read multiple target conductance values of the multiple memristors in the multiple reference columns to obtain multiple read conductance values; and obtaining the reference conductance value based on the multiple read conductance values.
[0009] For example, the symbol parameter mapping method of at least one embodiment of the present disclosure further includes: obtaining a range N based on the symbol parameter min ~N max Determine the threshold N b ; Obtain the conductance value range G based on the memristor in the memristor array min ~G max The threshold value N is determined b The target conductivity value G b ; Wherein, the threshold N b and the reference conductance value G b ' is used to map the first symbol parameter corresponding to the first memristor into the first memristor.
[0010] For example, in the method for mapping symbol parameters of at least one embodiment of the present disclosure, the threshold N is determined b is the median value of the range of the symbol parameter, i.e. N b =(N min +N max ) / 2, and the target conductivity value G is determined b is the median value of the conductance value range of the plurality of memristors, that is, G b =(G min +G max ) / 2.
[0011] For example, in the method for mapping symbol parameters of at least one embodiment of the present disclosure, using the reference conductance value, mapping the first symbol parameter corresponding to the first memristor to the first memristor includes: mapping the first symbol parameter corresponding to the first memristor to the first memristor according to the first symbol parameter corresponding to the first memristor and the threshold value N b , determine the set conductance value G of the first memristor corresponding to the first symbol parameter ij ; Setting the conductance value of the first memristor to the set conductance value G ij .
[0012] For example, in the symbol parameter mapping method of at least one embodiment of the present disclosure, the set conductance value G of the first symbol parameter corresponding to the first memristor is determined. ij , including: when the first symbol parameter is less than the threshold N bWhen the conductivity value G is set ij Calculated by the following formula:
[0013]
[0014] When the first symbol parameter is greater than the threshold N b When the conductivity value G is set ij Calculated by the following formula:
[0015]
[0016] When the first symbol parameter is equal to the threshold N b When the conductivity value G is set ij Equal to the reference conductance value G b ′.
[0017] At least one embodiment of the present disclosure also provides a mapping device for symbol parameters of a memristor array, the mapping device comprising: a selection unit, configured to select multiple columns in the memristor array as multiple reference columns, wherein the memristors in the multiple reference columns are set according to target conductance values; a parameter acquisition unit, configured to acquire, for a first memristor in the memristor array, a reference conductance value based on multiple conductance values of multiple memristors in the multiple reference columns, wherein the first memristor is not in the multiple reference columns; and a mapping unit, configured to use the reference conductance value to map a first symbol parameter corresponding to the first memristor to the first memristor.
[0018] At least one embodiment of the present disclosure further provides a memory-computing integrated chip, which includes: a memristor array; a mapping device for the symbol parameters of the memristor array. The mapping device includes: a selection unit, configured to select multiple columns in the memristor array as multiple reference columns, wherein the memristors in the multiple reference columns are set according to target conductance values; a parameter acquisition unit, configured to acquire a reference conductance value based on multiple conductance values of multiple memristors in the multiple reference columns for a first memristor in the memristor array, wherein the first memristor is not in the multiple reference columns; a mapping unit, configured to use the reference conductance value to map a first symbol parameter corresponding to the first memristor to the first memristor.
[0019] At least one embodiment of the present disclosure further provides a computer-readable storage medium storing non-transitory computer-readable instructions, which, when executed by a computer, implement the mapping method described in any embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure.
[0021] Figure 1A is a schematic diagram of a data processing device based on a memristor array;
[0022] Figure 1B is a schematic diagram of a memristor array structure;
[0023] Figure 1C is a schematic diagram of a memristor unit having a 1T1R structure;
[0024] Figure 2 A schematic diagram of a memristor array with multiple reference columns proposed in at least one embodiment of the present disclosure;
[0025] Figure 3 Schematic diagram of the distribution of the conductance value of the memristor;
[0026] Figure 4 A flowchart of a mapping method proposed in at least one embodiment of the present disclosure;
[0027] Figure 5 A flowchart of another mapping method proposed in at least one embodiment of the present disclosure;
[0028] Figure 6 A schematic diagram showing the relationship between the standard deviation of the average conductance values of multiple memristors and the number of reference columns;
[0029] Figure 7 It is a schematic diagram comparing the mapping accuracy of multiple reference columns and single reference column;
[0030] Figure 8 A schematic diagram of a mapping device proposed in at least one embodiment of the present disclosure; and
[0031] Fig. 9 A schematic diagram of a storage-computing integrated chip proposed in at least one embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0033] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0034] The present disclosure is described below through several specific embodiments. In order to keep the following description of the embodiments of the present disclosure clear and concise, the detailed description of known functions and known components (elements) may be omitted. When any part (element) of the embodiments of the present disclosure appears in more than one figure, the part (element) is represented by the same or similar reference numeral in each figure.
[0035] Figure 1A The schematic diagram of a data processing device based on a memristor array includes a memristor array 100, an input encoding module 101, a multiplexer 102, a multiplexer 103, and an output quantization module 104. For example, the input encoding module 101 is configured to process an input signal to a corresponding voltage, the processed input signal is input into the memristor array 100 through the multiplexer 102 for calculation, and the calculated processing result (output current) is output to the output quantization module 104 through the multiplexer 103, wherein the output quantization module 104 is configured to perform quantization processing on the output current signal, for example, to obtain a digital signal that can be used for subsequent processing.
[0036] Figure 1B A schematic diagram of a memristor array structure is shown, for example, the memristor array can be used Figure 1A As shown in the situation. Figure 1B As shown, the memristor array is composed of a plurality of memristor units, which form an array of M rows and N columns, where M and N are both positive integers. Each memristor unit includes a switch element and one or more memristors. Figure 1B In, WL <1> , WL <2> ...WL <m>Respectively represent the word lines of the first row, the second row, ... the Mth row, and the control electrode (eg, the gate of the transistor) of the switch element in the memristor unit circuit of each row is connected to the word line corresponding to the row; BL <1> BL <2> ...BL <n>They represent the bit lines of the first column, the second column, ... the Nth column respectively, and the memristors in the memristor unit circuit of each column are connected to the bit lines corresponding to the column; SL <1> , SL <2> ...SL <m>They represent source lines of the first row, the second row, ... the Mth row respectively, and the sources of the transistors in the memristor unit circuit of each row are connected to the source line corresponding to the row. Figure 1B The memristor unit in the memristor array may have a 1T1R structure, for example.
[0037] Figure 1C A schematic diagram of a memristor unit with a 1T1R structure is shown. The memristor unit of the 1T1R structure includes a transistor M1 and a memristor R1, for example, the memristor may be a resistive random access memory. For example, when the transistor M1 is an N-type transistor, its gate is connected to the word line terminal WL, for example, when the word line terminal WL is input with a high level, the transistor M1 is turned on; the first electrode of the transistor M1 may be a source electrode and configured to be connected to the source line terminal SL, for example, the transistor M1 may receive a reset voltage through the source line terminal SL; the second electrode of the transistor M1 may be a drain electrode and configured to be connected to the second electrode (for example, the negative electrode) of the memristor R1, the first electrode (for example, the positive electrode) of the memristor R1 is connected to the bit line terminal BL, for example, the memristor R1 may receive a set voltage through the bit line terminal BL. For example, when the transistor M1 is a P-type transistor, its gate is connected to the word line terminal WL, for example, when the word line terminal WL inputs a low level, the transistor M1 is turned on; the first electrode of the transistor M1 can be a drain and is configured to be connected to the source line terminal SL, for example, the transistor M1 can receive a reset voltage through the source line terminal SL; the second electrode of the transistor M1 can be a source and is configured to be connected to the second electrode (for example, the negative electrode) of the memristor R1, and the first electrode (for example, the positive electrode) of the memristor R1 is connected to the bit line terminal BL, for example, the memristor R1 can receive a set voltage through the bit line terminal BL. It should be noted that the structure of the memristor unit can also be implemented as other structures, such as a structure in which the second electrode of the memristor R1 is connected to the source line terminal SL, and the embodiments of the present disclosure are not limited to this.
[0038] The embodiments of the present disclosure have no restrictions on the type and structure of the memristor device. It should be noted that the transistors used in the embodiments of the present disclosure can all be thin film transistors or field effect transistors (such as MOS field effect transistors) or other switching devices with the same characteristics. The source and drain of the transistor used here can be symmetrical in structure, so the source and drain can be indistinguishable in structure. The embodiments of the present disclosure do not limit the type of transistor used.
[0039] refer to Figure 1A and Figure 1B When using a memristor array for calculation, for example, when multiplying a vector V by a matrix G to obtain a corresponding vector I, first, the conductance matrix is mapped to the memristor array, that is, the conductance values of the multiple memristors in the memristor array are set to correspond to Figure 1A Multiple elements of the matrix G in G 11 ~G mn The value of Figure 1A Multiple elements of the input vector V in V 1 ,V 2 ,…,V m The values of are mapped into multiple input voltage values and applied to multiple bit lines BL of the memristor array respectively; after the turn-on voltage of each transistor in the corresponding row is applied to the required word lines WL at the same time, according to Ohm's law and Kirchhoff's current law, the output current value on each source line SL is the corresponding element I in the output vector I 1 ,I 2 ,…,I n The value of .
[0040] Currently, for the above-mentioned matrix multiplication operation, there are mainly two implementation methods for mapping matrix parameters in the matrix, especially signed numbers (such as positive numbers and negative numbers), to a memristor array with non-negative conductance values.
[0041] One method is the DE (double element) mapping method, which maps each matrix sign parameter to the difference between the conductance values of two memristors. However, the DE mapping method usually requires a memristor array size that is twice the size of the mapped matrix. When a larger signed number matrix needs to be mapped, the power consumption and area overhead of the DE mapping method are very large.
[0042] Another method is the BC (bias column) mapping method, which sets a common column as a reference column in each memristor array, and sets all memristors in the reference column to the same conductance value. The BC mapping method maps the matrix symbol parameter to the difference in conductance between a memristor in a non-reference column and a memristor in a reference column. Although the BC mapping method only requires a memristor array of the same size as the mapped matrix, it has poor resistance to non-ideal characteristics of memristor devices such as read noise and inhomogeneity, thereby affecting the accuracy of the calculation results of the memristor-based storage and computing device.
[0043] At least one embodiment of the present disclosure provides a method for mapping symbol parameters of a memristor array. The method includes: selecting multiple columns in a memristor array as multiple reference columns, wherein the memristors in the multiple reference columns are set according to target conductance values; for a first memristor in the memristor array, obtaining a reference conductance value based on multiple conductance values of multiple memristors in the multiple reference columns, wherein the first memristor is not in the multiple reference columns; using the reference conductance value, mapping a first symbol parameter corresponding to the first memristor to the first memristor.
[0044] At least one embodiment of the present disclosure also provides a mapping device, a storage-computing integrated chip, and a storage medium corresponding to the above-mentioned mapping method.
[0045] The mapping method provided by at least one embodiment of the present disclosure uses multiple columns in a memristor array as reference columns, and obtains reference conductance values based on the conductance values of the memristors of the multiple reference columns, for example, the difference between the conductance value of the memristor in a non-reference column and the reference conductance value represents a matrix symbol parameter. Therefore, the mapping method can effectively suppress the calculation error caused by the read noise of the memristor device, and can also effectively solve the calculation error caused by the device failure and device conductance state drift caused by the physical mechanism and preparation process deviation of the memristor or due to the device yield, thereby improving the accuracy of the calculation results of the memristor array in computing applications.
[0046] Figure 2 A schematic diagram of a memristor array with multiple reference columns is provided in at least one embodiment of the present disclosure. The memristor array may be, for example, Figure 1B The structure shown.
[0047] like Figure 2 As shown, in order to convert the symbol parameter N of the symbol matrix 11 ~N mn The memristors G are mapped to the memristor array 11 ~G mn In the memristor array, select the memristor G 11 ~G mn Multiple columns other than the column are selected as reference columns. For example, K columns (two columns are shown in the figure as an example) are selected as reference columns, that is, G is selected. b11 ~G b1k The column where the K column is located is used as the reference column. For example, the memristor G of the K column is used as the reference column. b11 ~G bmk are set to the target conductance values of the corresponding rows, for example, G b11 ~G b1k As a reference for other memristors in row 1, G b21 ~G b2k As a reference for other memristors in the second row, ..., but the embodiments of the present disclosure are not limited thereto, for example, G b11 and G b1k As a reference for other memristors in row 1 and memristors in other rows (e.g., row m+1), or, for other memristors in row 1, using G b11 ~G b1k and G b21 ~G b2k For example, let the memristor G of column K be the reference column. b11 ~G bmk The conductance value of the memristor G is set (mapped) according to the same target conductance value; or, for example, b11 ~G bmk The conductance value is set (mapped) according to the corresponding different target conductance values. When setting the conductance value of the memristor, a set voltage required for the target conductance value is applied to the memristor, and then a read voltage can be applied to the memristor to sample the current generated thereby to read the conductance value of the memristor, thereby verifying the setting result. If the read conductance value is different from the target conductance value (for example, the difference exceeds the rated error), then it is necessary to re-set and verify.
[0048] For a memristor in the memristor array that is not in the reference column, it is referred to as the "first memristor" here, for example, G mn , obtain a reference conductance value based on a plurality of conductance values of a plurality of memristors in the K reference columns, for example, using the first memristor G in the reference column mn The conductance values of K memristors located in the same row are used to obtain a reference conductance value. For example, the average conductance value of the K memristors is used as the reference conductance value. bm1 ,…,G bmk The average value of the first memristor G mn Using the reference conductance value as a reference value, the first memristor G mn The symbolic parameter N to be mapped mn The value of the first memristor G mn Finally, the conductance value needs to be set; then, the first memristor G mn Apply a set voltage to set its conductance value to the same value as the first memristor G mn The corresponding final conductivity value needs to be set, so as to realize the first symbol parameter N mn Mapped to the first memristor G mn .
[0049] For example, the reference conductance value is usually associated with 0 in the sign-value range, so G mn The difference between the set conductance value and the reference conductance value is used to represent the first memristor G mn The symbolic parameter N to be mapped mn More specifically, for example, Figure 2 In the case shown, G mn The set conductivity value and G bm1 ,…,G bmk Subtracting the average value of G is equivalent to: mn The current value calculated in the column is converted into a quantized voltage value and G bm1 ,…,G bmk The current values calculated in each column are converted and quantized, and then the voltage values obtained by shifting are subtracted, that is, G bm1 ,…,G bmk The average value is equivalent to the voltage value obtained by adding the converted and quantized voltage values of the corresponding output currents of each column and then shifting; here, when k is a positive integer power of 2, the average value can be calculated by shifting. For example, the subtracted voltage difference is then quantized for subsequent processing.
[0050] Figure 3 The distribution diagram of the conductance value of a memristor is shown in Figure 2. Figure 3 As shown in (a) in the figure, for a single memristor device, for example Figure 2 G bmk ,Due to non-ideal factors such as read noise and non-uniformity, the actual read conductivity value presents a normal distribution. Using the conductivity value of a single memristor as a reference value may cause the standard deviation of the mapped symbol parameter to be too large, resulting in poor accuracy of the calculation result. The distribution of the average conductivity values of multiple memristors is shown in Figure 3 As shown in (b) in FIG. 5 , the average conductance of multiple devices will reduce the standard deviation of the corresponding normal distribution. Therefore, compared with a single reference memristor, selecting multiple reference memristors can make the corresponding memristors represent a symbol parameter more accurately.
[0051] Figure 4 The flowchart of a mapping method proposed in at least one embodiment of the present disclosure is as follows. Figure 4 As shown, the mapping method includes the following three steps S110-S130:
[0052] Step S110, selecting a plurality of columns in the memristor array as a plurality of reference columns, and the memristors in the plurality of reference columns are set according to target conductance values;
[0053] Step S120, obtaining a reference conductance value based on a plurality of conductance values of a plurality of memristors in a plurality of reference columns;
[0054] Step S130, using the reference conductance value to map the symbol parameter to the corresponding memristor.
[0055] For step S110, for example, the size of the parameter matrix to be mapped is M*N (i.e., M rows and N columns), and K columns of memristors in the memristor array are selected as reference columns. Then, the required size of the memristor array is at least M*(N+K), where the number of rows M is consistent with the number of rows of the matrix to be mapped, and the number of columns of the memristor array is the number of matrix columns N plus the number of reference columns K.
[0056] The conductance values of the multiple memristors in the K reference columns are set according to the target conductance value, and the target conductance value is used to map the symbol parameter to the corresponding memristor according to the rule. For example, the conductance value of each memristor in the K reference columns can be set according to the same target conductance value, or can be set according to different target conductance values. For example, the multiple memristors in the K reference columns are all set according to the same target conductance value. Although the actual conductance value of each of these memristors may have a large deviation from the target conductance value due to errors and the randomness of the memristors themselves, the deviation from the target conductance value is small when considering them as a whole (such as the average value or the median).
[0057] For step S120, for example, for a certain memristor in the memristor array that needs to be mapped, namely, a "first memristor", a reference value based on a plurality of conductance values of a plurality of memristors in a plurality of reference columns is obtained, and the first memristor is not in the plurality of reference columns. For example, based on a plurality of conductance values of a plurality of memristors that are in the same row as the first memristor and are respectively located in a plurality of reference columns, a reference conductance value is obtained, and then the reference conductance value is used to map a symbol parameter corresponding to the first memristor (hereinafter also referred to as "first symbol parameter") to the first memristor.
[0058] For step S130, for example, for the first memristor, the obtained reference conductance value is used to map the sign parameter corresponding to the first memristor into the memristor, that is, the conductance value of the first memristor is set to the conductance value corresponding to the sign parameter.
[0059] After setting the conductance value of the first memristor, a verification operation may also be performed to verify whether the conductance value of the first memristor is the conductance value corresponding to the first symbol parameter. If not, it needs to be reset and verified again.
[0060] Based on the above method, for each memristor in the memristor array that is not in the reference column, the corresponding reference conductance value can be obtained in the same manner, and the symbol parameters corresponding to these memristors can be mapped to these memristors respectively based on the corresponding reference conductance values, which will not be repeated here.
[0061] The following will refer to Figure 5 The mapping method according to at least one embodiment of the present disclosure is described in detail.
[0062] Figure 5 FIG. 1 is a flowchart of another mapping method proposed in at least one embodiment of the present disclosure. Figure 5 As shown, the mapping method includes steps S111-S1313, which are specifically described as follows.
[0063] In step S111 , K columns of memristors in the memristor array are set as reference columns.
[0064] In step S112, obtain the value range N based on the symbol parameter min ~N max Determine the threshold N b .
[0065] In step S113, the conductance value range G of the memristors in the memristor array is obtained. min ~G max Determine the value corresponding to the threshold N b The target conductivity value G b .
[0066] In step S121 , a read voltage is applied in the memristor array to read a plurality of target conductance values of a plurality of memristors in a plurality of reference columns to obtain a plurality of read conductance values.
[0067] In step S122, based on the multiple read conductance values of the multiple memristors, a reference conductance value G is obtained. b '.
[0068] In step S131, the first symbol parameter to be mapped is determined to be equal to the threshold N. b The size relationship is thus determined by the first symbol parameter N ij The corresponding set conductance value G of the first memristor ij .
[0069] For example, in step S131, it is determined that the first symbol parameter to be mapped is less than the threshold value N. b When , step S1311 is executed, and the set conductance value G of the first memristor corresponding to the first symbol parameter is ij It is calculated by the following formula:
[0070]
[0071] Thus, the first memristor is set to the set conductance value G ij .
[0072] For example, in step S131, it is determined that the first symbol parameter to be mapped is equal to the threshold value N b When , step S1312 is executed, and the set conductance value G of the first memristor corresponding to the first symbol parameter is ij Equal to the reference conductivity value G b ', the first memristor is set to this set conductance value G ij .
[0073] For example, in step S131, it is determined that the first symbol parameter to be mapped is greater than the threshold N. b When , step S1313 is executed, and the set conductance value G of the first memristor corresponding to the first symbol parameter ij It is calculated by the following formula:
[0074]
[0075] Thus, the first memristor is set to the set conductance value G ij .
[0076] A mapping method proposed in at least one embodiment of the present disclosure will be described below with reference to some specific but non-limiting examples.
[0077] For example, in at least one embodiment provided by the present disclosure, K=8 columns of memristors in the memristor array are set as reference columns, and the value range of the symbol parameter matrix required for mapping is obtained to be -4.5 to 4.5, that is, N min =-4.5, N max =4.5, obtain the threshold N determined based on the range of the symbol parameter b , for example, the threshold N b is the median of the symbolic parameter matrix range, that is: N b =(N min +N max ) / 2, take N b =0.
[0078] Assume that the conductance value of the memristor in the memristor array ranges from 2uS to 20uS, that is, G min =2, G max =20, and according to the threshold N b Determine the target conductivity value G b , that is, G b =(G min +G max ) / 2, in this embodiment, G b =11.
[0079] The conductance values of the memristors in the 8 reference columns are set according to the target conductance values, that is, the resistance values of the memristors in these 8 columns are set to the target conductance values. For example, the conductance values of all memristors in the 8 reference columns are set to the target conductance values (i.e., 11uS) calculated above.
[0080] In actual use, although the memristor arrays in the reference column are all set according to the target conductance value, the actual conductance value of each memristor after setting is not strictly equal to the target conductance value, but will be affected by multiple factors (memristor preparation process, temperature, randomness, etc.), so the reference conductance value is obtained by the conductance value actually read from the reference column during use. For example, a read voltage is applied in the memristor array to read multiple target conductance values (i.e., conductance values set according to the target conductance value) of multiple memristors in multiple reference columns to obtain multiple read conductance values. For example, due to non-ideal factors such as read noise and inhomogeneity of the memristor, the multiple read conductance values obtained may not be completely the same as the set target conductance value.
[0081] Based on multiple read conductance values of multiple memristors, a reference conductance value G is obtained. b ', for example, taking the average of multiple read conductance values of multiple memristors in 8 reference columns as the reference conductance value G b '; For another example, for the first memristor that is not in the reference column, the average of the read conductance values of the eight memristors that are in the same row as the first memristor and are respectively located in eight reference columns is taken as the reference conductance value G of the first memristor b '; For another example, for the first memristor that is not in the reference column, the median of the read conductance values of the eight memristors that are in the same row as the first memristor and are respectively located in eight reference columns is taken as the reference conductance value G of the first memristor b '.
[0082] As mentioned above, under ideal conditions, the reference conductivity value G b ' is equal to the target conductivity value, but in practice, the reference conductivity value G b 'May be related to the target conductivity value G b There is a certain deviation. This deviation is determined by the error allowed when checking after setting, for example, it can be selected to be less than or equal to 1%.
[0083] Determine the first symbol parameter and threshold N required for mapping b The magnitude relationship of , thereby determining the set conductance value G of the first memristor corresponding to the first symbol parameter ij , for example, when the symbolic parameter N 11 = -2, judge N 11 Less than the threshold N b , then with the symbol parameter N 11 The corresponding memristor G 11 The set conductivity value is calculated by the following formula:
[0084]
[0085] That is, G is calculated by the following formula: 11 The value of:
[0086]
[0087] Therefore, in an ideal state, the memristor G 11 should be set to 7uS. For example, when the symbol parameter N 23 =0, judge N 23 Equal to threshold N b , then with the symbol parameter N 23 The corresponding memristor G 23 The set conductivity value is equal to G b '; For example, when the symbol parameter N 36 =4, judge N 36 Greater than the threshold N b , then with the symbol parameter N 36 The corresponding memristor G 36 The set conductivity value is calculated by the following formula:
[0088]
[0089] That is, G is calculated by the following formula: 36 The value of:
[0090]
[0091] Therefore, in an ideal state, the memristor G 36 Should be set to 19uS.
[0092] For example, in another embodiment provided by the present disclosure, a threshold N determined based on the range of the symbol parameter is obtained. b , threshold N b It can be determined according to the actual symbol parameters, for example, the threshold N b is any value within the range of the symbolic parameter matrix. Thus, the target conductance value G of multiple memristors in the K-column reference column is determined. b The method is not limited to taking the median, but can refer to the threshold N b The value of is flexibly set, and the target conductance value of each memristor can be the same or different. For example, set the target conductance value G of each memristor in K=11 columns to the reference column. b The same and satisfy the formula:
[0093]
[0094] For example, the target conductance value G of multiple memristors located in the same row in the 11 reference columns is set to b Different, but the average number of multiple target conductance values of multiple memristors G b Satisfy the formula:
[0095]
[0096] In the above example, although multiple memristors are connected according to different target conductance values G b However, when calculating the average value, for example, it is still possible to suppress the deviation caused by the randomness of the individual memristors themselves.
[0097] The above-mentioned methods for setting target conductance values of multiple memristors in multiple reference columns are just some examples listed in the present disclosure, but are not limited thereto.
[0098] Figure 6 is a schematic diagram showing the relationship between the standard deviation of the average conductance values of multiple memristors and the number of reference columns, as shown in Figure 6 As shown in the figure, as the number of reference columns increases from 1 to 16, the standard deviation of the average conductance distribution of the memristors in the reference columns decreases significantly. Therefore, obtaining multiple conductance values of multiple memristors based on multiple reference columns as reference conductance values can effectively suppress the calculation errors caused by non-ideal factors such as device read noise and non-uniformity.
[0099] Figure 7 The following is a comparison diagram of the mapping accuracy of multiple reference columns and single reference column. For example, the relationship between the distribution standard deviation of the number of symbols after mapping and the number of reference columns is as follows: Figure 7 As shown, it can be seen that compared with a single reference column, the distribution standard deviation of the symbol parameters after mapping of multiple reference columns (for example, 8 columns) is significantly reduced. Therefore, the mapping method of symbol parameters for a memristor array proposed in the present disclosure selects multiple columns of memristors as reference columns, which has more accurate calculation results than a single reference column.
[0100] Figure 8 A schematic diagram of a mapping device proposed in at least one embodiment of the present disclosure. Figure 8 As shown, the mapping device 200 includes a selection unit 210, a parameter acquisition unit 220 and a mapping unit 230. For example, these units may be implemented in the form of hardware (eg, circuit), software or firmware, or any combination thereof.
[0101] The selection unit 210 is configured to select multiple columns in the memristor array as multiple reference columns, wherein the memristors in the multiple reference columns are set according to the target conductance values. For example, the selection unit 210 can be implemented as follows: Figure 4 For the specific implementation method of step S110 shown, reference may be made to the relevant description of step S110 and will not be repeated here.
[0102] The parameter acquisition unit 220 is configured to acquire, for a first memristor in the memristor array, a reference conductance value based on a plurality of conductance values of a plurality of memristors in a plurality of reference columns, wherein the first memristor is not in the plurality of reference columns. For example, the selection unit 220 may be implemented as follows Figure 4 For the specific implementation method of step S120 shown, please refer to the relevant description of step S120, which will not be repeated here.
[0103] The mapping unit 230 is configured to map the first symbol parameter corresponding to the first memristor to the first memristor using the reference conductance value. For example, the selecting unit 230 may be implemented as follows: Figure 4 For the specific implementation method of step S130 shown, please refer to the relevant description of step S130, which will not be repeated here.
[0104] Fig. 9 A schematic diagram of a storage-computing integrated chip proposed in at least one embodiment of the present disclosure. Fig. 9 As shown, the integrated storage and computing chip 10 includes a memristor array 300 and Figure 8 The mapping device 200 shown includes a selection unit 210, a parameter acquisition unit 220 and a mapping unit 230.
[0105] For example, the memristor array 300 includes a plurality of reference columns proposed in at least one embodiment of the present disclosure, and the plurality of reference columns are used to map the matrix symbol parameters to the memristors corresponding to the memristor array. Figure 8 The relevant description in will not be repeated here.
[0106] At least one embodiment of the present disclosure further provides a computer-readable storage medium storing non-transitory computer-readable instructions. For example, the non-transitory storage medium may be, but is not limited to, a non-transitory storage medium such as a tape, an optical disk, a disk, a flash memory, etc. When the non-transitory computer-readable instructions are executed by a computer, the mapping method described in any embodiment of the present disclosure is executed.
[0107] There are a few points to note about this disclosure:
[0108] (1) The drawings of the embodiments of the present disclosure only relate to the structures related to the embodiments of the present disclosure, and other structures may refer to the general design.
[0109] (2) In the absence of conflict, the embodiments of the present disclosure and the features therein may be combined with each other to obtain new embodiments.
[0110] The above are only specific implementations of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and the protection scope of the present disclosure shall be based on the protection scope of the claims.< / m> < / n> < / m>
Claims
1. A method for mapping symbolic parameters of a memristor array, comprising: selecting a plurality of columns in the memristor array as a plurality of reference columns, wherein the memristors in the plurality of reference columns are set according to target conductance values; For a first memristor in the memristor array, obtaining a reference conductance value based on a plurality of conductance values of a plurality of memristors in the plurality of reference columns, wherein the first memristor is not in the plurality of reference columns; Get the range N based on the symbolic parameter min ~N max Determine the threshold N b ; Obtaining a conductance value range G based on the memristor in the memristor array min ~G max The threshold value N is determined b The target conductivity value G b , where the threshold N b and the reference conductance value G b ' is used to map a first symbol parameter corresponding to the first memristor into the first memristor; According to the first symbol parameter corresponding to the first memristor and the threshold N b , determine the set conductance value G of the first memristor corresponding to the first symbol parameter ij ; The conductance value of the first memristor is set to the set conductance value G ij ; in, When the first symbol parameter is less than the threshold N b When the conductivity value G is set ij By formula Calculated; When the first symbol parameter is greater than the threshold N b When the conductivity value G is set ij By formula Calculated; When the first symbol parameter is equal to the threshold N b When the conductivity value G is set ij Equal to the reference conductance value G b ′.
2. The mapping method according to claim 1, wherein: The target conductance values of the memristors in the plurality of reference columns are the same as or different from each other.
3. The mapping method according to claim 1, wherein: Obtaining a reference conductance value based on a plurality of conductance values of the plurality of memristors in the plurality of reference columns comprises: The reference conductance value is obtained based on a plurality of conductance values of the plurality of memristors that are in the same row as the first memristor and are respectively located in the plurality of reference columns.
4. The mapping method according to claim 1, wherein: Obtaining a reference conductance value based on a plurality of conductance values of the plurality of memristors of the plurality of reference columns, comprising: An average or a median of a plurality of conductance values of the plurality of memristors in the plurality of reference columns is obtained as the reference conductance value.
5. The mapping method according to claim 1, wherein: Obtaining a reference conductance value based on a plurality of conductance values of the plurality of memristors of the plurality of reference columns, comprising: applying a read voltage in the memristor array to read a plurality of target conductance values of the plurality of memristors of the plurality of reference columns to obtain a plurality of read conductance values; Based on the plurality of read conductance values, the reference conductance value is obtained.
6. The mapping method according to claim 1, wherein: The threshold N is determined b is the median value of the range of the symbol parameter, i.e. N b =(N min +N max ) / 2, and The target conductivity value G is determined b is the median value of the conductance value range of the plurality of memristors, that is, G b =(G min +G max ) / 2.
7. A mapping device for symbol parameters of a memristor array, comprising: a selection unit configured to select a plurality of columns in the memristor array as a plurality of reference columns, wherein the memristors in the plurality of reference columns are set according to target conductance values; A parameter acquisition unit is configured to acquire, for a first memristor in the memristor array, a reference conductance value based on a plurality of conductance values of a plurality of memristors in the plurality of reference columns, wherein the first memristor is not in the plurality of reference columns; and acquire a range N based on a sign parameter. min ~N max Determine the threshold N b ; Obtain the conductance value range G based on the memristor in the memristor array min ~G max The threshold value N is determined b The target conductivity value G b , where the threshold N b and the reference conductance value G b ' is used to map a first symbol parameter corresponding to the first memristor into the first memristor; A mapping unit is configured to map the first symbol parameter corresponding to the first memristor to the threshold N b , determine the set conductance value G of the first memristor corresponding to the first symbol parameter ij ; Setting the conductance value of the first memristor to the set conductance value G ij ; in, When the first symbol parameter is less than the threshold N b When the conductivity value G is set ij By formula Calculated; When the first symbol parameter is greater than the threshold N b When the conductivity value G is set ij By formula Calculated; When the first symbol parameter is equal to the threshold N b When the conductivity value G is set ij Equal to the reference conductance value G b ′.
8. A storage and computing integrated chip, comprising: Memristor arrays; A mapping device for symbolic parameters of the memristor array, wherein the mapping device comprises: a selection unit configured to select a plurality of columns in the memristor array as a plurality of reference columns, wherein the memristors in the plurality of reference columns are set according to target conductance values; a parameter acquisition unit configured to acquire, for a first memristor in the memristor array, a reference conductance value based on a plurality of conductance values of a plurality of memristors in the plurality of reference columns, wherein the first memristor is not in the plurality of reference columns; and acquire a range N based on a sign parameter. min ~N max Determine the threshold N b ; Obtain the conductance value range G based on the memristor in the memristor array min ~G max The threshold value N is determined b The target conductivity value G b , where the threshold N b and the reference conductance value G b ' is used to map a first symbol parameter corresponding to the first memristor into the first memristor; A mapping unit is configured to map the first symbol parameter corresponding to the first memristor to the threshold N b , determine the set conductance value G of the first memristor corresponding to the first symbol parameter ij ; Setting the conductance value of the first memristor to the set conductance value G i j; in, When the first symbol parameter is less than the threshold N b When the conductivity value G is set ij By formula Calculated; When the first symbol parameter is greater than the threshold N b When the conductivity value G is set ij By formula Calculated; When the first symbol parameter is equal to the threshold N b When the conductivity value G is set ij Equal to the reference conductance value G b ′.
9. A computer-readable storage medium storing non-transitory computer-readable instructions, wherein when the non-transitory computer-readable instructions are executed by a computer, the mapping method according to any one of claims 1 to 6 is implemented.
