Memristor synapse, memristor crossbar array circuit and conductance updating method

By designing a memristive synapse composed of two memristive units, and using the difference between the output voltage and the target voltage to generate equal and opposite-phase write voltages, the problem of difficulty in updating the conductance value of the memristive neural network in the existing technology is solved, achieving It improves forward propagation acceleration and self-learning capabilities.

CN118428429BActive Publication Date: 2024-09-13NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410901269.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-13
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

In practical applications, it is difficult for existing memristive neural networks to use the error between the output and the target to update the memristive conductance value, and lacks self-learning ability.

Method used

Design a memristive synapse, consisting of two memristive units. Through transformation based on the traditional perceptron algorithm, the read and write state switching of the synapse is realized, and the difference between the output voltage and the target voltage is used to generate equal and opposite write voltages. , automatically updates the conductance value of the memristor.

Benefits of technology

The forward propagation acceleration and self-learning capabilities of the memristive neural network are realized, and the error between the output and the target can be effectively used to automatically update the conductance value, improving the learning ability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428429B
    Figure CN118428429B
Patent Text Reader

Abstract

The present application relates to a memristor synapse, a memristor cross array circuit and a conductance update method. A memristor synapse capable of switching between read and write states is designed. When the read control terminal and the write control terminal of the first memristor unit and the second memristor unit are simultaneously connected to a read control signal, the memristor synapse is used to execute the processing of the forward propagation phase of the array. When the read control terminal and the write control terminal of the first memristor unit and the second memristor unit are simultaneously connected to a write control signal, the memristor synapse is used to execute the processing of the weight update phase of the array. In this way, compared with the traditional memristor neural network, the memristor neural network constructed by applying the newly designed memristor synapse can not only provide forward propagation acceleration capability, but also effectively utilize the error between the output voltage and the target voltage to automatically update the conductance value of the memristor, thereby obtaining the effect of making the memristor neural network have self-learning ability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of micro-nano electronic technology, and in particular relates to a memristor synapse, a memristor cross array circuit and a conductance updating method. Background Art

[0002] Memristors are an emerging electronic component that can change their resistance when a certain voltage is applied to them. This property is very similar to the plasticity of biological synapses, so the resistance value / conductance value of memristors can be used to simulate the weights of synapses, bringing powerful learning capabilities similar to those of biological neural networks. Therefore, memristors have been used to construct artificial neural network circuits as soon as they came out. Memristor neural networks constructed using memristors have the characteristics of integrated storage and computing and parallel computing, which effectively solves the problem of storage and computing separation in traditional computing devices based on von Neumann architecture (that is, the computing unit and the storage unit are separated, so that the data transmission between the two causes a computing bottleneck). In recent years, more and more scholars have invested in the research of memristor neural networks, and many innovative research results have emerged. The basic structure of a memristor neural network is a memristor crossbar array. Traditional research work on the circuit design of a memristor crossbar array is mainly the design of a forward propagation circuit. There is almost no research result on how to use the error between the output and the target to update the memristor conductance value, which is an important technical problem that memristor neural networks need to solve in current practical applications. Summary of the invention

[0003] Based on this, it is necessary to provide a memristor synapse, a memristor cross array circuit with self-learning ability, and a memristor conductance updating method to address the above technical problems. In addition to providing forward propagation acceleration capability, it can also use the error between the output and the target to automatically update the conductance value of the memristor.

[0004] In order to achieve the above objectives, the embodiments of the present invention adopt the following technical solutions:

[0005] On the one hand, a memristor synapse is provided, comprising a first memristor unit and a second memristor unit, wherein read control terminals of the first memristor unit and the second memristor unit are used to access a read control signal, write control terminals of the first memristor unit and the second memristor unit are used to access a write control signal, input terminals of the first memristor unit and the second memristor unit are used to access an input voltage, a write voltage input terminal of the first memristor unit is used to access a first write voltage or a second write voltage, a write voltage input terminal of the second memristor unit is used to access a second write voltage or the first write voltage, and output currents of the first memristor unit and the second memristor unit are used to be subtracted from each other as output currents of the memristor synapse;

[0006] Among them, the first write voltage and the second write voltage are write voltages output according to the size relationship between the target voltage and the output voltage of the memristor synapse. The amplitudes of the first write voltage and the second write voltage are equal and the phases are opposite. The write voltages simultaneously connected to the first memristor unit and the second memristor unit in the write state are different.

[0007] On the other hand, a memristor crossbar array circuit is provided, comprising N error voltage generating modules, (M+1) rows and N columns of memristor synapses, the (M+1) rows and N columns of memristor synapses forming a memristor crossbar array, each error voltage generating module corresponds to each column of memristor synapses one by one; M and N are both positive integers;

[0008] Each memristor synapse includes a first memristor unit and a second memristor unit, the read control terminals of the first memristor unit and the second memristor unit are used to access the read control signal of the column, the write control terminals of the first memristor unit and the second memristor unit are used to access the write control signal of the column, and the input terminals of the first memristor unit and the second memristor unit are used to access the input voltage of the row;

[0009] The write voltage input terminals of the first memristor unit and the second memristor unit are respectively connected to the write voltage output terminals of the error voltage generating module of the corresponding column, the write voltage input terminal of the first memristor unit is used to access the first write voltage or the second write voltage output by the error voltage generating module, the write voltage input terminal of the second memristor unit is used to access the second write voltage or the first write voltage output by the error voltage generating module, the output terminals of the first memristor unit and the second memristor unit are respectively connected to the current input terminals of the error voltage generating module of the corresponding column, the error voltage generating module of the corresponding column is used to subtract the output currents of the first memristor unit and the second memristor unit as the output current of the column, and output the first write voltage and the second write voltage according to the relationship between the target voltage of the column and the output voltage;

[0010] The first write voltage and the second write voltage are write voltages with equal amplitudes and opposite phases, and the write voltages simultaneously connected to the first memristor unit and the second memristor unit in the write state are different.

[0011] In another aspect, a memristor conductance updating method is provided, which is applied to the above-mentioned memristor synapse or to the above-mentioned memristor crossbar array circuit, and the memristor conductance updating method comprises:

[0012] Applying a high level to the read control terminal and the write control terminal of the memristor synapse to control the memristor synapse to switch to a read state; in the read state, the memristor synapse is connected to an input voltage, and the output current of the first memristor unit and the second memristor unit of the memristor synapse is subtracted from each other as the output current of the memristor synapse;

[0013] generating a first write voltage and a second write voltage according to a difference between an output voltage of the memristor synapse and a target voltage;

[0014] A low level is applied to the read control terminal and the write control terminal of the memristive synapse to control the memristive synapse to switch to a write state; in the write state, the memristive synapse disconnects the input voltage, and when the input voltage is greater than 0, the first memristive unit of the memristive synapse is controlled to access the first write voltage and the second memristive unit is controlled to access the second write voltage to update the weight of the memristive synapse; when the input voltage is less than 0, the first memristive unit of the memristive synapse is controlled to access the second write voltage and the second memristive unit is controlled to access the first write voltage to update the weight of the memristive synapse.

[0015] One of the above technical solutions has the following advantages and beneficial effects:

[0016] The above memristor synapse, memristor cross array circuit and conductance update method are designed to switch between read and write states through the transformation based on the traditional perceptron algorithm. The memristor synapse is composed of two memristor units. When the read control end and the write control end of the first memristor unit and the second memristor unit are simultaneously connected to the read control signal, the first memristor unit and the second memristor unit can be switched to the read state to perform the forward propagation stage of the array. When the read control end and the write control end of the first memristor unit and the second memristor unit are simultaneously connected to the write control signal, the first memristor unit and the second memristor unit can be switched to the write state (i.e., the learning state). At this time, the first memristor unit and the second memristor unit are simultaneously connected to write voltages with equal amplitudes and opposite phases, which can be used to perform the weight update stage of the array. In this way, compared with the traditional memristor neural network, the memristor neural network constructed by applying the above newly designed memristor synapse can not only provide forward propagation acceleration capability, but also effectively use the error between the output voltage and the target voltage to automatically update the conductance value of the memristor, thereby obtaining the effect of making the memristor neural network have self-learning ability. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 This is the electrical symbol diagram of the memristor;

[0019] Figure 2 This is a schematic diagram of the circuit structure of a memristor crossbar array;

[0020] Figure 3 is a schematic diagram of a circuit structure of a memristor synapse in one embodiment;

[0021] Figure 4 A schematic diagram of a circuit structure of a memristor synapse in another embodiment;

[0022] Figure 5 is a schematic diagram of the structure of a memristor crossbar array circuit with self-learning capability in one embodiment;

[0023] Figure 6 FIG. 4 is a schematic diagram of a circuit structure of an error voltage generating module in an embodiment. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0026] It should be noted that the reference to "embodiment" in this document means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The presentation of the phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments.

[0027] Memristor (can be labeled R 0 represents) as follows Figure 1 As shown in the figure, when the forward voltage applied to the two ends of the memristor (i.e., a high level is applied to the "+" end and a low level is applied to the "-" end) exceeds the forward voltage threshold of the memristor, the conductance value of the memristor increases. When the reverse voltage applied to the two ends of the memristor (i.e., a low level is applied to the "+" end and a high level is applied to the "-" end) exceeds the reverse voltage threshold of the memristor, the conductance value of the memristor decreases, otherwise, the conductance value of the memristor does not change.

[0028] The basic structure of the memristor-based neural network is a memristor crossbar array, such as Figure 2 As shown, the row input voltage (such as V 1, V 2,… V M ), and obtain the column output current (such as I 1, I 2,… I N), f represents the activation function in the memristor neural network, which is used to delinearize the output, for example, it can delinearize the output current, or convert the current into voltage and then delinearize it. The activation function can be the commonly used sigmoid activation function, relu activation function or tanh activation function. The memristor crossbar array can complete the matrix-vector multiplication operation according to Kirchhoff's law and has a high degree of parallelism. Each crosspoint of the memristor crossbar array is composed of a memristor. R 0 composed of memristive synapses R S (The specific structure may include but is not limited to a memristor R 0).

[0029] like Figure 2 As shown, the memristor crossbar array The output current of the column is:

[0030] (1)

[0031] in, It is Line The conductance values ​​of the memristor synapses can represent the weights of the neural network. M is the total number of rows in the array. Therefore, the memristor crossbar array can implement the weighted summation operation of the neural network. Since the calculation of each column is parallel, the memristor crossbar array can complete the matrix-vector multiplication operation with O(1) time complexity, thereby accelerating the matrix-vector multiplication operation during forward propagation and backward propagation. O(1) is a constant time complexity (a symbol for time complexity in computer science), which means that the execution time of the matrix-vector multiplication operation does not increase with the increase of the problem size.

[0032] In traditional research work, the circuit design of memristor crossbar arrays is mainly the design of forward propagation circuits, and there are few research results on how to use the error between the output and the target to update the conductance value of the memristor. The latter is an important technical problem to be solved in practical applications of memristor neural networks. Based on this, it is necessary to provide a memristor crossbar array circuit with self-learning ability to address the above technical problems. In addition to providing forward propagation acceleration capability, it can also use the error between the output and the target to automatically update the conductance value of the memristor (the purpose of neural network learning is to make the output and the target as close as possible, that is, to adjust the weights to make the error between the two as small as possible).

[0033] The following will be combined with the embodiment of the present invention Figures 3 to 6 , the implementation modes of the present invention are described in detail.

[0034] In one embodiment, Figure 3 As shown, a memristive synapse is provided.R S , including a first memristor unit ( Figure 3 The left unit in the figure) and the second memristor unit ( Figure 3 The right unit in the figure). The read control terminals of the first memristor unit and the second memristor unit are used to receive a read control signal. The write control terminals of the first memristor unit and the second memristor unit are used to receive a write control signal. The input terminals of the first memristor unit and the second memristor unit are used to receive an input voltage V The write voltage input terminal of the first memristor unit is used to connect the first write voltage (i.e., write voltage 1) or the second write voltage (i.e., write voltage 2). The write voltage input terminal of the second memristor unit is used to connect the second write voltage or the first write voltage. The output current of the first memristor unit and the second memristor unit (i.e., and ) is used as a memristor synapse after subtraction R S The first write voltage and the second write voltage are based on the memristor synapse R S Target voltage V T With output voltage V The first write voltage and the second write voltage have the same amplitude and opposite phase. The write voltages simultaneously connected to the first memristor unit and the second memristor unit in the write state are different.

[0035] It can be understood that the circuit structure of the first memristor unit and the second memristor unit can be the same, but the write voltages connected to the two at the same time are equal in amplitude and opposite in phase, and the read control signal and the write control signal can be provided by the read-write control module in the memristor neural network to which the memristor synapse is applied, and can be connected to the memristor in the memristor unit through a selector, a semiconductor switch element or other signal selection circuit. R 0. The first write voltage and the second write voltage are generated by using the memristor synapse R S Target voltage V T With output voltage V 0, for example but not limited to when the output voltage V 0 is greater than the target voltage V T When the first write voltage is high and the second write voltage is low, the conductance value of the first memristor unit is increased and the conductance value of the second memristor unit is decreased, so that the memristor synapse R S The weight increases; when the output voltage V 0 is less than the target voltage V TWhen the first write voltage is low and the second write voltage is high, the conductance value of the first memristor unit is reduced and the conductance value of the second memristor unit is increased, so that the memristor synapse R S The first write voltage and the second write voltage may also be connected to the memristor in the memristor unit through a selector, a semiconductor switch element or other signal selection circuit, but is not limited to it. R 0. For more information about the specific generation methods of the first write voltage and the second write voltage, please refer to the detailed description below.

[0036] Memristive synapse R S , through the transformation based on the traditional perceptron algorithm, a memristor synapse capable of switching between read and write states is designed. The memristor synapse is composed of two memristor units. When the read control end and the write control end of the first memristor unit and the second memristor unit are simultaneously connected to the read control signal, the first memristor unit and the second memristor unit can be switched to the read state to perform the forward propagation stage of the array. When the read control end and the write control end of the first memristor unit and the second memristor unit are simultaneously connected to the write control signal, the first memristor unit and the second memristor unit can be switched to the write state (i.e., the learning state). At this time, the first memristor unit and the second memristor unit are simultaneously connected to write voltages with equal amplitudes and opposite phases, which can be used to perform the weight update stage of the array. In this way, compared with the traditional memristor neural network, the memristor neural network constructed by applying the newly designed memristor synapse can not only provide forward propagation acceleration capability, but also effectively use the error between the output voltage and the target voltage to automatically update the conductance value of the memristor, thereby obtaining the effect of making the memristor neural network have self-learning ability.

[0037] Furthermore, the algorithm used in the present invention is introduced, which is modified based on the traditional perceptron algorithm. Suppose the input vector is a column vector , the weight matrix is , the output vector is , the bias is , then the output of the neural network is The error between the output and the target is ,in is the target vector. Then the weight update amount ,in is a normal number, is the updated weight matrix, is the weight matrix before updating, sign is a symbolic function that satisfies:

[0038] (2)

[0039] Thus, in one embodiment, if Figure 4 As shown, the first memristor unit includes a first memristor R 0. First read control switch tube N 1. First write control switch tube P 1. First write switch tube P 2 and the second write switch tube N 2. First read control switch tube N 1 input terminal is used to connect the input voltage V , the first read control switch N The control terminal of 1 is used to access the read control signal. The first read control switch tube N The output of 1 is connected to the first memristor R 0 end, the first memristor R The other end of 0 is used to output the first output current. P 1 is connected to the first write switch P 2 or the second write switch N 2 output terminal, the first write control switch tube P The control terminal of 1 is used to access the write control signal. The first write control switch tube P The output of 1 is connected to the first memristor R 0. The first write switch P 2 and the second write switch tube N The control terminal of 2 is used to access the conduction control signal. P The input terminal of 2 is used to access the second write voltage, and the second write switch tube N The input terminal of 2 is used to access the first write voltage. The conduction control signal controls the first write switch tube at the same time. P 2 or the second write switch N 2Conduction.

[0040] It can be understood that in this embodiment, a CMOS (Complementary Metal Oxide Semiconductor) device is used to design one of the preferred first memristor units, and the circuit structure is simple and efficient, and is suitable for integrated applications.

[0041] Specifically, memristive synapses R S The first memristor unit can use a memristor R 0 and four CMOS devices. The conductance of the memristor is equivalent to the memristor synapse R S The CMOS device plays the role of a switch here. Since the conductance of the memristor is only positive, and the weight of the memristor synapse is both positive and negative, two memristor units are used to form a memristor synapse.R S Positive and negative weights are possible. N 1 and N 2 is an NMOS (N Metal Oxide Semiconductor) device. P 1 and P 2 is a PMOS (P Metal Oxide Semiconductor) device. The conduction control signal can be generated by the memristor synapse R S The level output module in the applied memristor neural network is generated according to control needs, or can be generated by a specially configured independent control signal source.

[0042] In some implementations, existing Gen The module directly controls the two memristor units to be connected to the first write voltage and the second write voltage at the same time in the learning state. Gen The module can directly adjust the input voltage V The size of the high and low levels (i.e., the conduction control signal) are generated to control the first write switch tube P 2. Turn off the second write switch tube at the same time N 2 is turned on, thereby controlling the first memristor unit to be connected to the first write voltage, and similarly, the second memristor unit can be controlled to be connected to the second write voltage. Gen The module can also achieve the required write voltage turn-on control effect.

[0043] During forward propagation, the read control terminal and write control terminal of the first memristor unit are respectively applied with high level, and the device N 1 conduction, device P 1 is turned off, and in the second memristor unit, a high level is applied to its read control terminal and write control terminal respectively to make its memristor R 0 switches to read state, memristor synapse R S That is, it switches to the read state. Input voltage V From memristor synapses R S The input of the device N 1 Input to memristor R 0, the memristance of two memristor units R 0 output current ( and ) can be calculated by the error in the applied memristor neural network and the write voltage generation module (hereinafter referred to as the error voltage generation module EW represents) and subtract them to get the memristor synapse R SThe output current flows out from the output terminal. Assume that the memristor in the first memristor unit R The conductivity value of 0 is , the memristor in the second memristor unit R The conductivity value of 0 is , then the memristive synapse R S The output current is:

[0044] (3)

[0045] This formula is similar to the one in artificial neural networks. , Equivalent to weight W .

[0046] When adjusting the weight, i.e., in the learning state, the read control terminal and the write control terminal of the first memristor unit are respectively applied with a low level. N 1 Shutdown, device P 1 is turned on, and in the second memristor unit, a low level is applied to its read control terminal and write control terminal respectively to make its memristor R 0 switches to write state, memristor synapse R S That is, it enters the write state, at which time the memristor can be adjusted R 0 conductance value. If the input voltage V Greater than or equal to 0, then Gen The module outputs a high level. N 2 conduction, device P 2 is turned off, at which time the first write voltage at the write voltage 1 end of the first memristor unit passes through the device P 1 is applied to the first memristor R 0, then correspondingly, the second memristor unit is applied to its memristor R 0 is the second write voltage. V Less than 0, then Gen The module outputs a low level. N 2 Shutdown, device P 2 is turned on, at this time, the second write voltage at the write voltage 2 end of the first memristor unit passes through the device P 1 is applied to the first memristor R 0, then correspondingly, the second memristor unit is applied to its memristor R The write voltage on 0 is the first write voltage. The write voltages connected to the two memristor units at the same time are in opposite phases, so the conductance adjustment of the first memristor unit and the second memristor unit is opposite.

[0047] In one embodiment, Figure 4As shown, the second memristor unit may also include a second memristor R 0. Second reading control switch tube N 1. Second write control switch tube P 1. The third switch tube P 2 and the fourth write switch tube N 2. Second reading control switch tube N 1 input terminal is used to connect the input voltage V , the second read control switch N The control terminal of 1 is used to access the read control signal, and the second read control switch tube N The output of 1 is connected to the second memristor R 0 end, the second memristor R The other end of 0 is used to output the second output current. P 1 is connected to the input of the third write switch tube P 2 or the fourth write switch N 2 output terminal, the second write control switch tube P The control terminal of 1 is used to access the write control signal, and the second write control switch tube P The output of 1 is connected to the second memristor R 0. The third write switch P 2 and the fourth write switch tube N The control terminal of 2 is used to access the conduction control signal, and the third write switch tube P The input terminal of 2 is used to connect the first write voltage, and the fourth write switch tube N The input terminal of 2 is used to access the second write voltage; wherein the conduction control signal controls the third write switch tube at the same time P 2 or the fourth write switch tube N 2Conduction.

[0048] Preferably, a memristor synapse capable of switching between read and write states is designed in this embodiment R S ,like Figure 4 As shown, the circuit structure of the second memristor unit is the same as that of the first memristor unit, which can further simplify the memristor synapse. R S The circuit structure is more convenient for circuit integration design. At the same time, the circuit structure design of the memristor unit can improve the consistency of the output, thereby greatly improving the memristor synapse R S Accuracy and reliability of weight adjustment.

[0049] In one embodiment, Figure 5 As shown, a memristor crossbar array circuit is also provided, comprising N error voltage generating modules EW , (M+1) rows and N columns of memristor synapses RS , (M+1) rows and N columns of memristor synapses R S Each error voltage generation module EW Memristive synapses with each column R S One-to-one correspondence; M and N are both positive integers. Each memristor synapse R S Each of the first memristor unit and the second memristor unit comprises a first memristor unit and a second memristor unit, wherein the read control terminal of the first memristor unit and the second memristor unit is used to access the read control signal of the column, the write control terminal of the first memristor unit and the second memristor unit is used to access the write control signal of the column, and the input terminal of the first memristor unit and the second memristor unit is used to access the input voltage of the row. The write voltage input terminals of the first memristor unit and the second memristor unit are respectively connected to the error voltage generation module of the corresponding column EW The write voltage output terminal of the first memristor unit is connected to the error voltage generating module. EW The output first write voltage or the second write voltage, the write voltage input terminal of the second memristor unit is used to connect to the error voltage generation module EW The output of the second write voltage or the first write voltage, the output ends of the first memristor unit and the second memristor unit are respectively connected to the error voltage generation module of the corresponding column EW The current input terminal is connected to the corresponding column error voltage generation module EW It is used to subtract the output current of the first memristor unit from the second memristor unit as the output current of the column, and output the first write voltage and the second write voltage according to the magnitude relationship between the target voltage of the column and the output voltage. The first write voltage and the second write voltage are write voltages with equal amplitudes and opposite phases, and the write voltages simultaneously connected to the first memristor unit and the second memristor unit in the write state are different.

[0050] It can be understood that the memristor synapse in this embodiment R S For explanations, please refer to the above-mentioned embodiments of the memristor synapse. R S The explanation of the error voltage generation module is similar to that of the error voltage generation module, and will not be further described in this embodiment. EW The function is to subtract the output current of the first memristor unit and the second memristor unit in the column and use the subtraction as the output current of the column. At the same time, the first write voltage and the second write voltage can be output according to the relationship between the target voltage and the output voltage of the column. Therefore, the existing comparison circuit can be used or a comparator can be used to build a dedicated error calculation and write voltage generation module circuit according to the above-mentioned processing needs to achieve the above-mentioned processing.

[0051] The above memristor crossbar array circuit is designed and applied with a memristor synapse that can switch between read and write states by modifying the traditional perceptron algorithm. R S , memristive synapse R S It is composed of two memristor units. When the read control terminal and the write control terminal of the first memristor unit and the second memristor unit are simultaneously connected to the read control signal, the first memristor unit and the second memristor unit can be switched to the read state to perform the processing of the forward propagation stage of the array. When the read control terminal and the write control terminal of the first memristor unit and the second memristor unit are simultaneously connected to the write control signal, the first memristor unit and the second memristor unit can be switched to the write state (that is, the learning state). At this time, the first memristor unit and the second memristor unit are simultaneously connected to write voltages with equal amplitudes and opposite phases, which can be used to perform the processing of the weight update stage of the array. In this way, compared with the traditional memristor neural network, the application of the newly designed memristor synapse R S The constructed memristor neural network can not only provide forward propagation acceleration capability, but also effectively utilize the error between the output voltage and the target voltage to automatically update the conductance value of the memristor, thereby achieving the effect of making the memristor neural network have self-learning ability.

[0052] In one embodiment, the first memristor unit includes a first memristor, a first read control switch tube, a first write control switch tube, a first write switch tube, and a second write switch tube. The input end of the first read control switch tube is used to access the input voltage of the row, the control end of the first read control switch tube is used to access the read control signal of the column, the output end of the first read control switch tube is connected to one end of the first memristor, and the other end of the first memristor is connected to the error voltage generation module of the corresponding column. EW The first current input terminal of the first write control switch tube is connected to the output terminal of the first write switch tube or the second write switch tube, the control terminal of the first write control switch tube is used to access the write control signal of the column, and the output terminal of the first write control switch tube is connected to one end of the first memristor. The control terminals of the first write switch tube and the second write switch tube are used to access the conduction control signal, and the input terminal of the first write switch tube is connected to the error voltage generation module of the corresponding column EW The second write voltage output terminal of the second write switch tube is connected to the error voltage generation module of the corresponding column. EW The first write voltage output terminal. The conduction control signal controls the first write switch tube or the second write switch tube to be turned on at the same time. The circuit structure is simple and efficient, which is conducive to circuit integration design.

[0053] It can be understood that the explanation of the first memristor unit in this embodiment can refer to the memristor synapse in the above embodiments. R SThe explanation about the first memristor unit in is understood similarly and will not be elaborated in this embodiment.

[0054] In one embodiment, the second memristor unit includes a second memristor, a second read control switch tube, a second write control switch tube, a third write switch tube, and a fourth write switch tube. The input end of the second read control switch tube is used to access the input voltage of the row, the control end of the second read control switch tube is used to access the read control signal of the column, the output end of the second read control switch tube is connected to one end of the second memristor, and the other end of the second memristor is connected to the error voltage generation module of the corresponding column. EW The second current input terminal of the second write control switch tube is connected to the output terminal of the third write switch tube or the fourth write switch tube. The control terminal of the second write control switch tube is used to access the write control signal of the column. The output terminal of the second write control switch tube is connected to one end of the second memristor. The control terminals of the third write switch tube and the fourth write switch tube are used to access the conduction control signal. The input terminal of the third write switch tube is connected to the error voltage generation module of the corresponding column. EW The first write voltage output terminal of the fourth write switch tube is connected to the error voltage generation module of the corresponding column. EW The conduction control signal controls the third write switch tube or the fourth write switch tube to be turned on at the same time.

[0055] It can be understood that the memristor crossbar array circuit in this embodiment uses a memristor synapse capable of switching between read and write states. R S The second memristor unit has the same circuit structure as the first memristor unit, which can further simplify the memristor synapse. R S The circuit structure is more convenient for the integrated design of the memristor cross array circuit. At the same time, the circuit structure design of the memristor unit can improve the consistency of the output, thereby greatly improving the accuracy and reliability of the weight adjustment of the memristor cross array circuit.

[0056] In one embodiment, Figure 6 As shown, each error voltage generation module EW Both include comparators CP 1. Comparator CP 2. Comparator CP 3. Comparator CP 4. Comparator CP 5. Resistance R 00 ,resistance R 01 ,resistance R 1 to resistor R 10 , activation function module, inverter NOT, sample-hold module CB1 and sample-hold module CB2. The memristor synapse in the corresponding column R S When in read state, the comparator CP The inverting input terminal of 1 is connected to the first memristor in the first memristor unit R 0, the other end of the comparator CP The inverting input terminal of 2 is connected to the second memristor in the second memristor unit R 0. The other end of the memristor synapse in the corresponding column R S When in write state, the comparator CP 1 and the inverting input of the comparator CP The inverting input terminals of 2 are both floating. CP 1 through the non-inverting input resistor R 00 Ground, comparator CP 2 through the non-inverting input resistor R 01 Ground, Comparator CP 1 output and inverting input through the resistor R 1 connection, comparator CP 2 output and inverting input through the resistor R 2Connect.

[0057] Comparator CP 3 through the inverting input resistor R 3. Connect the comparator CP 1 output terminal, comparator CP The non-inverting input of 3 is connected through the resistor R 4. Connect the comparator CP 2 output terminals, comparator CP The output and inverting input of 3 are connected through a resistor R 5 connections, comparator CP The non-inverting input of 3 is connected through the resistor R 6 is grounded. The input of the activation function module is connected to the comparator CP 3 output terminal, the output terminal of the activation function module is connected through the resistor R 8. Connect the comparator CP 4, the output terminal of the activation function module is used to output the output voltage of the column, the comparator CP 4 through the inverting input resistor R 7 is connected to the target voltage of the column, the comparator CP The output terminal and the non-inverting input terminal of 4 are connected through the resistor R 9 connections, comparator CP The non-inverting input of 4 is connected through a resistor R 10 Ground. Comparator CP 5. The non-inverting input of the comparator is connected CP 4 output terminals, comparator CP 5, the inverting input terminal of the comparator is grounded. CP The output terminals of 5 are connected to the inverter NOT and the input of the sample-and-hold module CB1, the inverter NOT The output end of the sampling and holding module CB1 is connected to the input end of the sampling and holding module CB2. The output end of the sampling and holding module CB1 is used to output the first write voltage The output terminal of the sampling and holding module CB2 is used to output the second write voltage .

[0058] It can be understood that in this embodiment, a preferred error voltage generating module is designed EW , which is used to specifically perform the above-mentioned error calculation and write voltage generation operations, wherein each component can select specific specifications according to the actual application needs to build the required module circuit. The sampling and holding module CB1 and the sampling and holding module CB2 provide a sampling and holding function to write the voltage and Keep it for a while to perform the next write operation in the weight update phase. EW Based on a simple and efficient module circuit structure, the integration and reliability of the memristor crossbar array circuit can be further improved.

[0059] In one embodiment, the above-mentioned memristor crossbar array circuit further includes (M+1) Gen Module. Each Gen The output of the module is connected to all the memristor synapses in the row of the memristor crossbar array. R S The write voltage turns on the control terminal. R S In the write state, if Gen If the input voltage of the module row is greater than or equal to 0, Gen The module sends all memristor synapses in its row R S Output high level, otherwise output low level.

[0060] Understandably, we can also use existing Gen The module directly controls the two memristor units to be connected to the first write voltage and the second write voltage at the same time in the learning state. Gen The module can directly adjust the input voltage V The size of the high and low levels (i.e., the conduction control signal) are generated to control the first write switch tube P 2. Turn off the second write switch tube at the same time N2 is turned on, thereby controlling the first memristor unit to be connected to the first write voltage. Similarly, the second memristor unit can be controlled to be connected to the second write voltage. Gen The module can be composed of an op amp and a resistor, such as Figure 5 As shown. In this way, by using Gen The module can also achieve the required write voltage turn-on control effect.

[0061] In one embodiment, the above-mentioned memristor crossbar array circuit further includes (M+1) switches S 1. 2N switches S 2 and (M+1) switches S 3. Each switch S One end of 1 is used to connect to the input voltage of the row V , each switch S The other end of 1 is used to connect the input end of the first memristor unit and the second memristor unit in the row. S One end of 3 is used to connect to the input voltage of the row V , each switch S The other end of 3 is connected to the Gen The input terminal of the module. Every two switches S 2 corresponds to a column of memristor synapses R S The output switch pairs are each composed of a switch S One end of switch 2 is connected to the output end of the first memristor unit in the column, and the other end of switch S 2 is connected to the output end of the second memristor unit in the column. One switch in each output switch pair S The other end of 2 is used for grounding or connecting the error voltage generation module of the corresponding column EW The first current input terminal and the other switch S The other end of 2 is used for grounding or connecting the error voltage generation module of the corresponding column EW The second current input terminal of .

[0062] Understandably, the switch S 1. Switch S 2 and switch S 3 may be the same on-off switch devices, for example, they are all the same MOS tube switches or other types of triodes, or they may be different on-off switch devices, for example, they are different types of MOS tube switches or other types of triodes.

[0063] Specifically, using Figure 4 Memristive synapse shown R S The designed self-learning memristor crossbar array can be Figure 5As shown, the error voltage generation module EW You can Figure 6 shown. to is the input voltage, to is the output voltage, is the voltage of the read control terminal and the write control terminal, is the bias voltage (used to provide the bias required by the circuit, equivalent to the bias in the memristor neural network ), and All are toggle switches. Memristive synapse R S The first write voltage is supplied to the two memristors. Memristive synapse R S The second write voltage is supplied to the two memristors, is the target voltage.

[0064] In the forward propagation phase, the switch On, switch Switch to the output, switch disconnect, is high level, at this time the memristor synapse R S For the read status, you can get:

[0065] (4)

[0066] (5)

[0067] (6)

[0068] (7)

[0069] (8)

[0070] In the above formulas, Indicates n Memristor Synapse R S First memristor R 0 output current, Indicates n Memristor Synapse R S Second memristor R 0 output current, Indicates m Line n Column (including two small columns) memristor synapse RS First memristor R The conductivity value of 0, Indicates m Line n Memristor Synapse R S Second memristor R The conductivity value of 0, Indicates m +1 line n Memristor Synapse R S First memristor R The weight is 0, Indicates m +1 line n Memristor Synapse R S Second memristor R The weight is 0, Represents the resistance in the error calculation and write voltage generation module The resistance value, is the activation function, For the n The output voltage of the column, For the n The target voltage of the column, For the n Memristor Synapse R S The first write voltage is supplied to the two memristors. For the n Memristor Synapse R S The second write voltage is supplied to the two memristors, is high level, is low level.

[0071] like Figure 6 As shown, the error voltage generation module corresponding to any column EW First, the current and Convert it into voltage, perform subtraction operation, and activate it through the circuit of the activation function module to get the output voltage of the column , that is, the operation of formula (6). The activation function module can be, but is not limited to, an existing function circuit such as a binary activation function or a sigmoid activation function. This is not limited in this embodiment, as long as it can provide the required activation function. Then the output voltage The target voltage of the column Subtract and get the voltage difference. If the voltage difference is greater than 0, the output write voltage High level , otherwise it is low level , write voltage and The amplitudes are equal and the phases are opposite, which is the operation of equations (7) and (8).

[0072] In the weight update phase, the switch Disconnect, switch Switch to ground, switch Conductivity, is low level, at this time the memristor synapse R S When the input voltage When greater than or equal to 0, Gen The module outputs high level, refer to Figure 4 It can be seen that and Respectively n Memristive synapses R S Write voltage 1 and write voltage 2, if ,but , at this time the memristor synapse R S The conductance value of the first memristor decreases, and the conductance value of the second memristor increases, then the difference between the conductance values ​​of the two memristors (i.e., the weight) decreases. ,but , at this time the memristor synapse R S The conductance value of the first memristor increases, the conductance value of the second memristor decreases, and the corresponding weight increases.

[0073] When the input voltage When it is less than 0, Gen The module outputs a low level. ,but , at this time the memristor synapse R S If the conductance value of the first memristor increases and the conductance value of the second memristor decreases, the difference between the conductance values ​​of the two memristors (i.e., the weight) increases. ,but , at this time the memristor synapse R S The conductance value of the first memristor decreases, the conductance value of the second memristor increases, and the corresponding weight decreases.

[0074] The above-mentioned memristor crossbar array circuit with self-learning ability can be used to construct an artificial neural network circuit. In addition to having the forward propagation ability, it also has the self-learning ability. R S The structure design, switch timing control design, error calculation and write voltage generation module design, etc. can automatically adjust the memristor synapse according to the output error.R S The weight of the memristor synapse R S The conductance value of the memristor neural network was 0.0447 W, which solved the problem that the previous memristor crossbar array did not have the self-learning ability, and removed the technical barriers for the current practical application of memristor neural networks.

[0075] In one embodiment, a memristor conductance updating method is further provided, which is applied to the above-mentioned memristor synapse or to the above-mentioned memristor crossbar array circuit. The memristor conductance updating method may include the following processing steps:

[0076] Applying a high level to the read control terminal and the write control terminal of the memristor synapse to control the memristor synapse to switch to a read state; in the read state, the memristor synapse is connected to an input voltage, and the output current of the first memristor unit and the second memristor unit of the memristor synapse is subtracted from each other as the output current of the memristor synapse;

[0077] generating a first write voltage and a second write voltage according to a difference between an output voltage of the memristor synapse and a target voltage;

[0078] A low level is applied to the read control terminal and the write control terminal of the memristive synapse to control the memristive synapse to switch to a write state; in the write state, the memristive synapse disconnects the input voltage, and when the input voltage is greater than 0, the first memristive unit of the memristive synapse is controlled to access the first write voltage and the second memristive unit is controlled to access the second write voltage to update the weight of the memristive synapse; when the input voltage is less than 0, the first memristive unit of the memristive synapse is controlled to access the second write voltage and the second memristive unit is controlled to access the first write voltage to update the weight of the memristive synapse.

[0079] It can be understood that the explanation of the memristor crossbar array circuit in this embodiment can refer to the memristor synapse circuit in the above embodiments. R S The same explanation as the explanation of the memristor crossbar array circuit is understood, and no further description is given in this embodiment. Regarding the specific implementation process of the memristor conductance update in this embodiment, reference can also be made to the memristor synapse in the above embodiments. R S The same explanation as the corresponding explanation in the working process of the memristor crossbar array circuit is understood and will not be elaborated in this embodiment.

[0080] The above memristor conductance update method designs and applies a memristor synapse capable of switching between read and write states by modifying the traditional perceptron algorithm. The memristor synapse is composed of two memristor units. When the read control terminal and the write control terminal of the first memristor unit and the second memristor unit are simultaneously connected to the read control signal, the first memristor unit and the second memristor unit can be switched to the read state to perform the forward propagation stage of the array. When the read control terminal and the write control terminal of the first memristor unit and the second memristor unit are simultaneously connected to the write control signal, the first memristor unit and the second memristor unit can be switched to the write state (i.e., the learning state). At this time, the first memristor unit and the second memristor unit are simultaneously connected to write voltages with equal amplitudes and opposite phases, which can be used to perform the weight update stage of the array. In this way, compared with the traditional memristor neural network, the memristor neural network constructed by applying the above newly designed memristor synapse can not only provide forward propagation acceleration capability, but also effectively utilize the error between the output voltage and the target voltage to automatically update the conductance value of the memristor, thereby obtaining the effect of making the memristor neural network have self-learning ability.

[0081] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not 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. The above embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several deformations and improvements can be made, which all belong to the protection scope of the present application. Therefore, the protection scope of the patent of this application shall be based on the attached claims.

Claims

1. A memristive synapse, characterized in that: The invention comprises a first memristor unit and a second memristor unit, wherein the read control terminals of the first memristor unit and the second memristor unit are used to access a read control signal, the write control terminals of the first memristor unit and the second memristor unit are used to access a write control signal, the input terminals of the first memristor unit and the second memristor unit are used to access an input voltage, the write voltage input terminal of the first memristor unit is used to access a first write voltage or a second write voltage, the write voltage input terminal of the second memristor unit is used to access a second write voltage or a first write voltage, and the output currents of the first memristor unit and the second memristor unit are used to be subtracted from each other as the output current of the memristor synapse; The first write voltage and the second write voltage are write voltages output according to the magnitude relationship between the target voltage and the output voltage of the memristor synapse, the first write voltage and the second write voltage have equal amplitudes and opposite phases, and the first memristor unit and the second memristor unit are simultaneously connected to different write voltages in the write state; The first memristor unit includes a first memristor, a first read control switch tube, a first write control switch tube, a first write switch tube, and a second write switch tube, wherein the input end of the first read control switch tube is used to access the input voltage, the control end of the first read control switch tube is used to access the read control signal, the output end of the first read control switch tube is connected to one end of the first memristor, and the other end of the first memristor is used to output a first output current; The input end of the first write control switch tube is connected to the output end of the first write switch tube or the second write switch tube, the control end of the first write control switch tube is used to access the write control signal, and the output end of the first write control switch tube is connected to one end of the first memristor; The control ends of the first write switch tube and the second write switch tube are used to access a conduction control signal, the input end of the first write switch tube is used to access the second write voltage, and the input end of the second write switch tube is used to access the first write voltage; wherein the conduction control signal controls the first write switch tube or the second write switch tube to be turned on at the same time; The second memristor unit includes a second memristor, a second read control switch tube, a second write control switch tube, a third write switch tube and a fourth write switch tube, the input end of the second read control switch tube is used to access the input voltage, the control end of the second read control switch tube is used to access the read control signal, the output end of the second read control switch tube is connected to one end of the second memristor, and the other end of the second memristor is used to output a second output current; The input end of the second write control switch tube is connected to the output end of the third write switch tube or the fourth write switch tube, the control end of the second write control switch tube is used to access the write control signal, and the output end of the second write control switch tube is connected to one end of the second memristor; The control ends of the third write switch tube and the fourth write switch tube are used to access a conduction control signal, the input end of the third write switch tube is used to access the first write voltage, and the input end of the fourth write switch tube is used to access the second write voltage; wherein the conduction control signal controls the third write switch tube or the fourth write switch tube to be turned on at the same time.

2. A memristor crossbar array circuit, characterized in that: It comprises N error voltage generating modules, (M+1) rows and N columns of memristor synapses, the (M+1) rows and N columns of memristor synapses constitute a memristor cross array, each error voltage generating module corresponds to each column of memristor synapses one by one; M and N are both positive integers; Each of the memristor synapses comprises a first memristor unit and a second memristor unit, wherein the read control terminals of the first memristor unit and the second memristor unit are used to access the read control signal of the column, the write control terminals of the first memristor unit and the second memristor unit are used to access the write control signal of the column, and the input terminals of the first memristor unit and the second memristor unit are used to access the input voltage of the row; The write voltage input terminals of the first memristor unit and the second memristor unit are respectively connected to the write voltage output terminals of the error voltage generating module of the corresponding column, the write voltage input terminal of the first memristor unit is used to access the first write voltage or the second write voltage output by the error voltage generating module, the write voltage input terminal of the second memristor unit is used to access the second write voltage or the first write voltage output by the error voltage generating module, the output terminals of the first memristor unit and the second memristor unit are respectively connected to the current input terminals of the error voltage generating module of the corresponding column, the error voltage generating module of the corresponding column is used to subtract the output currents of the first memristor unit and the second memristor unit as the output current of the column, and output the first write voltage and the second write voltage according to the magnitude relationship between the target voltage of the column and the output voltage; The first write voltage and the second write voltage are write voltages with equal amplitudes and opposite phases, and the first memristor unit and the second memristor unit are simultaneously connected to different write voltages when in a write state.

3. The memristor crossbar array circuit according to claim 2, characterized in that: The first memristor unit includes a first memristor, a first read control switch tube, a first write control switch tube, a first write switch tube and a second write switch tube, the input end of the first read control switch tube is used to access the input voltage of the row, the control end of the first read control switch tube is used to access the read control signal of the column, the output end of the first read control switch tube is connected to one end of the first memristor, and the other end of the first memristor is connected to the first current input end of the error voltage generating module of the corresponding column; The input end of the first write control switch tube is connected to the output end of the first write switch tube or the second write switch tube, the control end of the first write control switch tube is used to access the write control signal of the column, and the output end of the first write control switch tube is connected to one end of the first memristor; The control ends of the first write switch tube and the second write switch tube are used to access a conduction control signal, the input end of the first write switch tube is connected to the second write voltage output end of the error voltage generating module of the corresponding column, and the input end of the second write switch tube is connected to the first write voltage output end of the error voltage generating module of the corresponding column; wherein the conduction control signal controls the first write switch tube or the second write switch tube to be turned on at the same time.

4. The memristor crossbar array circuit according to claim 2 or 3, characterized in that: The second memristor unit includes a second memristor, a second read control switch tube, a second write control switch tube, a third write switch tube and a fourth write switch tube, the input end of the second read control switch tube is used to access the input voltage of the row, the control end of the second read control switch tube is used to access the read control signal of the column, the output end of the second read control switch tube is connected to one end of the second memristor, and the other end of the second memristor is connected to the second current input end of the error voltage generating module of the corresponding column; The input end of the second write control switch tube is connected to the output end of the third write switch tube or the fourth write switch tube, the control end of the second write control switch tube is used to access the write control signal of the column, and the output end of the second write control switch tube is connected to one end of the second memristor; The control ends of the third write switch tube and the fourth write switch tube are used to access the conduction control signal, the input end of the third write switch tube is connected to the first write voltage output end of the error voltage generating module of the corresponding column, and the input end of the fourth write switch tube is connected to the second write voltage output end of the error voltage generating module of the corresponding column; wherein, the conduction control signal controls the third write switch tube or the fourth write switch tube to be turned on at the same time.

5. The memristor crossbar array circuit according to claim 4, characterized in that: Each of the error voltage generating modules includes a comparator CP 1. Comparator CP 2. Comparator CP 3. Comparator CP 4. Comparator CP 5. Resistance R 00 ,resistance R 01 ,resistance R 1 to resistor R 10 , activation function module, inverter NOT , a sample-and-hold module CB1 and a sample-and-hold module CB2; When the memristor synapse of the corresponding column is in the read state, the comparator CP 1 is connected to the other end of the first memristor in the first memristor unit, and the comparator CP 2 is connected to the other end of the second memristor in the second memristor unit; when the memristor synapse of the corresponding column is in the write state, the comparator CP 1 and the inverting input of the comparator CP The inverting input terminals of 2 are both floating; The comparator CP 1 through the resistor R 00 ground, the comparator CP 2 through the resistor R 01 ground, the comparator CP 1 output and inverting input through the resistor R 1 connection, the comparator CP 2 output and inverting input through the resistor R 2 connections; The comparator CP 3 through the inverting input terminal of the resistor R 3. Connect the comparator CP 1 output, the comparator CP 3. The non-inverting input terminal is connected through the resistor R 4. Connect the comparator CP 2 output terminals, the comparator CP 3 output and inverting input through the resistor R 5 connections, the comparator CP 3. The non-inverting input terminal is connected through the resistor R 6. Grounding; The input end of the activation function module is connected to the comparator CP 3, the output end of the activation function module is connected to the resistor R 8. Connect the comparator CP 4, the output end of the activation function module is used to output the output voltage of the column, the comparator CP 4 through the inverting input terminal of the resistor R 7 is connected to the target voltage of the column, the comparator CP 4 output and non-inverting input through the resistor R 9 connections, the comparator CP 4 through the resistor R 10 Grounding; The comparator CP 5. The non-inverting input of the comparator is connected CP 4 output terminals, the comparator CP 5, the inverting input terminal of the comparator is grounded. CP 5 are connected to the output terminals of the inverter NOT and the input end of the sampling and holding module CB1, the inverter NOT The output end of the sampling and holding module CB1 is connected to the input end of the sampling and holding module CB2, the output end of the sampling and holding module CB1 is used to output the first write voltage, and the output end of the sampling and holding module CB2 is used to output the second write voltage.

6. The memristor crossbar array circuit according to claim 5, characterized in that: Also includes (M+1) Gen Module, each of the Gen The output end of the module is connected to the write voltage conduction control end of all the memristor synapses in the row in the memristor crossbar array; When the memristor synapse of the corresponding row is in the write state, if the Gen If the input voltage of the module row is greater than 0, the Gen The module outputs a high level to all memristor synapses in the row, and a low level otherwise.

7. The memristor crossbar array circuit according to claim 6, characterized in that: Also includes (M+1) switches S 1. 2N switches S 2 and (M+1) switches S 3; Each of the switches S 1 is used to connect the input voltage of the row, and each switch S The other end of 1 is used to connect the input ends of the first memristor unit and the second memristor unit in the row; Each of the switches S One end of 3 is used to connect the input voltage of the row, and each switch S 3 is connected to the other end of the row Gen The input terminal of the module; Each of the two switches S 2 as an output switch pair corresponding to a column of the memristor synapses, one switch in each of the output switch pairs S One end of switch 2 is connected to the output end of the first memristor unit in the column, and the other end of switch S One end of 2 is connected to the output end of the second memristor unit in the column; A switch in each of the output switch pairs S The other end of switch 2 is used for grounding or connecting the first current input end of the error voltage generating module of the corresponding column. S The other end of 2 is used for grounding or connecting to the second current input end of the error voltage generating module of the corresponding column.

8. A memristor conductance updating method, characterized in that: Applied to the memristor synapse of claim 1 or the memristor crossbar array circuit of any one of claims 2 to 7, the memristor conductance updating method comprises: Applying a high level to the read control terminal and the write control terminal of the memristor synapse to control the memristor synapse to switch to a read state; in the read state, the memristor synapse is connected to an input voltage, and the output current of the first memristor unit and the second memristor unit of the memristor synapse is subtracted from each other as the output current of the memristor synapse; generating a first write voltage and a second write voltage according to a difference between an output voltage of the memristor synapse and a target voltage; A low level is applied to the read control terminal and the write control terminal of the memristor synapse to control the memristor synapse to switch to a write state; in the write state, the memristor synapse disconnects the input voltage, and when the input voltage is greater than 0, the first memristor unit of the memristor synapse is controlled to access the first write voltage and the second memristor unit is controlled to access the second write voltage to update the weight of the memristor synapse; when the input voltage is less than 0, the first memristor unit of the memristor synapse is controlled to access the second write voltage and the second memristor unit is controlled to access the first write voltage to update the weight of the memristor synapse.