A neuron self-learning circuit based on the threshold characteristics of memristor
By designing a neuron self-learning circuit based on the threshold characteristics of memristor and simulating changes in neuron synaptic weights, the problem of traditional computer architecture limiting the speed of artificial intelligence information processing is solved, and low power consumption and strong parallelism of brain-like computing circuits are achieved. processing power.
Patent Information
- Application Number
- CN202410609228.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-05-16
AI Technical Summary
The traditional von Neumann computer architecture limits the speed of artificial intelligence information processing. It is difficult for existing technology to effectively simulate the changes in synaptic weights of biological neurons, which limits the development of brain-inspired computing hardware circuits.
Design a neuron self-learning circuit based on the threshold characteristics of memristor. By adjusting the resistance of memristor, it simulates the change of neuron synaptic weight. MOS tube, adder, memristor, resistor and operational amplifier are used to form the input module. The comparison module and feedback module realize adaptive adjustment of synaptic weights.
It achieves low power consumption, strong parallel processing capabilities and adaptive learning capabilities of brain-like computing circuits, breaks through the information processing speed limit of traditional computer architecture, and provides a new way for artificial intelligence hardware.
Smart Images

Figure CN118428428B
Abstract
Description
Technical Field
[0001] The invention relates to the field of neuron self-learning circuit design, and in particular to a neuron self-learning circuit based on the threshold characteristic of a memristor. Background Art
[0002] With the continuous development of artificial intelligence technology, it has been widely used in all walks of life, and its role in promoting the development of productivity has become increasingly significant. At present, software is still the main way to achieve artificial intelligence, but with the explosive growth of data volume, the traditional von Neumann computer architecture has severely limited the speed at which artificial intelligence can process information, thus severely restricting its further development. At present, the emergence of memristors has made the integrated storage and computing architecture and brain-like computing hardware circuits possible, and has made it possible for computers to break through the von Neumann architecture and bring faster information processing speeds to artificial intelligence computing.
[0003] Memristor is the fourth basic component in circuit theory. It has the characteristic of resistance plasticity. Resistance plasticity means that when an external electric field is applied to the memristor, the resistance of the memristor will change. The resistance change of the memristor is directional. When the direction of the applied electric field is different, the direction of the resistance change will also change.
[0004] Memristors also have threshold characteristics; the threshold characteristics of memristors refer to the fact that when the voltage or current applied to them exceeds a certain threshold, the resistance state or conductivity state of the memristor will change significantly.
[0005] The threshold characteristics and resistance plasticity of memristors allow memristors to be used as storage devices or to simulate the weight changes of synapses in artificial neurons. They have important applications in fields such as brain-like computing and neuromorphic engineering.
[0006] In addition to having properties similar to biological synapses, memristors also have advantages such as low power consumption, nanosize, and compatibility with CMOS tubes. These characteristics make the research of using memristors to build hardware circuits to achieve brain-like computing have broad development prospects.
[0007] As the most complex and sophisticated system today, the biological brain's integrated information processing method provides researchers with a feasible way to break through the current bottleneck of artificial intelligence. With the widespread development of artificial intelligence, the design of artificial intelligence hardware circuits has become particularly important.
[0008] The connection between electronic components in hardware circuits is similar to the connection between different neurons in biological neural networks, so a physical model is established to simulate the structure of the biological brain to realize brain-like computing circuits. Brain-like computing circuits have low power consumption, powerful parallel processing capabilities, and strong adaptive learning capabilities, so they can become a new way to realize artificial intelligence in hardware.
[0009] The realization of brain-like computing requires a large number of artificial neuron circuits and neuron synapse circuits. Therefore, the present invention designs a neuron self-learning circuit based on the threshold characteristics of a memristor, and uses a memristor to simulate the hardware circuit of the synaptic weight change in an artificial neuron. Memristors can be used to construct artificial neurons, which can be used in brain-like computing circuits. Summary of the invention
[0010] Based on the threshold characteristic principle of memristor, the present invention proposes a neuron self-learning circuit based on the threshold characteristic of memristor. The threshold characteristic of the novel two-port device memristor is used to build a memristor synaptic circuit, and the change of synaptic weight in the neuron is simulated by adjusting the resistance value of the memristor.
[0011] The present invention is implemented through the following technical scheme: a neuron self-learning circuit based on the threshold characteristic of a memristor, which is composed of an input module, a comparison module and a feedback module.
[0012] The input module is composed of MOS tube, adder, memristor, resistor and operational amplifier; among them, the signal input terminal is connected to the MOS tube M n (n=1, 2, 3,…) source connected to transmit input voltage signal V inn , first set the input voltage signal V inn The value is lower than the voltage threshold of the memristor, so it will not cause the resistance of the memristor to change; then the drain of the MOS tube is connected to the adder SUM n , adder SUM n The other input terminal is connected to the feedback adjustment voltage signal V adj connected; the gate of the MOS tube is connected to the control voltage signal V ctrl Connected, control voltage signal V ctrl It is used to control the switching state of the MOS tube, thereby controlling the working cycle of the entire neuron self-learning circuit. n1 The positive electrode and the memristor M n2 The negative electrodes of (n=1, 2, 3,…) are connected in reverse order to form a memristor synapse unit. n The output end of the two memristors M n1 and M n2 The middle connection point is connected to form a complete memristive synaptic input circuit. Resistor R1 and operational amplifier A1, resistor R2 and operational amplifier A2 respectively form two amplifier circuits; the amplifier circuit 1 formed by resistor R1 and operational amplifier A1 and the memristive synapse M n1 The negative terminal of the resistor R2 and the operational amplifier A2 constitute the amplifier circuit 2 and the memristor synapse M n2 The positive terminal is connected to the input voltage signal Vinn Through the memristor M n1 and M n2 The resistors R3-R6 and the operational amplifier A3 together form a subtraction circuit 3, whose output voltage is V O1 , are respectively connected to the output ends of amplifier circuit 1 and amplifier circuit 2 to form an input module.
[0013] The working principle of the input module is as follows. Assume that a complete working cycle of the proposed neuron self-learning circuit is 50ms, and the first 25ms is the neuron input period; during this stage, the control voltage signal V ctrl is high level, MOS tube M n is turned on, the input voltage signal V inn Can pass MOS tube M n Input to adder SUM n At the same time, the feedback adjustment voltage signal V adj is 0V, at this time the input voltage signal V inn Can directly act on the memristor M n1 and M n2 The memristor synapse formed by the positive and negative connections passes through the amplifier circuit 1 and the amplifier circuit 2, and the subtraction circuit 3, and the output voltage V O1 The next 25ms is the neuron adjustment period. At this time, the output result of the input module is compared with the reference voltage V cp The output voltage V O1 Less than the reference voltage V cp , then the output positive feedback adjustment voltage signal V adj , so that the synaptic weight value increases, thereby increasing the output of the neuron circuit; if the output voltage is greater than the reference voltage V cp , then the output negative feedback adjustment voltage signal V adj , so that the synaptic weight value decreases, thereby reducing the output of the neuron circuit.
[0014] The comparison module is powered by a reference voltage source V cp , clock signal source CLOCK, capacitor C, sample and hold Q1, DC voltage source V a With V b , resistor R7-R 10 And operational amplifier A4. DC voltage source V a Set as positive power supply, V b Set as negative power supply, the input of the sample and hold circuit is connected to the output voltage V O1 Connected to a DC voltage source V a and Vb The capacitor C is connected to the sample and hold Q1 as the power supply of the sample and hold Q1. The function of the capacitor C is to store the sampling voltage of the sample and hold Q1. The clock signal source CLOCK is used to provide the sampling clock of the sample and hold Q1. 10 Connected to the subtraction circuit 4 formed by the operational amplifier A4, the reference voltage source V cp As another input source of the subtraction circuit 4, it is connected to the resistor R8. cp The output result V of the comparison module is subtracted from the sample voltage output by the sample and hold device. O2 , the output result V O2 Then input it into the next level feedback module.
[0015] The working principle of the comparison module is as follows. The proposed neuron self-learning circuit has two working stages, namely the neuron input period and the neuron adjustment period, and the duration is set to 25ms respectively. The sample holder Q1 only samples the signal during the neuron input period. The sampled voltage signal is stored in the capacitor C connected to the sample holder Q1 and transmitted to the subtraction circuit 4 connected to the output end of the sample holder Q1. In the subtraction circuit 4, the reference voltage V cp Subtract the output voltage from the output of the sample-and-hold Q1 and get V O2 A positive or negative voltage signal, the voltage signal V O2 Then output to the next level feedback module.
[0016] The feedback module consists of resistor R 11 -R 13 , operational amplifier A5, double-pole double-throw switch S1-S2, pulse voltage source U1-U2 and adder SUM adj U1 is a positive pulse voltage source, and its pulse level is set to positive 0.25V, and its duty cycle is 50%; U2 is a negative pulse voltage source, and its pulse level is set to negative 0.25V, and its duty cycle is 50%. The output voltage V O2 It is divided into two branches; one branch is connected to the resistor R 11 -R 13 The other is directly connected to the double-pole double-throw switch S1. Among them, the double-pole double-throw switch S1 is connected to the positive pulse voltage source U1. If the output voltage signal V O2 If the voltage is positive, the double-pole double-throw switch S1 is turned on, and the positive pulse voltage is input to the adder SUM adj If the output voltage signal V O2 If the voltage is negative, the double-pole double-throw switch S1 is closed, and the resistor R 11 -R13 Under the action of the inverter composed of the operational amplifier A5, the double-pole double-throw switch S2 is turned on, and the double-pole double-throw switch S2 is connected to the negative pulse voltage source U2, so it will send a negative pulse to the adder SUM adj Output negative pulse voltage. Adder SUM adj Add the pulse voltage signals connected to switch S1 and switch S2 and output them to the adder SUM1-SUM of the input module n , as the weight adjustment signal of the memristor synapse.
[0017] The working principle of the feedback module is as follows. When the upper level comparison module outputs a voltage signal V O2 When it is a positive voltage, it means that the voltage from the sample and hold is less than the reference voltage V cp , the synaptic weight of the memristor of the input module needs to be increased. At this time, the directly connected double-pole double-throw switch S1 is turned on, and the positive pulse voltage source connected to the double-pole double-throw switch S1 is connected to the next-stage adder SUM adj As the input module adjustment voltage V adj When the upper comparison module outputs a voltage signal V O2 When it is a negative voltage, it means that the voltage from the sample and hold is greater than the reference voltage V cp , the synaptic weight of the memristor of the input module needs to be reduced. At this time, the double-pole double-throw switch S2 connected to the negative pulse voltage is turned on, and the output voltage V O2 By R 11 -R 13 After the inverter composed of the operational amplifier A5 performs an inverting operation, it becomes a positive voltage. At this time, the double-pole double-throw switch S1 connected to the positive pulse voltage source is closed, and the negative pulse voltage is input into the adder, which acts on the memristor synapse of the input module as a feedback adjustment voltage signal, so that the memristor synapse value decreases and the output voltage value also decreases.
[0018] Since the feedback adjustment phase of the proposed neuron self-learning circuit is periodic, a complete working cycle is assumed to be 50ms, and the first half of the cycle is the neuron input period, which lasts for 25ms. During the neuron input period, the control voltage V ctrl is high level, MOS tube M1-M n Open, input voltage V in1 -V inn Through MOS tube M1-M n Input to adder SUM1-SUM n During the neuron input period, the feedback adjusts the voltage V adj is 0V, so during the neuron input period, there is only input voltage V in1 -V innThe second half of the cycle is the neuron adjustment period. During the neuron adjustment period, the control voltage V ctrl is low level, MOS tube M1-M n At this time, the input voltage V in1 -V inn The signal is 0V, and the feedback adjustment voltage V adj Input to adder SUM1-SUM n In the process, the memristive synaptic weights of neurons are adjusted. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 The schematic diagram of a neuron self-learning circuit based on the threshold characteristics of a memristor.
[0020] Figure 2 Schematic diagram of the input module.
[0021] Figure 3 A schematic diagram of the comparison module.
[0022] Figure 4 Schematic diagram of the feedback module.
[0023] Figure 5 Schematic diagram of the output voltage of the input module.
[0024] Figure 6 Schematic diagram of the sample and hold output voltage of the comparison module.
[0025] Figure 7 Schematic diagram of the output voltage of the feedback module. DETAILED DESCRIPTION
[0026] In order to make the technical solutions, objectives and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings.
[0027] like Figure 1 As shown, the present invention provides a neuron self-learning circuit based on the threshold characteristic of a memristor, which includes an input module, a comparison module and a feedback module. The provided neuron self-learning circuit has a working cycle of 50ms and can be divided into two stages: a neuron input period and a neuron adjustment period, each of which takes 25ms; the pulse voltage V ctrl With V adj The neuron input period and the neuron adjustment period of the circuit are controlled separately.
[0028] like Figure 2 The figure shows the input module schematic diagram of the neuron self-learning circuit. The input module consists of MOS tubes M1-M n (n=1, 2, 3,…), adder SUM1-SUM n 、Memristor 11-M n1 and M 12 -M n2 , resistors R1-R6 and operational amplifiers A1-A3; wherein the input voltage signal V in1 -V inn Through the signal input terminal, they are connected to MOS tubes M1-M n The source of MOS tube M1-M n The gate and control voltage signal V ctrl Connected, MOS tube M1-M n The drains of adders SUM1-SUM n One input terminal of the adder SUM1-SUM n The other input terminal is connected to the feedback module to adjust the voltage signal V adj connected; memristor M 11 -M n1 The positive electrode and the memristor M 12 -M n2 The negative electrodes of the adders SUM1-SUM n The output ends are connected to two memristors M 11 -M n1 and M 12 -M n2 The middle connection point is connected; the resistor R1 and the operational amplifier A1 form an amplifier circuit 1, and the in-phase input terminal of the operational amplifier A1 is grounded; one end of the resistor R1 is connected to the M in the memristor synapse 11 -M n1 The negative end of the resistor R1 is connected to the first node, and the first node is also connected to the inverting input terminal of the operational amplifier A1; the other end of the resistor R1 is connected to the output terminal of the operational amplifier A1; the resistor R2 and the operational amplifier A2 form an amplifier circuit 2; the non-inverting input terminal of the operational amplifier A2 is grounded; one end of the resistor R2 is connected to the M in the memristor synapse 12 -M n2The positive end of the resistor R2 is connected to the second node, and the second node is also connected to the inverting input terminal of the operational amplifier A2; the other end of the resistor R2 is connected to the output terminal of the operational amplifier A2 at the fourth node; the resistors R3-R6 and the operational amplifier A3 together constitute a subtraction circuit 3, one end of the resistor R3 is connected to the output terminal of the operational amplifier A1 at the third node; the other end of the resistor R3 is connected to the inverting input terminal of the operational amplifier A3 at the fifth node; one end of the resistor R4 is connected to the output terminal of the operational amplifier A2 at the fourth node; the other end of the resistor R4 is connected to the non-inverting input terminal of the operational amplifier A3 at the sixth node; one end of the resistor R6 is connected to the sixth node, and the other end is grounded; one end of the resistor R5 is connected to the fifth node, and the other end of the resistor R5 is connected to the output terminal of the operational amplifier A3 at the seventh node, that is, connected to the output port V of the input module. O1 .
[0029] like Figure 3 The figure shows the comparison module schematic diagram of the neuron self-learning circuit. The comparison module is composed of a DC voltage source V a and V b , reference voltage source V cp , clock signal source CLOCK, capacitor C, sample and hold Q1, resistor R7-R 10 and operational amplifier A4. The input end of the sample and hold Q1 is connected to the output port V O1 Connected to the seventh node; DC voltage source V a and V b connected to the sample holder Q1, serving as the positive and negative power supplies of the sample holder Q1 respectively; the capacitor C is connected to the sample holder Q1, which stores the voltage signal sampled by the sample holder Q1 in the capacitor C; the clock signal source CLOCK is connected to the sample holder Q1, which is used to provide the sampling clock of the sample holder Q1; the output end of the sample holder Q1 is connected to one end of the resistor R7 through the eighth node; from the resistor R7 to R 10 The other end of the resistor R7 is connected to the inverting input terminal of the operational amplifier A4 at the ninth node; one end of the resistor R8 is connected to the non-inverting input terminal of the operational amplifier A4 at the tenth node, and the other end of the resistor R8 is connected to the reference voltage source V cp Connected; resistance R 10 One end of the resistor R is connected to the tenth node. 10 The other end of the resistor R9 is connected to the ground; one end of the resistor R9 is connected to the ninth node, and the other end of the resistor R9 is connected to the output end of the operational amplifier A4 at the eleventh node, that is, connected to the output port V of the comparison module O2 .
[0030] like Figure 4 The figure shows the feedback module schematic diagram of the neuron self-learning circuit. The feedback module consists of a resistor R11 -R 13 , operational amplifier A5, double-pole double-throw switch S1-S2, pulse voltage source U1-U2 and adder SUM adj U1 is a positive pulse voltage source, and its pulse level is set to positive 0.25V, and its duty cycle is 50%; U2 is a negative pulse voltage source, and its pulse level is set to negative 0.25V, and its duty cycle is 50%. The output port V O2 It is divided into two branches, one of which is directly connected to the input end of the double-pole double-throw switch S1 through the eleventh node; wherein the double-pole double-throw switch S1 is connected to the positive pulse voltage source U1. If the output port V O2 If the voltage is positive, the double-pole double-throw switch S1 is turned on, and the positive pulse voltage is input to the adder SUM adj The output of switch S1 is connected to the adder SUM adj Connected to the fifteenth node; if the output port V from the previous comparison module O2 is a negative voltage, the double-pole double-throw switch S1 is closed; the output port V O2 Through the eleventh node and the resistor R 11 -R 13 The inverter formed by the operational amplifier A5 is connected to the resistor R 11 One end, R 11 The other end of is connected to the inverting input terminal of the operational amplifier A5 at the twelfth node; the non-inverting input terminal of the operational amplifier A5 is grounded; 12 One end of R is connected to the twelfth node. 12 The other end of R is connected to the output end of the operational amplifier A5 at the thirteenth node; 13 One end of R is connected to the thirteenth node. 13 The other end is connected to the input end of the double-pole double-throw switch S2 at the fourteenth node; the double-pole double-throw switch S2 is connected to the negative pulse voltage source U2, and the output end of the double-pole double-throw switch S2 is connected to the adder SUM adj The other input end of the adder SUM is connected to the sixteenth node; adj The output end of the adder SUM1-SUM in the input module n The other end of each is connected through the seventeenth node, and the feedback adjustment voltage signal V adj Acts as a weight adjustment signal for memristive synapses.
[0031] In the neuron self-learning circuit simulation example, a complete working cycle is 50ms, which can be divided into a neuron input period and a neuron adjustment period, each taking 25ms; the feedback adjustment voltage signal V adj With the input voltage signal V inn It cannot act on every memristor synaptic unit at the same time. In the following simulation, 7 input voltage signals Vinn , that is, n=7; during the neuron input period, only the input voltage signal V inn Acts on each memristor synaptic unit; during the neuron adjustment period, only the feedback adjustment voltage signal V adj Acts on each memristive synaptic unit.
[0032] like Figure 5 The output voltage V of the input module is shown O1 Simulation diagram, Figure 5 It can be divided into two intervals, namely the 0-8s interval and the 8-12s interval. In the 0-8s interval, the reference voltage V cp is 5V, when the feedback adjustment voltage signal V adj When the voltage is positive, the feedback adjusts the voltage signal V adj The absolute value of the input voltage signal V inn According to Kirchhoff's voltage law, during the adjustment period of the neuron, the output voltage signal V O1 The absolute value will be higher than the output voltage signal V during the neuron input period O1 The absolute value of the output voltage signal V of the neuron during the adjustment period in the 0-8s interval O1 Manifested as Figure 5 The upper contour of the curve; the output voltage signal V during the neuron input period O1 It is shown as the lower contour of the curve. For the 8-12s interval, let the reference voltage V cp is 2.5V. At this time, the output voltage V O1 Higher than the reference voltage, according to the working principle of the above circuit, the feedback adjustment voltage signal V adj is a negative voltage. According to Kirchhoff’s voltage law, V adj During the negative pulse voltage, the voltage will be smaller, but because V adj The absolute value is still higher than the input voltage signal V inn , so during the neuron adjustment period, the output voltage V O1 The absolute value of the voltage during the neuron input period is still higher than the absolute value of the voltage during the neuron input period, which is shown as the part far away from the 0V horizontal line. O1 It is shown as the part close to the 0V horizontal line. In the 8-12s interval, V O1 A positive pulse voltage is output. This is because the memristor synaptic weight is too small to meet the preset value of 2.5V due to over-adjustment of the circuit, so the feedback voltage signal V adj A positive pulse voltage is output, which causes each memristor synaptic weight of the input module to rise slightly, thereby increasing the output voltage V O1 This shows the robustness of the circuit design.
[0033] like Figure 6 The output voltage V of the sample-and-hold Q1 in the comparison module is shown. Q1 In the simulation diagram, the sample-and-hold device Q1 is set to sample only during the neuron input period. It can be seen that in the 0-8s interval, the reference voltage V cp The output voltage of the sample-and-hold circuit is 5V. Q1 Gradually approach 5V and remain stable after reaching 5V; in the 8-12s interval, set the reference voltage V cp During this period, the output voltage of the sample-and-hold circuit V Q1 It gradually approaches 2.5V and remains stable after reaching 2.5V.
[0034] like Figure 7 The feedback adjustment voltage signal V output by the feedback module is shown as adj From the simulation diagram, we can see that in the 0-8s range, the reference voltage V cp Set to 5V, and the output voltage signal of the input module V O1 During the neuron input period, the voltage output is less than 5V, so the weight value of the memristor synaptic unit in the input module needs to be adjusted upward, so the output voltage V adj is positive 0.25V. When the weight is adjusted to meet the preset requirements, the output signal V O1 When the voltage value during the neuron input period is 5V, the feedback adjustment voltage signal V adj When the voltage drops below the threshold voltage of the memristor, although there is still a pulse voltage signal, the synaptic weight of the memristor is no longer adjusted. In the 8-12s range, the reference voltage V cp Set to 2.5V, and the output voltage signal of the input module V O1 The output of the neuron input period is greater than 2.5V, so the weight value of the memristor synaptic unit in the input module needs to be adjusted downward, so the feedback adjustment voltage signal V output by the feedback module adj When the weight value is adjusted too low, the circuit will also output a positive pulse to adjust the weight of the memristor synaptic unit upward, which is shown in the figure as a positive pulse output around 10s. O1 When the output of the neuron input period is 2.5V, the feedback module outputs the feedback adjustment voltage signal V adj When the voltage drops below the threshold voltage of the memristor, although there is still a pulse voltage signal, the synaptic weight of the memristor is no longer adjusted, which reflects the robustness of the circuit design.
Claims
1. A neuron self-learning circuit based on the threshold characteristics of a memristor, It is characterized in that It is composed of an input module, a comparison module and a feedback module; The input module is composed of MOS tube M 1 -M n , adder SUM 1 -SUM n 、Memristor 11 -M n1 and M 12 -M n2 , resistor R 1 -R 6 and operational amplifier A 1 -A 3 Composition; wherein, the input voltage signal V in1 -V inn Through the signal input terminal, they are connected to the MOS tube M 1 -M n The source of MOS tube M is connected 1 -M n The gate and control voltage signal V ctrl Connected, MOS tube M 1 -M n The drains of the adders are connected to SUM 1 -SUM n One input terminal of the adder SUM 1 -SUM n The other input terminal is connected to the feedback module to adjust the voltage signal V adj connected; memristor M 11 -M n1 The positive electrode and the memristor M 12 -M n2 The negative electrodes of the adder SUM are connected in reverse order to form a group of memristor synaptic units; 1 -SUM n The output ends are connected to two memristors M 11 -M n1 and M 12 -M n2 The middle connection point is connected; the resistor R 1 With operational amplifier A 1 Amplifying circuit 1, operational amplifier A 1 The non-inverting input terminal is grounded; the resistor R 1 One end of the memristor synapse is connected to M 11 -M n1 The negative terminal of the first node is connected to the first node, which is also connected to the operational amplifier A 1 The inverting input terminal; the resistor R 1 The other end is connected to the operational amplifier A 1 The output end of is connected to the third node; the resistor R 2 With operational amplifier A 2 Amplifying circuit 2: Operational amplifier A 2 The non-inverting input terminal is grounded; the resistor R 2 One end of the memristor synapse is connected to M 12 -M n2 The positive terminal is connected to the second node, which is also connected to the operational amplifier A 2 The inverting input terminal; the resistor R 2 The other end is connected to the operational amplifier A 2 The output end of the resistor R is connected to the fourth node; 3 -R 6 With operational amplifier A 3 Together they form a subtraction circuit 3, resistor R 3 One end of the operational amplifier A 1 The output end of is connected to the third node; the resistor R 3 The other end is connected to the operational amplifier A 3 The inverting input terminal is connected to the fifth node; the resistor R 4 One end of the operational amplifier A 2 The output end of the resistor R is connected to the fourth node; 4 The other end is connected to the operational amplifier A 3 The non-inverting input terminal is connected to the sixth node; the resistor R 6 One end of the resistor R is connected to the sixth node, and the other end is grounded; 5 One end of the resistor R is connected to the fifth node. 5 The other end is connected to the operational amplifier A 3 The output end is connected to the seventh node, which is also connected to the output port V of the input module. O1 ; The comparison module is composed of a DC voltage source V a and V b , reference voltage source V cp , clock signal source CLOCK, capacitor C, sample and hold Q 1 , resistor R 7 -R 10 and operational amplifier A 4 Composition: Sample and Hold Q 1 The input port and the output port V of the input module O1 Connected to the seventh node; DC voltage source V a and V b With the sample and hold Q 1 connected, respectively, as a sample-and-hold device Q 1 Positive and negative power supply; capacitor C and sample-and-hold Q 1 connected, it holds the sample-and-hold Q 1 The sampled voltage signal is in capacitor C; the clock signal source CLOCK and the sample-and-hold Q 1 connected, it is used to provide the sample and hold Q 1 The sampling clock of the sample-and-hold device Q 1 The output terminal is connected to the resistor R 7 One end is connected to the resistor R 7 To R 10 With operational amplifier A 4 The subtraction circuit 4 is formed; the resistor R 7 The other end is connected to the operational amplifier A 4 The inverting input terminal is connected to the ninth node; the resistor R 8 One end of the operational amplifier A 4 The non-inverting input terminal is connected to the tenth node, and the resistor R 8 The other end is connected to the reference voltage source V cp Connected; resistance R 10 One end of the resistor R is connected to the tenth node. 10 The other end of the resistor R is connected to the ground. 9 One end of the resistor R is connected to the ninth node. 9 The other end is connected to the operational amplifier A 4 The output terminal is connected to the eleventh node, that is, connected to the output port V of the comparison module. O2 ; The feedback module consists of a resistor R 11 -R 13 、Operational amplifier A 5 , double-pole double-throw switch S 1 -S 2 , pulse voltage source U 1 -U 2 SUM adj Composition: 1 is a positive pulse voltage source, assuming its pulse level is positive 0.25V and its duty cycle is 50%; U 2 is a negative pulse voltage source, and its pulse level is set to negative 0.25V, and the duty cycle is 50%; the output port V O2 It is divided into two branches, one of which directly passes through the eleventh node and the double-pole double-throw switch S 1 The input terminal is connected; wherein the double-pole double-throw switch S 1 With positive pulse voltage source U 1 If the output port V from the previous comparison module is connected O2 is a positive voltage, then the double-pole double-throw switch S 1 Open, input the positive pulse voltage to the adder SUM adj Middle; switch S 1 The output of adder SUM adj Connected to the fifteenth node; if the output port V from the previous comparison module O2 If the voltage is negative, the double-pole double-throw switch S 1 Closed; output port V O2 Through the eleventh node and the resistor R 11 -R 13 and operational amplifier A 5 The inverter is connected to the resistor R 11 One end, R 11 The other end is connected to the operational amplifier A 5 The inverting input terminal of the operational amplifier A is connected to the twelfth node; 5 The non-inverting input terminal of R 12 One end of R is connected to the twelfth node. 12 The other end is connected to the operational amplifier A 5 The output end of R is connected to the thirteenth node; 13 One end of R is connected to the thirteenth node. 13 The other end of the double-pole double-throw switch S 2 The input end of the double-pole double-throw switch S is connected to the fourteenth node; 2 With negative pulse voltage source U 2 Connected, double-pole double-throw switch S 2 The output of adder SUM adj The other input end of the adder SUM is connected to the sixteenth node; adj The output terminal of the adder SUM in the input module 1 -SUM n The other end of each is connected through the seventeenth node, and the feedback adjustment voltage signal V adj Acts as a weight adjustment signal for memristive synapses.
2. A neuron self-learning circuit based on the threshold characteristic of a memristor according to claim 1, It is characterized in that The working mechanism of the neuron self-learning circuit is that the input module includes a memristor synaptic unit, which simulates the change of the memristor synaptic weight in the neuron based on the resistance plasticity and threshold characteristics of the memristor; first, the output voltage of the input module is compared with the reference voltage of the comparison module, and then a positive voltage or a negative voltage is input to the feedback module according to the comparison result to change the feedback adjustment voltage signal output by the feedback module; if the output voltage of the input module is less than the reference voltage value of the comparison module, the feedback module outputs a positive pulse voltage signal to increase the memristor synaptic weight of the input module, and the output voltage of the input module also increases accordingly; if the output voltage of the input module is greater than the reference voltage value of the comparison module, the feedback module outputs a negative pulse voltage signal to reduce the memristor synaptic weight of the input module, and the output voltage of the input module also decreases accordingly; through the joint action of the input module, the comparison module and the feedback module, the output signal of the input module is gradually adjusted to gradually approach the reference voltage value of the comparison module, and finally the self-learning process of the neuron circuit is completed.
