CN112734022A - Four-character memristor neural network circuit with recognition and sorting functions - Google Patents

Four-character memristor neural network circuit with recognition and sorting functions Download PDF

Info

Publication number
CN112734022A
CN112734022A CN202110143875.7A CN202110143875A CN112734022A CN 112734022 A CN112734022 A CN 112734022A CN 202110143875 A CN202110143875 A CN 202110143875A CN 112734022 A CN112734022 A CN 112734022A
Authority
CN
China
Prior art keywords
input
terminal
output
nand gate
amplifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110143875.7A
Other languages
Chinese (zh)
Other versions
CN112734022B (en
Inventor
孙军伟
王春秀
赵艺芳
肖萧
韩俊涛
吉浩平
孟子杰
杨秦飞
王延峰
王英聪
凌丹
王妍
李盼龙
刘鹏
张勋才
姜素霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou University of Light Industry
Original Assignee
Zhengzhou University of Light Industry
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou University of Light Industry filed Critical Zhengzhou University of Light Industry
Priority to CN202110143875.7A priority Critical patent/CN112734022B/en
Publication of CN112734022A publication Critical patent/CN112734022A/en
Application granted granted Critical
Publication of CN112734022B publication Critical patent/CN112734022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/06Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
    • G06N3/063Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using electronic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/10Interfaces, programming languages or software development kits, e.g. for simulating neural networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Neurology (AREA)
  • Character Discrimination (AREA)

Abstract

本发明提出了一种具有识别和排序功能的四字符忆阻神经网络电路,用于解决现有人工神经网络消耗大量计算力的技术问题。本发明包括字符识别模块、信号处理模块和收敛模块,字符识别模块的输入端分别与字符输入信号、时钟信号相连接,字符识别模块的输出端与信号处理模块的输入端相连接,信号处理模块的输出端与收敛模块的输入端相连接,收敛模块的输出端输出四字符忆阻神经网络电路的输出信号。本发明提出的Hopfield神经网络是由忆阻器构造的,以保证权值可以反复训练;权值可以用记忆电阻和运算放大器组成的突触电路来表示,以获取正突触权值和负突触权值;本发明能够同时识别和排序被噪音干扰的四个字符,并将最终结果收敛为单词的形式。

Figure 202110143875

The invention proposes a four-character memristive neural network circuit with identification and sorting functions, which is used to solve the technical problem that the existing artificial neural network consumes a large amount of computing power. The invention includes a character recognition module, a signal processing module and a convergence module. The input end of the character recognition module is respectively connected with the character input signal and the clock signal, and the output end of the character recognition module is connected with the input end of the signal processing module. The output end is connected with the input end of the convergence module, and the output end of the convergence module outputs the output signal of the four-character memristive neural network circuit. The Hopfield neural network proposed by the present invention is constructed by memristors to ensure that the weights can be trained repeatedly; the weights can be represented by a synaptic circuit composed of memristors and operational amplifiers to obtain positive synaptic weights and negative synapses touch weight value; the present invention can identify and sort four characters disturbed by noise at the same time, and converge the final result into the form of words.

Figure 202110143875

Description

Four-character memristor neural network circuit with recognition and sorting functions
Technical Field
The invention relates to the technical field of digital-analog circuits, in particular to a four-character memristive neural network circuit with recognition and sequencing functions.
Background
The artificial neural network is a research hotspot in the field of artificial intelligence, and shows good intelligent characteristics in the aspects of biological recognition, prediction estimation, mode recognition, robot control and the like. Constructing a human brain-like mechanism on a traditional digital computer based on von neumann architecture is a difficult task. Digital computers typically process information in a sequential order, while the brain processes information in parallel. Compared with a digital computer, the biological brain is more flexible and easier to learn new things. To effectively implement the functions of a biological brain, a new computing architecture is required.
In 1971, professor Chua creatively proposed a basic element defining the relationship between charge and magnetic flux and named memristor. In 2008, memristors were invented by professor Strukov and his colleagues in hewlett packard laboratories. The memory action of memristors is analogous to the function of synapses in biological nervous systems. Memristors are better suited for electronic synapses due to their nanometer size, non-volatility, and integration with CMOS. Subsequently, many studies have shown that memristors can act as electronic synapses, and the weights of the synapses can be represented by the conductance of the memristors. The combination of the memory resistor and the neural network can greatly simplify the circuit structure and optimize the information processing capability. Thus, memristors provide a new technique for the design of synaptic hardware circuits.
The traditional number recognition method cannot well recognize under the condition of interference, and the associative memory function of the Hopfield neural network has great advantages in this respect. The Hopfield neural network and the learning algorithm were originally proposed by the American physicist Hopfield in 1982, and a new research approach was developed for the development of the artificial neural network. In addition, different structural features and learning methods of the hierarchical neural network are utilized to simulate the memory mechanism of the biological neural network, and a satisfactory result is obtained. By constructing a complementary metal oxide semiconductor circuit as a synapse, a Hopfield neural network with large chip area and high power consumption is realized. The artificial neural network based on the memristor provides a foundation for the development of the image recognition technology, and an associative memory neural network circuit based on the memristor is also proposed. Memristance-based neural networks have been greatly developed by virtue of their unique advantages.
Disclosure of Invention
Aiming at the technical problem that the existing artificial neural network depends on a von Neumann structure and needs to consume a large amount of computing power, therefore, based on the fact that the artificial neural network needs a new computing architecture, the invention provides a four-character memristive neural network circuit with the functions of identification and sequencing, which can identify four letters simultaneously and converge the final result into a word WHAT form.
The technical scheme of the invention is realized as follows:
a four-character memristor neural network circuit with recognition and sorting functions comprises a character recognition module, a signal processing module and a convergence module, wherein the input end of the character recognition module is respectively connected with a character input signal and a clock signal, the output end of the character recognition module is connected with the input end of the signal processing module, the output end of the signal processing module is connected with the input end of the convergence module, and the output end of the convergence module outputs an output signal of the four-character memristor neural network circuit; the character recognition module comprises an iteration submodule and a calculation submodule, wherein the input end of the iteration submodule is respectively connected with a character input signal and a clock signal, the output end of the iteration submodule is connected with the input end of the calculation submodule, the output end of the calculation submodule is respectively connected with the input end of the signal processing module and the input end of the feedback amplifier, and the output end of the feedback amplifier is connected with the input end of the iteration submodule.
The calculation submodule comprises a calculation unit CAL1Computing unit CAL2Computing unit CAL3And a calculation unit CAL4(ii) a Calculation unit CAL1Computing unit CAL2Computing unit CAL3And a calculation unit CAL4Are all connected with the output end of the iteration submodule, and a calculation unit CAL1Computing unit CAL2Computing unit CAL3And a calculation unit CAL4The output ends of the signal processing modules are connected with the input end of the signal processing module; calculation unit CAL1Computing unit CAL2Computing unit CAL3And a calculation unit CAL4Each comprising a first memristor array, a first amplifier, and a first inverter; first memristor arrayThe input end of the first memristor array is connected with the output end of the iteration submodule, the output end of the first memristor array is connected with the input end of the first amplifier, the output end of the first amplifier is connected with the input end of the first inverter, and the output end of the first inverter is respectively connected with the input end of the signal processing module and the input end of the feedback amplifier.
The first memristor array comprises 625 memristors, the size of the first memristor array being 25 × 25; 25 first amplifiers are arranged, and 25 first inverters are arranged; each row of memristors of the first memristor array is connected with a first amplifier, the first amplifiers are connected with the first inverters in a one-to-one correspondence mode, and the inverting input end of each first amplifier is connected with the output end of the corresponding first amplifier through a resistor.
The memristor comprises a combination switch and a memristor M, the combination switch comprises a first buffer, a phase inverter INV ' and a switch K, the common end of the input end of the first buffer and the input end of the phase inverter INV ' is the input end of the memristor, the output end of the first buffer or the output end of the phase inverter INV ' is connected with one end of the switch K, the other end of the switch K is connected with one end of the memristor M, and the other end of the memristor M is the output end of the memristor.
The iteration submodule comprises 100 iterator units, and each iterator unit comprises a first D trigger, a second D trigger and a second buffer; the input ends I of the first D trigger and the second D trigger are connected with a character input signal, the clock terminals of the first D trigger and the second D trigger are connected with a clock signal, the input end II of the first D trigger is connected with the output end of the feedback amplifier, the output end of the first D trigger is connected with the input end II of the second D trigger, the output end of the second D trigger is connected with the inverting input end of the second buffer, the non-inverting input end of the second buffer is grounded, and the output end of the second buffer is connected with the first memristor array.
The clock signals include a first clock signal and a second clock signal, the first clock signal is connected with a clock terminal of the first D flip-flop, and the second clock signal is connected with a clock terminal of the second D flip-flop.
The first D flip-flop comprises a first NAND gate, a second NAND gate, a third NAND gate, a fourth NAND gate and a second inverter; the input end of the first NAND gate is respectively connected with the output end of the feedback amplifier and the first clock signal, and the output end of the first NAND gate is connected with the input end of the third NAND gate; the input end of the second NAND gate is respectively connected with the first clock signal and the output end of the second inverter, the input end of the second inverter is connected with the output end of the feedback amplifier, and the output end of the second NAND gate is connected with the input end of the fourth NAND gate; an S terminal is arranged on the third NAND gate, the S terminal of the third NAND gate is connected with a character input signal, and the output end of the third NAND gate is respectively connected with the input end of the fourth NAND gate and the input end of the second D trigger; the fourth NAND gate is provided with an R terminal, the R terminal of the fourth NAND gate is connected with a character input signal, and the output end of the fourth NAND gate is connected with the input end of the third NAND gate;
the second D flip-flops respectively comprise a fifth NAND gate, a sixth NAND gate, a seventh NAND gate, an eighth NAND gate and a third inverter; the input end of the fifth NAND gate is respectively connected with the output end of the third NAND gate and the second clock signal, and the output end of the fifth NAND gate is connected with the input end of the seventh NAND gate; the output end of the sixth NAND gate is respectively connected with the second clock signal and the output end of the third inverter, the input end of the third inverter is connected with the output end of the third NAND gate, and the output end of the sixth NAND gate is connected with the input end of the eighth NAND gate; an S terminal is arranged on the seventh NAND gate, the S terminal of the seventh NAND gate is connected with the character input signal, and the output end of the seventh NAND gate is respectively connected with the input end of the eighth NAND gate and the input end of the second buffer; and the eighth NAND gate is provided with an R terminal, the R terminal of the eighth NAND gate is connected with a character input signal, and the output end of the eighth NAND gate is connected with the input end of the seventh NAND gate.
The signal processing module comprises an adder unit AD1Adder unit AD2Adder unit AD3Sum adder unit AD4(ii) a Adder unit AD1And an input terminal ofCalculation unit CAL1Are connected to the output of the adder unit AD2Is connected to the calculation unit CAL2Are connected to the output of the adder unit AD3Is connected to the calculation unit CAL3Are connected to the output of the adder unit AD4Is connected to the calculation unit CAL4Are connected to the output of the adder unit AD1Adder unit AD2Adder unit AD3Sum adder unit AD4The output ends of the convergence modules are connected with the input end of the convergence module; adder unit AD1Adder unit AD2Adder unit AD3Sum adder unit AD4All comprise a memristor M1,M2,...,M38The first amplifier, the second amplifier, the third amplifier, the first comparator and the second comparator; memory resistance M1,M2,...,M17The input ends of the first inverter and the second inverter are respectively connected with the 1 st first inverter to the 17 th first inverter of each calculation unit in a one-to-one correspondence mode, and the memristor M1,M2,...,M17The output ends of the first and second amplifiers are connected with the inverting input end of the second amplifier, and the inverting input end of the second amplifier is connected with the inverting input end of the second amplifier through a memristor M37The output end of the second amplifier is connected with the inverting input end of the first comparator, the positive phase input end of the first comparator is connected with the voltage input signal, and the output end of the first comparator is connected with the input end of the convergence module; memory resistance M18,M19,...,M36The input ends of the memristors are respectively connected with the output ends of the 7 th to the 25 th first inverters of each computing unit in a one-to-one correspondence manner, and the memristor M18,M19,...,M36The output ends of the first and second amplifiers are connected with the inverting input end of a third amplifier, and the inverting input end of the third amplifier is connected with the inverting input end of the third amplifier through a memristor M38The output end of the third amplifier is connected with the inverting input end of the second comparator, the non-inverting input end of the second comparator is connected with the voltage input signal, and the output end of the second comparator is connected with the input end of the convergence module.
The convergence module comprises a second memristor array, a fourth amplifier, and a fourth inverter; the input end of the second memristor array is connected with the output end of the first comparator respectively, the output end of the second memristor array is connected with the input end of the fourth amplifier, the output end of the fourth amplifier is connected with the input end of the fourth inverter, and the output end of the fourth inverter outputs an output signal of the four-character memristor neural network circuit.
The second memristor array comprises 64 memristors, the size of the second memristor array being 8 × 8; the number of the fourth amplifiers is 8, and the number of the fourth inverters is 8; each column of memristors of the second memristor array is connected with a fourth amplifier, and the inverting input end of the fourth amplifier is connected with the fourth amplifier through a memristor R2The output end of the fourth amplifier is correspondingly connected with the input end of the fourth inverter.
Compared with the prior art, the invention has the following beneficial effects:
1) the Hopfield neural network is constructed by memristors, so that the weight can be repeatedly trained; the weight value can be represented by a synaptic circuit composed of a memory resistor and an operational amplifier so as to obtain a positive synaptic weight value and a negative synaptic weight value;
2) the neural network circuit based on the memristor can simultaneously recognize and sequence four characters interfered by noise, and the function has very important significance for the development of artificial intelligence.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a circuit diagram of a neuron according to the present invention.
FIG. 2 is a circuit diagram of the compute submodule of the present invention.
Fig. 3 is a circuit diagram of an iteration sub-module of the present invention.
FIG. 4 is a circuit diagram of the character recognition module of the present invention.
Fig. 5 is a circuit diagram of a signal processing module according to the present invention.
FIG. 6 is a circuit diagram of a convergence module according to the present invention.
FIG. 7 is a complete circuit diagram of the present invention
FIG. 8 is a simulation of the two types of clock inputs of the present invention.
Fig. 9 is a schematic illustration of the present invention.
FIG. 10 is a diagram of simulation results of the character recognition module of the present invention.
FIG. 11 is a final simulation result diagram of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
As shown in fig. 7, an embodiment of the present invention provides a four-character memristive neural network circuit with functions of identification and sorting, including a character identification module, a signal processing module, and a convergence module, where an input end of the character identification module is connected to a character input signal and a clock signal, an output end of the character identification module is connected to an input end of the signal processing module, an output end of the signal processing module is connected to an input end of the convergence module, and an output end of the convergence module outputs an output signal of the four-character memristive neural network circuit; the character recognition module comprises an iteration submodule and a calculation submodule, wherein the input end of the iteration submodule is respectively connected with a character input signal and a clock signal, the output end of the iteration submodule is connected with the input end of the calculation submodule, the output end of the calculation submodule is respectively connected with the input end of the signal processing module and the input end of the feedback amplifier, and the output end of the feedback amplifier is connected with the input end of the iteration submodule. The iteration submodule has three input ends, the first is an initial input end controlled by an SR terminal, the second is a clock signal terminal controlled by a control clock, and the third is an input end fed back from the calculation submodule.
Specifically, the character recognition module employs four CR units to process the character image with noise. The method mainly comprises a calculation submodule and an iteration submodule. By calculating the processing function of the sub-module and the iterative effect of the iterative sub-module, four character images 'W', 'H', 'A' and 'T' interfered by noise can be identified. The signal processing module with simplified circuit function is realized by adopting four adder units. In the signal processing module, the 100 output signals from the character recognition module are processed into eight output signals, and abstract meanings are given to the eight output signals. The convergence module is implemented by designing a fully-connected memristive neural network circuit that can converge 24 ordering cases to one case (WHAT).
As shown in fig. 2, the computation submodule will have 100 inputs for four characters since each character can be mapped into a 5 x 5 matrix, i.e. 25 inputs per character. The input ends of the computation submodule are connected with the output ends of the iteration submodule in a one-to-one correspondence mode, every 25 input signals of the computation submodule are connected with a memristor array in series, the output ends of the memristor array are connected with one input end of 100 operational amplifiers in a one-to-one correspondence mode, and the other input end of each operational amplifier is grounded. The input ends of the 100 inverters are connected with the output ends of the operational amplifiers in a one-to-one correspondence mode, and the output ends of the inverters output signals of the calculation sub-modules.
The calculation submodule comprises a calculation unit CAL1Computing unit CAL2Computing unit CAL3And a calculation unit CAL4(ii) a Calculation unit CAL1Computing unit CAL2Computing unit CAL3And a calculation unit CAL4All input ends ofConnected to the output of the iteration submodule, a calculation unit CAL1Computing unit CAL2Computing unit CAL3And a calculation unit CAL4The output ends of the signal processing modules are connected with the input end of the signal processing module; calculation unit CAL1Computing unit CAL2Computing unit CAL3And a calculation unit CAL4Each comprising a first memristor array, a first amplifier AM and a first inverter INV'; the input end of the first memristor array is connected with the output end of the iteration submodule, the output end of the first memristor array is connected with the input end of a first amplifier AM, the output end of the first amplifier AM is connected with the input end of a first inverter INV ', and the output end of the first inverter INV ' is respectively connected with the input end of the signal processing module and the input end of a feedback amplifier OP '.
The first memristor array comprises 625 memristors, the size of the first memristor array being 25 × 25; 25 first amplifiers are arranged, and 25 first inverters are arranged; each row of memristors of the first memristor array is connected with a first amplifier AM, the first amplifiers AM are connected with the first inverters in a one-to-one correspondence mode, and the inverting input end of each first amplifier AM is connected with a resistor R1Connected to the output of the first amplifier AM. The memristor comprises a combination switch and a memristor M, the combination switch comprises a first buffer OP, an inverter INV ' and a switch K, the common end of the input end of the first buffer OP after the input end of the first buffer OP is connected with the inverter INV ' in parallel is the input end of the memristor, the output end of the first buffer OP or the output end of the inverter INV ' after the output end of the first buffer OP is connected with one end of the switch K, the other end of the switch K is connected with one end of the memristor M, and the other end of the memristor M is the output end of the memristor.
Fig. 1 shows a basic neuron circuit designed according to an embodiment of the present invention, in which input ends of a first buffer OP and an inverter INV ' are used as a total input end, an output end of the first buffer OP or an output end of the inverter INV ' is connected to one end of a switch K, the first buffer OP, the inverter INV ' and the switch K are referred to as a combination switch, and a memristor M is connected in series to the other end of the combination switch. The inverting input end of the first amplifier AM is connected with the memristor M, and the inverse of the first amplifier AMPhase input terminal through memristor R1The output end of the first amplifier AM is connected with a first inverter INV ', and the first inverter INV' outputs an output signal of the four-character memristive neural network circuit. The positive and negative threshold voltages of the four-character memristive neural network circuit are controlled by a combined switch, M, R1AM and INV' together form a proportional amplifier. The first inverter INV ″ is a threshold voltage inverter. When the input voltage of INV 'is less than the threshold voltage, the output voltage is 1v, and when the input voltage of INV' is greater than the threshold value, the output voltage is-1 v.
In particular, the calculation submodule comprises a unit CAL1-CAL4. Each CAL cell includes a first memristor array with combinational switches, 25 first amplifiers, and 25 first inverters. In-unit CAL1Middle, IN1-IN25Representative of the input signal, OT1-OT25Representing the output signal. M1-M625Memristors forming a memristor array, each combination switch being connected in series to each memristor in the first memristor array. Each first amplifier AM is connected to a column of the memristor array, and output signals of the first amplifiers AM are connected with the first inverters INV ″ in a one-to-one correspondence. R1Is a resistance of 1k omega. The first inverter INV "receives the output signal of the first amplifier AM and compares with a voltage of-0.04 v. OT when the input signal of the first inverter INV' is greater than-0.04 v1-OT25Is-1 v; OT when the input signal of the first inverter INV' is less than-0.04 v1-OT25Is 1 v. The circuit connection principle of the remaining three computation units and the computation unit CAL1The same is true.
In order to feed back the output signal of the calculation submodule to the signal input, an iteration submodule is designed. As shown in fig. 3, the output signal of the iteration sub-module is repeatedly fed back to the input signal port of the iteration sub-module through the computation sub-module. The iteration submodule comprises 100 iterator units, each iterator unit comprises a first D trigger, a second D trigger and a second buffer OP1(ii) a Input ends I of the first D trigger and the second D triggerThe input end II of the first D trigger is connected with the output end of the feedback amplifier OP', the output end of the first D trigger is connected with the input end II of the second D trigger, and the output end of the second D trigger is connected with the second buffer OP1Is connected to the inverting input terminal of the second buffer OP1The non-inverting input terminal of the second buffer OP is grounded1Is connected to the first memristor array.
The clock signal comprises a first clock signal CL1And a second clock signal CL2First clock signal CL1Connected to the clock terminal of the first D flip-flop, a second clock signal CL2Is connected to the clock terminal of the second D flip-flop. The first D flip-flop comprises a first NAND gate NAND1A second NAND gate NAND2NAND of the third NAND gate3NAND gate, and a fourth NAND gate4And a second inverter; first NAND gate NAND1Respectively with the output of the feedback amplifier OP', the first clock signal CL1Connected to a first NAND gate1And the output end of the first NAND gate NAND with the third NAND gate NAND3Are connected with the input end of the power supply; second NAND gate NAND2Respectively with a first clock signal CL1The output end of the second inverter is connected, the input end of the second inverter is connected with the output end of the feedback amplifier OP', and the NAND gate is NAND2And the output end of the fourth NAND gate NAND4Are connected with the input end of the power supply; third NAND gate NAND3Is provided with an S terminal, a third NAND gate NAND3The S terminal of the NAND-gate is connected with a character input signal, and the NAND-gate of the third NAND-gate3Respectively with a fourth NAND gate4The input end of the second D trigger is connected with the input end II of the second D trigger; the fourth NAND gate NAND4Is provided with an R terminal, a fourth NAND gate NAND4Is connected with the character input signal, a fourth NAND gate NAND4And the output end of the first NAND gate NAND with the third NAND gate NAND3Are connected.
The second D flip-flops each include a fifth flip-flopNAND gate1And a sixth NAND gate NAND2NAND gate3And an eighth NAND gate NAND4And a third inverter; the fifth NAND gate NAND1The input end of the first NAND gate is respectively connected with the output end of the third NAND gate and the second clock signal, and the fifth NAND gate1And the seventh NAND gate NAND3Are connected with the input end of the power supply; the sixth NAND gate NAND2Respectively with the second clock signal CL2The output end of the third inverter is connected, and the input end of the third inverter is connected with the NAND gate of the third NAND gate3Is connected with the output end of the sixth NAND gate NAND2And the eighth NAND gate NAND4Are connected with the input end of the power supply; the seventh NAND gate NAND3Is provided with an S terminal, a seventh NAND gate3Is connected with the character input signal, a seventh NAND gate NAND3Respectively with the eighth NAND gate4Input terminal of, second buffer OP1Are connected with the input end of the power supply; the eighth NAND gate NAND4Is provided with an R terminal, an eighth NAND gate NAND4Is connected with the character input signal, an eighth NAND gate NAND4And the seventh NAND gate NAND3Are connected.
Specifically, the iteration submodel is composed of 100 iteration units, namely ITE1-ITE100. As shown in fig. 3(b), each iterator unit is composed of two D flip-flops and a buffer, and each D flip-flop is composed of four nand gates and an inverter. The structure of the D flip-flop is shown in fig. 3 (a). NAND1The D and CL input signals may be received. In order to obtain a voltage opposite to the input signal at the D terminal, an inverter is added. NAND2Can receive input signals of inverter terminal and CL terminal, S terminal, NAND1、NAND4Are all NAND3Connected, R terminal, NAND2、NAND3Are all NAND4Are connected. Q terminal represents NAND3The output signal of (1). When the initial value of CL is set to 0v, the D flip-flop does not function, and the output signal is affected only by the output signals of the S terminal and the R terminal. If the S terminal is 0v and the R terminal is 1v, the outputThe signal Q is 1v, at which time the state of the D flip-flop is "1". If the S terminal is 1v and the R terminal is 0v, the output signal Q is 0v, and the state of the D flip-flop is "0". To ensure that the D terminal does not function at the beginning, both the S terminal and the R terminal should be set to 1v before the CL terminal is given a voltage of 1 v. In this case, if the output signal of the D terminal is 0v, the NAND1And NAND2Are 1v and 0v, respectively. Thus, NAND4Is 1v, and then NAND is obtained3The output signal of (1). Output voltage due to Q and NAND3The output voltage of (2) is 0v, so the state of the D flip-flop is "0". When the output signal of D is 1v, NAND1And NAND2Are 0v and 1v, respectively. Then NAND3The output signal of (1) is 1v and the state of the D flip-flop is "1".
In the iteration unit of the iteration sub-module, ITE1Composed of a first D flip-flop, a second D flip-flop and an OP1And (4) forming. The two D flip-flops are controlled by a clock signal to delay the input signal. In iteration unit ITE1The Q terminal of the first D flip-flop is connected to the D terminal of the second D flip-flop, and the Q terminal of the second D flip-flop is connected to the OP1。OP1Is a buffer with a threshold of 0.8 v. If from OP1If the received voltage is greater than 0.8v, the output voltage is 1 v; if OP1The received voltage is less than 0.8v, and the output voltage is-1 v. The initial state is represented by signal R before both clock signals are set to 1v1And S1And (5) controlling. When R is1And S1The state of the second D flip-flop is "1" at voltages of 0v and 1v, respectively. When R is1And S1The state of the second D flip-flop is "0" at voltages of 1v and 0v, respectively. When R is1And S1When the voltage of the second D flip-flop is 1v, the second D flip-flop is kept in the original state. If OP1Receiving an output signal initialized to 1v, then OP1The output state of (1) is "1". On the contrary, if OP1Receiving an output signal initialized to 0v, then OP1The output state of (1) is "-1". The D terminal of the first D flip-flop is connected to O1,OP1Is connected to the calculationIN of submodule1. Architecture and ITE of the remaining 99 iterator units1Similarly.
As shown in fig. 4, the character recognition module includes a computation submodule and an iteration submodule. The computation submodule processes the information received from the iteration submodule and returns the result to the input of the iteration submodule. To facilitate the iterative logic of the submodule, a buffer with a threshold voltage of 0.8v is added. The input ends of the buffers are connected with the output signals in the calculation submodule in a one-to-one correspondence mode, the other input end of each buffer is grounded, and the output ends of the buffers are connected with the input ends of the iteration submodule in a one-to-one correspondence mode. The output signal of the computation submodule passes through a buffer OP1And (6) performing conversion. Therefore, when OT1-OT100Is greater than 0.8v, O1-O100Is 1 v; when OT1-OT100Is less than 0.8v, O1-O100Is 0 v. CR1-CR4The four character recognition units jointly construct a character recognition module which simultaneously recognizes four characters. The initial signal of the character recognition module is controlled by S and R.
As shown in fig. 5, the signal processing module comprises an adder unit AD1Adder unit AD2Adder unit AD3Sum adder unit AD4(ii) a Adder unit AD1Is connected to the calculation unit CAL1Are connected to the output of the adder unit AD2Is connected to the calculation unit CAL2Are connected to the output of the adder unit AD3Is connected to the calculation unit CAL3Are connected to the output of the adder unit AD4Is connected to the calculation unit CAL4Are connected to the output of the adder unit AD1Adder unit AD2Adder unit AD3Sum adder unit AD4The output ends of the convergence modules are connected with the input end of the convergence module; adder unit AD1Adder unit AD2Adder unit AD3Sum adder unit AD4All comprise a memristor M1,M2,...,M38A second amplifier, a third amplifier, a first comparisonA comparator and a second comparator; memory resistance M1,M2,...,M17The input ends of the first inverter and the second inverter are respectively connected with the 1 st first inverter to the 17 th first inverter of each calculation unit in a one-to-one correspondence mode, and the memristor M1,M2,...,M17Are all connected to a second amplifier AM1Is connected to the inverting input terminal of the second amplifier AM1Is connected to the inverting input terminal through the memristor M37Connected to the output of a second amplifier AM1And the first comparator CP1Is connected to the inverting input terminal of the first comparator CP1Is connected to a voltage input signal (+2V), a first comparator CP1The output end of the convergence module is connected with the input end of the convergence module; memory resistance M18,M19,...,M36The input ends of the memory resistors are respectively connected with the output ends of the 7 th to the 25 th first inverters INV' of each calculation unit in a one-to-one correspondence mode, and the memory resistors M18,M19,...,M36Are all connected to a third amplifier AM2Is connected to the inverting input terminal of the third amplifier AM2Is connected to the inverting input terminal through the memristor M38And a third amplifier AM2Is connected to the output terminal of the third amplifier AM2And the output of the second comparator CP2Is connected to the inverting input terminal of the second comparator CP2Is connected to a voltage input signal (+2V), and a second comparator CP2The output end of the convergence module is connected with the input end of the convergence module.
In particular, the resistance M is memorized in the adder unit1-M17Respectively with the output signal OT1-OT17Are connected. Second amplifier AM1And memristor M37Respectively with M1-M17Is connected to the output terminal of the second amplifier AM1Through memory resistor M37And a second amplifier AM1Is connected to the output terminal of the second amplifier AM1And the first comparator CP1The inverting input ends of the two are correspondingly connected; in the same way, memory resistance M18-M36Respectively with the output signal OT7-OT25Are connected in a one-to-one correspondence. Third amplifier AM2And memristor M38Respectively with M18-M36Is connected to the output terminal of the third amplifier AM2Through memory resistor M38And a third amplifier AM2Is connected to the output terminal of the third amplifier AM2And the output of the third comparator CP2Are connected. CP (CP)1And CP2Is grounded through a 2v voltage, U1-U2Are respectively CP1-CP2The input signal of (1). Comparator CP1And CP2For comparison of the voltage of 2 v. When U is turned1And U2Greater than 2v, IC1And IC2The output signal of (1 v); when U is turned1And U2Less than 2v, IC1And IC2The output signal of (2) is 0 v. In AD1Two adder circuits are constructed to convert the 25 output signals of the recognized character into 2 output signals that can be adapted to the convergence module. Circuit design and AD of the remaining three adder units1Similarly.
As shown in fig. 6, the convergence module converts multiple input cases into one output case using a memristor-based neural network. The convergence module is composed of a fully-connected neural network circuit based on memristors. The convergence module comprises a second memristor array and a fourth amplifier AM3And a fourth inverter INV1(ii) a The input ends of the second memristor array are respectively connected with the first comparator CP1A second comparator CP2Is connected with the output end of the second memristor array, and the output end of the second memristor array is connected with the fourth amplifier AM3Is connected to the input terminal of the fourth amplifier AM3Output terminal of and fourth inverter INV1Is connected to the input terminal of the fourth inverter INV1The output end of the four-character memristor neural network circuit outputs an output signal of the four-character memristor neural network circuit. The second memristor array comprises 64 memristors, the size of the second memristor array being 8 × 8; the fourth amplifier AM3Is provided with 8, a fourth inverter INV1There are 8; each column of memristors of the second memristor array is connected with a fourth amplifier AM3Fourth amplifier AM3Is provided with an inverting input end passing through a memristor R2And a fourth amplifier AM3Is connected to the output terminal of the fourth amplifier AM3Output terminal of and fourth inverter INV1And the connection is in one-to-one correspondence.
The second memristor array is connected with input signals in the horizontal direction, is connected with one input end of eight amplifiers in the vertical direction, the other input end of the amplifier is grounded, and the fourth amplifier AM3Respectively with the fourth inverter INV1Are connected in one-to-one correspondence, a fourth inverter INV1The output terminal of the convergence module outputs the output signal of the convergence module. I isC1-IC8Input signal to the convergence module, OC1-OC8Is the output signal of the convergence module. M702-M765And forming an 8 x 8 second memristor array, wherein the connected input signals are output signals of the memristor array in the horizontal direction and in the vertical direction. AM (amplitude modulation)3Is connected to the output signal of the second memristor array. R2Is a 1k omega resistor. AM (amplitude modulation)3Is passed through INV1To obtain OC1-OC8。INV1An inverter with a threshold voltage of-0.4 v. When INV1Is less than-0.4 v, OC1-OC8Is 1 v. When INV1When the input voltage is greater than-0.4 v, OC1-OC8Is 0 v.
As shown in fig. 8, the iteration sub-module can be divided into two initial states of the input signal due to the output states of "1" and "-1". When the output state is "1", setting the input signal to type 1; when the output state is "-1", the input signal is set to type 2. To show the iteration steps more clearly, the delay time is set to 1us, with two D flip-flops per ITE cell at CL1And CL2Under the control of (3), the states are changed alternately, and the iterative operation is completed. For example, if the initial state of the first input is "-1", then at ITE1The input signal in the cell is set to type 1. At 0us, CL1=CL2=0v,S11v and R10v, then the Q terminal output of the second D flip-flop is0v,OP1The output voltage of (1) is-1 v. To ensure CL1Is 1v, the output state is not limited by S1And R1The influence of (c). After 1us, S1And R1Given 1 v. At 2us, CL1=1v,CL20v, then Q1=O1. Since the second D flip-flop is not affected by the clock signal at this time, -1v is still output. At 5us, CL1=0v,CL21v, then Q1And Q2Output signal of (1) and O1The previous moment of time of (a) is equal. At 7us, CL1=CL20v, then Q1And Q2The output signal of (2) is maintained in the original state. Thus, from 0us to 8us, signal initialization and the first iteration are completed. The output signal of the iteration submodule is sent to the calculation submodule for the next processing. Simultaneous flip-flop at CL1And CL2Alternately changing their states under control of (2). The iterative principle of type 2 is similar to type 1. Based on this principle, the input signal of the character recognition module can be preset.
As shown in fig. 9, the noisy character image is converted into 4 5 × 5 matrices, and the element values in each matrix are preset to the initial value states of the respective ITE cells in fig. 8. "1" and "-1" represent two types of input states in the circuit. When the input state of the element is "-1", the input signal corresponding to the ITE unit is set as type 1; when the input state of the element is "1", the input signal corresponding to the ITE cell is set to type 2. As shown in FIG. 9(a), if the element value of sequence number 1 is "1", ITE is obtained1Unit S1、R1、CL1、CL2Is type 2; when the element value of sequence number 2 is "-1", ITE is set2S of the unit2、R2、CL1、CL2Is type 1; likewise, ITE3-ITE100Selects the setting type according to the element values of sequence numbers 3-100. Application of ITE in circuit1-ITE100As an input signal for the character recognition module.
Simulation of the character recognition Module Circuit As shown in FIG. 10, four characters "W"The simulations of "H", "A" and "T" correspond to FIGS. 10(a) - (d), respectively. O isT1-OT100Representing the output signal of the character recognition module. The output signals are of four types as shown in FIG. 10, all 1v, all-1 v, 1v to-1 v, -1v to 1v, respectively. Since the initialization process and the first iteration are completed in 0 us. The output signal changes only 5us later, and remains stable after 5us later, which indicates that the character recognition module reaches a stable state only after the first iteration. When the output signal is 1v, the state is 1; when the output signal is-1 v, the state is "-1". Mixing O withT1-OT100The state after 5us is compared with the four matrices in fig. 9(b), and if the comparison results are the same, the four characters are recognized.
As shown in fig. 11, the signal processing module is used to simplify the output signal, four characters are replaced with four binary digits, and thus two signals represent one character. The features "W", "H", "a" and "T" are denoted by "00", "01", "10" and "11", respectively. O isT1-OT100Representing the input signal of the signal processing module, IC1-IC8Representing the output signal. The simulation of the signal processing module is shown in fig. 11 (a). Due to the receipt of OT1-OT100Influence of (A) IC1-IC8Changes also occur. In FIG. 11(a), IC1-IC8The voltage value before 5us was "00001011". I isC1-IC8Becomes "00011011" at 5us and remains stable after 5 us.
The final convergence result is shown in FIG. 11(b), where the convergence module is used to implement the Word (WHAT), IC1-IC8Representing the input signal of the convergence module, OC1-OC8Representing the output signal. The simulation of the convergence module is shown in fig. 11. 0us-16us, OC1-OC8The output signal of (a) is "00011011". Due to OC1-OC8The stable output signal of "00011011" demonstrates the final convergence results as "W", "H", "a", "T", and simulation results show that the circuit can recognize four characters simultaneously and converge to a Word (WHAT).
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1.一种具有识别和排序功能的四字符忆阻神经网络电路,其特征在于,包括字符识别模块、信号处理模块和收敛模块,字符识别模块的输入端分别与字符输入信号、时钟信号相连接,字符识别模块的输出端与信号处理模块的输入端相连接,信号处理模块的输出端与收敛模块的输入端相连接,收敛模块的输出端输出四字符忆阻神经网络电路的输出信号;所述字符识别模块包括迭代子模块和计算子模块,迭代子模块的输入端分别与字符输入信号、时钟信号相连接,迭代子模块的输出端与计算子模块的输入端相连接,计算子模块的输出端分别与信号处理模块的输入端、反馈放大器的输入端相连接,反馈放大器的输出端与迭代子模块的输入端相连接。1. a four-character memristive neural network circuit with identification and sorting function, is characterized in that, comprises character recognition module, signal processing module and convergence module, the input end of character recognition module is respectively connected with character input signal, clock signal , the output end of the character recognition module is connected with the input end of the signal processing module, the output end of the signal processing module is connected with the input end of the convergence module, and the output end of the convergence module outputs the output signal of the four-character memristive neural network circuit; The character recognition module includes an iterative submodule and a calculation submodule, the input end of the iterative submodule is respectively connected with the character input signal and the clock signal, the output end of the iterative submodule is connected with the input end of the calculation submodule, and the input end of the calculation submodule is connected with the input end of the calculation submodule. The output end is respectively connected with the input end of the signal processing module and the input end of the feedback amplifier, and the output end of the feedback amplifier is connected with the input end of the iterative sub-module. 2.根据权利要求1所述的具有识别和排序功能的四字符忆阻神经网络电路,其特征在于,所述计算子模块包括计算单元CAL1、计算单元CAL2、计算单元CAL3和计算单元CAL4;计算单元CAL1、计算单元CAL2、计算单元CAL3和计算单元CAL4的输入端均与迭代子模块的输出端相连接,计算单元CAL1、计算单元CAL2、计算单元CAL3和计算单元CAL4的输出端均与信号处理模块的输入端相连接;计算单元CAL1、计算单元CAL2、计算单元CAL3和计算单元CAL4均包括第一忆阻器阵列、第一放大器和第一逆变器;第一忆阻器阵列的输入端与迭代子模块的输出端相连接,第一忆阻器阵列的输出端与第一放大器的输入端相连接,第一放大器的输出端与第一逆变器的输入端相连接,第一逆变器的输出端分别与信号处理模块的输入端、反馈放大器的输入端相连接。2. The four-character memristive neural network circuit with identification and sorting functions according to claim 1, wherein the calculation sub-module comprises a calculation unit CAL 1 , a calculation unit CAL 2 , a calculation unit CAL 3 and a calculation unit CAL 4 ; the input ends of the calculation unit CAL 1 , the calculation unit CAL 2 , the calculation unit CAL 3 and the calculation unit CAL 4 are all connected with the output end of the iteration sub-module, and the calculation unit CAL 1 , the calculation unit CAL 2 , and the calculation unit CAL 3 and the output end of the calculation unit CAL 4 are all connected with the input end of the signal processing module; the calculation unit CAL 1 , the calculation unit CAL 2 , the calculation unit CAL 3 and the calculation unit CAL 4 all include the first memristor array, the first amplifier and the first inverter; the input end of the first memristor array is connected to the output end of the iterative sub-module, the output end of the first memristor array is connected to the input end of the first amplifier, and the output end of the first amplifier The terminal is connected to the input terminal of the first inverter, and the output terminal of the first inverter is respectively connected to the input terminal of the signal processing module and the input terminal of the feedback amplifier. 3.根据权利要求2所述的具有识别和排序功能的四字符忆阻神经网络电路,其特征在于,所述第一忆阻器阵列包括625个忆阻器,第一忆阻器阵列的大小为25×25;所述第一放大器设有25个,第一逆变器设有25个;第一忆阻器阵列的每列忆阻器均连接有一个第一放大器,第一放大器与第一逆变器一一对应连接,第一放大器的反相输入端通过电阻与第一放大器的输出端相连接。3. The four-character memristor neural network circuit with identification and sorting functions according to claim 2, wherein the first memristor array comprises 625 memristors, and the size of the first memristor array is is 25×25; there are 25 first amplifiers and 25 first inverters; each row of memristors in the first memristor array is connected with a first amplifier, and the first amplifier is connected to the first amplifier. The inverters are connected in a one-to-one correspondence, and the inverting input terminal of the first amplifier is connected to the output terminal of the first amplifier through a resistor. 4.根据权利要求3所述的具有识别和排序功能的四字符忆阻神经网络电路,其特征在于,所述忆阻器包括组合开关和忆阻M,组合开关包括第一缓冲器、反相器INV′和开关K,第一缓冲器的输入端和反相器INV′的输入端的公共端为忆阻器的输入端,第一缓冲器的输出端或反相器INV′的输出端与开关K的一端相连接,开关K的另一端与忆阻M的一端相连接,忆阻M的另一端为忆阻器的输出端。4. The four-character memristive neural network circuit with identification and sorting functions according to claim 3, wherein the memristor comprises a combination switch and a memristor M, and the combination switch comprises a first buffer, an inverting INV' and switch K, the common terminal of the input terminal of the first buffer and the input terminal of the inverter INV' is the input terminal of the memristor, and the output terminal of the first buffer or the output terminal of the inverter INV' is the same as the input terminal of the memristor. One end of the switch K is connected, the other end of the switch K is connected with one end of the memristor M, and the other end of the memristor M is the output end of the memristor. 5.根据权利要求2所述的具有识别和排序功能的四字符忆阻神经网络电路,其特征在于,所述迭代子模块包括100个迭代器单元,每个迭代器单元均包括第一D触发器、第二D触发器和第二缓冲器;第一D触发器和第二D触发器的输入端I均与字符输入信号相连接,第一D触发器和第二D触发器的时钟端子均与时钟信号相连接,第一D触发器的输入端II与反馈放大器的输出端相连接,第一D触发器的输出端与第二D触发器的输入端II相连接,第二D触发器的输出端与第二缓冲器的反相输入端相连接,第二缓冲器的正相输入端接地,第二缓冲器的输出端与第一忆阻器阵列相连接。5. The four-character memristive neural network circuit with identification and sorting functions according to claim 2, wherein the iterative submodule comprises 100 iterator units, and each iterator unit comprises a first D trigger device, the second D flip-flop and the second buffer; the input terminals I of the first D flip-flop and the second D flip-flop are both connected with the character input signal, and the clock terminals of the first D flip-flop and the second D flip-flop are Both are connected with the clock signal, the input terminal II of the first D flip-flop is connected with the output terminal of the feedback amplifier, the output terminal of the first D flip-flop is connected with the input terminal II of the second D flip-flop, and the second D flip-flop is connected with the input terminal II of the second D flip-flop. The output terminal of the second buffer is connected to the inverting input terminal of the second buffer, the non-inverting input terminal of the second buffer is grounded, and the output terminal of the second buffer is connected to the first memristor array. 6.根据权利要求5所述的具有识别和排序功能的四字符忆阻神经网络电路,其特征在于,所述时钟信号包括第一时钟信号和第二时钟信号,第一时钟信号与第一D触发器的时钟端子相连接,第二时钟信号与第二D触发器的时钟端子相连接。6. The four-character memristive neural network circuit with identification and sorting functions according to claim 5, wherein the clock signal comprises a first clock signal and a second clock signal, the first clock signal and the first D The clock terminal of the flip-flop is connected, and the second clock signal is connected with the clock terminal of the second D flip-flop. 7.根据权利要求6所述的具有识别和排序功能的四字符忆阻神经网络电路,其特征在于,所述第一D触发器包括第一与非门、第二与非门、第三与非门、第四与非门和第二逆变器;第一与非门的输入端分别与反馈放大器的输出端、第一时钟信号相连接,第一与非门的输出端与第三与非门的输入端相连接;第二与非门的输入端分别与第一时钟信号、第二逆变器的输出端相连接,第二逆变器的输入端与反馈放大器的输出端相连接,第二与非门的输出端与第四与非门的输入端相连接;第三与非门上设有S端子,第三与非门的S端子与字符输入信号相连接,第三与非门的输出端分别与第四与非门的输入端、第二D触发器的输入端相连接;第四与非门上设有R端子,第四与非门的R端子与字符输入信号相连接,第四与非门的输出端与第三与非门的输入端相连接;7. The four-character memristive neural network circuit with identification and sorting function according to claim 6, wherein the first D flip-flop comprises a first NAND gate, a second NAND gate, a third AND A NOT gate, a fourth NAND gate and a second inverter; the input end of the first NAND gate is respectively connected with the output end of the feedback amplifier and the first clock signal, and the output end of the first NAND gate is connected with the third AND The input end of the NOT gate is connected; the input end of the second NAND gate is respectively connected with the first clock signal and the output end of the second inverter, and the input end of the second inverter is connected with the output end of the feedback amplifier , the output end of the second NAND gate is connected with the input end of the fourth NAND gate; the third NAND gate is provided with an S terminal, the S terminal of the third NAND gate is connected with the character input signal, the third AND The output end of the NAND gate is respectively connected with the input end of the fourth NAND gate and the input end of the second D flip-flop; the fourth NAND gate is provided with an R terminal, and the R terminal of the fourth NAND gate is connected with the character input signal connected, the output end of the fourth NAND gate is connected with the input end of the third NAND gate; 所述第二D触发器均包括第五与非门、第六与非门、第七与非门、第八与非门和第三逆变器;第五与非门的输入端分别与第三与非门的输出端、第二时钟信号相连接,第五与非门的输出端与第七与非门的输入端相连接;第六与非门的输出端分别与第二时钟信号、第三逆变器的输出端相连接,第三逆变器的输入端与第三与非门的输出端相连接,第六与非门的输出端与第八与非门的输入端相连接;第七与非门上设有S端子,第七与非门的S端子与字符输入信号相连接,第七与非门的输出端分别与第八与非门的输入端、第二缓冲器的输入端相连接;第八与非门上设有R端子,第八与非门的R端子与字符输入信号相连接,第八与非门的输出端与第七与非门的输入端相连接。The second D flip-flops all include a fifth NAND gate, a sixth NAND gate, a seventh NAND gate, an eighth NAND gate and a third inverter; the input ends of the fifth NAND gate are respectively connected with the first NAND gate. The outputs of the third NAND gate are connected with the second clock signal, the output end of the fifth NAND gate is connected with the input end of the seventh NAND gate; the output ends of the sixth NAND gate are respectively connected with the second clock signal, The output terminal of the third inverter is connected to the output terminal of the third inverter, the input terminal of the third inverter is connected to the output terminal of the third NAND gate, and the output terminal of the sixth NAND gate is connected to the input terminal of the eighth NAND gate. There is an S terminal on the seventh NAND gate, the S terminal of the seventh NAND gate is connected with the character input signal, and the output end of the seventh NAND gate is respectively connected with the input end of the eighth NAND gate, the second buffer The input terminal of the eighth NAND gate is connected with the R terminal, the R terminal of the eighth NAND gate is connected with the character input signal, and the output terminal of the eighth NAND gate is connected with the input terminal of the seventh NAND gate. connect. 8.根据权利要求3所述的具有识别和排序功能的四字符忆阻神经网络电路,其特征在于,所述信号处理模块包括加法器单元AD1、加法器单元AD2、加法器单元AD3和加法器单元AD4;加法器单元AD1的输入端与计算单元CAL1的输出端相连接,加法器单元AD2的输入端与计算单元CAL2的输出端相连接,加法器单元AD3的输入端与计算单元CAL3的输出端相连接,加法器单元AD4的输入端与计算单元CAL4的输出端相连接,加法器单元AD1、加法器单元AD2、加法器单元AD3和加法器单元AD4的输出端均与收敛模块的输入端相连接;加法器单元AD1、加法器单元AD2、加法器单元AD3和加法器单元AD4均包括忆阻M1,M2,...,M38、第二放大器、第三放大器、第一比较器和第二比较器;忆阻M1,M2,...,M17的输入端分别与每个计算单元的第1个第一逆变器至第17个第一逆变器一一对应连接,忆阻M1,M2,...,M17的输出端均与第二放大器的反相输入端相连接,第二放大器的反相输入端通过忆阻M37与第二放大器的输出端相连接,第二放大器的输出端与第一比较器的反相输入端相连接,第一比较器的正相输入端与电压输入信号相连接,第一比较器的输出端与收敛模块的输入端相连接;忆阻M18,M19,...,M36的输入端分别与每个计算单元的第7个第一逆变器至第25个第一逆变器的输出端一一对应连接,忆阻M18,M19,...,M36的输出端均与第三放大器的反相输入端相连接,第三放大器的反相输入端通过忆阻M38与第三放大器的输出端相连接,第三放大器的输出端与第二比较器的反相输入端相连接,第二比较器的正相输入端与电压输入信号相连接,第二比较器的输出端与收敛模块的输入端相连接。8 . The four-character memristive neural network circuit with identification and sorting functions according to claim 3 , wherein the signal processing module comprises an adder unit AD 1 , an adder unit AD 2 , and an adder unit AD 3 . and the adder unit AD 4 ; the input end of the adder unit AD 1 is connected with the output end of the calculation unit CAL 1 , the input end of the adder unit AD 2 is connected with the output end of the calculation unit CAL 2 , the adder unit AD 3 The input end is connected with the output end of the calculation unit CAL 3 , the input end of the adder unit AD 4 is connected with the output end of the calculation unit CAL 4 , the adder unit AD 1 , the adder unit AD 2 , the adder unit AD 3 and the output end of the adder unit AD 4 are connected with the input end of the convergence module; the adder unit AD 1 , the adder unit AD 2 , the adder unit AD 3 and the adder unit AD 4 all include memristors M 1 , M 2 , ..., M 38 , the second amplifier, the third amplifier, the first comparator and the second comparator; the input terminals of the memristors M 1 , M 2 , ..., M 17 are respectively associated with each calculation unit The 1st inverter to the 17th first inverter of the The inverting input terminal of the second amplifier is connected to the output terminal of the second amplifier through the memristor M37 , and the output terminal of the second amplifier is connected to the inverting input terminal of the first comparator. The non-inverting input terminal is connected with the voltage input signal, the output terminal of the first comparator is connected with the input terminal of the convergence module; the input terminals of the memristors M 18 , M 19 , ..., M 36 are respectively connected with each calculation unit The output terminals of the 7th first inverter to the 25th first inverter are connected in one-to-one correspondence, and the output terminals of the memristors M 18 , M 19 , ..., M 36 are all connected with the inverse of the third amplifier. The phase input terminal is connected to each other, the inverting input terminal of the third amplifier is connected to the output terminal of the third amplifier through the memristor M 38 , the output terminal of the third amplifier is connected to the inverting input terminal of the second comparator, and the second amplifier is connected to the inverting input terminal of the second comparator. The non-inverting input terminal of the comparator is connected with the voltage input signal, and the output terminal of the second comparator is connected with the input terminal of the convergence module. 9.根据权利要求8所述的具有识别和排序功能的四字符忆阻神经网络电路,其特征在于,所述收敛模块包括第二忆阻器阵列、第四放大器和第四逆变器;第二忆阻器阵列的输入端分别与第一比较器的输出端相连接,第二忆阻器阵列的输出端与第四放大器的输入端相连接,第四放大器的输出端与第四逆变器的输入端相连接,第四逆变器的输出端输出四字符忆阻神经网络电路的输出信号。9. The four-character memristive neural network circuit with identification and sorting functions according to claim 8, wherein the convergence module comprises a second memristor array, a fourth amplifier and a fourth inverter; The input terminals of the two memristor arrays are respectively connected to the output terminals of the first comparator, the output terminals of the second memristor array are connected to the input terminals of the fourth amplifier, and the output terminals of the fourth amplifier are connected to the fourth inverter The input terminals of the inverter are connected, and the output terminal of the fourth inverter outputs the output signal of the four-character memristive neural network circuit. 10.根据权利要求9所述的具有识别和排序功能的四字符忆阻神经网络电路,其特征在于,所述第二忆阻器阵列包括64个忆阻器,第二忆阻器阵列的大小为8×8;所述第四放大器设有8个,第四逆变器设有8个;第二忆阻器阵列的每列忆阻器均连接有一个第四放大器,第四放大器的反相输入端通过忆阻R2与第四放大器的输出端相连接,第四放大器的输出端与第四逆变器的输入端一一对应连接。10 . The four-character memristor neural network circuit with identification and sorting functions according to claim 9 , wherein the second memristor array comprises 64 memristors, and the size of the second memristor array is 64 . 11 . is 8×8; there are 8 fourth amplifiers and 8 fourth inverters; each row of memristors in the second memristor array is connected with a fourth amplifier, and the inverter of the fourth amplifier is The phase input terminal is connected to the output terminal of the fourth amplifier through the memristor R 2 , and the output terminal of the fourth amplifier is connected to the input terminal of the fourth inverter in one-to-one correspondence.
CN202110143875.7A 2021-02-02 2021-02-02 Four-character memristor neural network circuit with recognition and sequencing functions Active CN112734022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110143875.7A CN112734022B (en) 2021-02-02 2021-02-02 Four-character memristor neural network circuit with recognition and sequencing functions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110143875.7A CN112734022B (en) 2021-02-02 2021-02-02 Four-character memristor neural network circuit with recognition and sequencing functions

Publications (2)

Publication Number Publication Date
CN112734022A true CN112734022A (en) 2021-04-30
CN112734022B CN112734022B (en) 2023-12-19

Family

ID=75595483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110143875.7A Active CN112734022B (en) 2021-02-02 2021-02-02 Four-character memristor neural network circuit with recognition and sequencing functions

Country Status (1)

Country Link
CN (1) CN112734022B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113285708A (en) * 2021-05-31 2021-08-20 郑州轻工业大学 Four-color guess circuit based on memristor neural network
CN113642723A (en) * 2021-07-29 2021-11-12 安徽大学 GRU neural network circuit for realizing original-ectopic training

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150170025A1 (en) * 2013-12-18 2015-06-18 The Government Of The United States Of America As Represented By The Secretary Method and apparatus for performing close-loop programming of resistive memory devices in crossbar array based hardware circuits and systems
CN109214048A (en) * 2018-07-27 2019-01-15 西南大学 Utilize mixing CMOS- memristor fuzzy logic gate circuit and its design method
CN109711537A (en) * 2018-11-30 2019-05-03 郑州轻工业学院 A prediction circuit based on memristive neural network
US20190332927A1 (en) * 2018-04-25 2019-10-31 Denso Corporation Neural network circuit
CN110991624A (en) * 2019-12-31 2020-04-10 桂林电子科技大学 Variable pulse width input charge accumulation type memristor neural network circuit
WO2020115746A1 (en) * 2018-12-04 2020-06-11 Technion Research & Development Foundation Limited Delta-sigma modulation neurons for high-precision training of memristive synapses in deep neural networks
CN111507464A (en) * 2020-04-19 2020-08-07 华中科技大学 Equation solver based on memristor array and operation method thereof
CN111600583A (en) * 2020-06-02 2020-08-28 中北大学 Random frequency triangular wave generator based on diffusion memristor and current transmitter
US20200302277A1 (en) * 2019-03-22 2020-09-24 Kookmin University Industry Academy Cooperation Foundation Neural network system including gate circuit for controlling memristor array circuit

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150170025A1 (en) * 2013-12-18 2015-06-18 The Government Of The United States Of America As Represented By The Secretary Method and apparatus for performing close-loop programming of resistive memory devices in crossbar array based hardware circuits and systems
US20190332927A1 (en) * 2018-04-25 2019-10-31 Denso Corporation Neural network circuit
CN109214048A (en) * 2018-07-27 2019-01-15 西南大学 Utilize mixing CMOS- memristor fuzzy logic gate circuit and its design method
CN109711537A (en) * 2018-11-30 2019-05-03 郑州轻工业学院 A prediction circuit based on memristive neural network
WO2020115746A1 (en) * 2018-12-04 2020-06-11 Technion Research & Development Foundation Limited Delta-sigma modulation neurons for high-precision training of memristive synapses in deep neural networks
US20200302277A1 (en) * 2019-03-22 2020-09-24 Kookmin University Industry Academy Cooperation Foundation Neural network system including gate circuit for controlling memristor array circuit
CN110991624A (en) * 2019-12-31 2020-04-10 桂林电子科技大学 Variable pulse width input charge accumulation type memristor neural network circuit
CN111507464A (en) * 2020-04-19 2020-08-07 华中科技大学 Equation solver based on memristor array and operation method thereof
CN111600583A (en) * 2020-06-02 2020-08-28 中北大学 Random frequency triangular wave generator based on diffusion memristor and current transmitter

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李小娟;段书凯;王丽丹;: "自旋忆阻CPSO-PID神经网络", 西南大学学报(自然科学版), no. 11 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113285708A (en) * 2021-05-31 2021-08-20 郑州轻工业大学 Four-color guess circuit based on memristor neural network
CN113285708B (en) * 2021-05-31 2024-02-13 郑州轻工业大学 Four-color guessing circuit based on memristor neural network
CN113642723A (en) * 2021-07-29 2021-11-12 安徽大学 GRU neural network circuit for realizing original-ectopic training
CN113642723B (en) * 2021-07-29 2024-05-31 安徽大学 GRU neural network circuit for implementing original-ectopic training

Also Published As

Publication number Publication date
CN112734022B (en) 2023-12-19

Similar Documents

Publication Publication Date Title
US10708522B2 (en) Image sensor with analog sample and hold circuit control for analog neural networks
US11087204B2 (en) Resistive processing unit with multiple weight readers
US12111878B2 (en) Efficient processing of convolutional neural network layers using analog-memory-based hardware
US9646243B1 (en) Convolutional neural networks using resistive processing unit array
US9779355B1 (en) Back propagation gates and storage capacitor for neural networks
Dong et al. Convolutional neural networks based on RRAM devices for image recognition and online learning tasks
Meier A mixed-signal universal neuromorphic computing system
CN107924227A (en) Resistance processing unit
Yan et al. Multilayer memristive neural network circuit based on online learning for license plate detection
US20210342678A1 (en) Compute-in-memory architecture for neural networks
US11868893B2 (en) Efficient tile mapping for row-by-row convolutional neural network mapping for analog artificial intelligence network inference
Liu et al. Memristor-based HTM spatial pooler with on-device learning for pattern recognition
Cho et al. An on-chip learning neuromorphic autoencoder with current-mode transposable memory read and virtual lookup table
CN112734022A (en) Four-character memristor neural network circuit with recognition and sorting functions
Sun et al. Low-consumption neuromorphic memristor architecture based on convolutional neural networks
CN115376581B (en) Memristor-based in-memory computing array structure
Shi et al. Exploiting memristors for neuromorphic reinforcement learning
Li et al. Binary‐stochasticity‐enabled highly efficient neuromorphic deep learning achieves better‐than‐software accuracy
CN116523011B (en) Memristor-based binary neural network layer circuit and binary neural network training method
CN109711537B (en) A prediction circuit based on memristive neural network
Kareem et al. Multi-Connect Architecture (MCA) associative memory: A modified hopfield neural network
Zhou et al. Area-efficient memristor spiking neural networks and supervised learning method
JP6902000B2 (en) Arithmetic logic unit
Hasan Memristor based low power high throughput circuits and systems design
Wang et al. Recurrent neural networks: Associative memory and optimization

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant