[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110991635B - Circuit and implementation method of multi-mode synaptic time-dependent plasticity algorithm - Google Patents

Circuit and implementation method of multi-mode synaptic time-dependent plasticity algorithm Download PDF

Info

Publication number
CN110991635B
CN110991635B CN201911338785.2A CN201911338785A CN110991635B CN 110991635 B CN110991635 B CN 110991635B CN 201911338785 A CN201911338785 A CN 201911338785A CN 110991635 B CN110991635 B CN 110991635B
Authority
CN
China
Prior art keywords
type transistor
voltage
circuit
synaptic
ota
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.)
Active
Application number
CN201911338785.2A
Other languages
Chinese (zh)
Other versions
CN110991635A (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.)
Peking University
Original Assignee
Peking University
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 Peking University filed Critical Peking University
Priority to CN201911338785.2A priority Critical patent/CN110991635B/en
Publication of CN110991635A publication Critical patent/CN110991635A/en
Application granted granted Critical
Publication of CN110991635B publication Critical patent/CN110991635B/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

Landscapes

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

Abstract

本发明实施例提供一种多模态突触时间依赖可塑性算法的电路及实现方法,包括时间窗口产生电路、开关切换电路、OTA突触电路、时间窗口产生电路的对称电路和开关切换电路的对称电路;其中,时间窗口产生电路用于在第一控制信号和外加电压的作用下输出时间窗口采样电压;开关切换电路用于切换与时间窗口采样电压和外部参考电压连接的OTA突触电路的输入端口;OTA突触电路用于计算第一外部脉冲信号和第二外部脉冲信号到来时,在时间窗口采样电压和外部参考电压的作用下突触权值的变化量,并将变化量以电荷的形式存放在与OTA突触电路的输出端口相连的存储电容上。本发明实施例实现多种突触时间依赖可塑性算法,实现简单,调节灵活。

Figure 201911338785

Embodiments of the present invention provide a circuit and implementation method of a multimodal synaptic time-dependent plasticity algorithm, including a time window generation circuit, a switch switching circuit, an OTA synapse circuit, a symmetrical circuit of the time window generating circuit, and a symmetrical circuit of the switch switching circuit Circuit; wherein, the time window generation circuit is used to output the time window sampling voltage under the action of the first control signal and the applied voltage; the switch switching circuit is used to switch the input of the OTA synapse circuit connected to the time window sampling voltage and the external reference voltage port; the OTA synaptic circuit is used to calculate the variation of the synaptic weight value under the action of the time window sampling voltage and the external reference voltage when the first external pulse signal and the second external pulse signal arrive, and convert the variation into the charge The form is stored on a storage capacitor connected to the output port of the OTA synaptic circuit. The embodiment of the present invention implements multiple synaptic time-dependent plasticity algorithms, which are simple to implement and flexible to adjust.

Figure 201911338785

Description

多模态突触时间依赖可塑性算法的电路及实现方法Circuit and implementation method of multimodal synaptic time-dependent plasticity algorithm

技术领域technical field

本发明属于人工神经网络技术领域,尤其涉及一种多模态突触时间依赖可塑性算法的电路及实现方法。The invention belongs to the technical field of artificial neural networks, and in particular relates to a circuit and an implementation method of a multimodal synaptic time-dependent plasticity algorithm.

背景技术Background technique

脉冲神经网络作为一种仿生的人工神经网络,采用更具有生物学意义的神经元,突触及算法模型。通过模仿生物脉冲神经网络的特征、结构和运行机制,以期获得更高水平的人工智能。同时,脉冲神经网络采用生物神经系统的存算一体架构,可以从根本上解决传统的冯诺依曼架构因存算分离而导致的计算瓶颈问题。As a bionic artificial neural network, the spiking neural network adopts more biologically meaningful neurons, synapses and algorithm models. By imitating the characteristics, structure and operating mechanism of the biological impulse neural network, it is expected to obtain a higher level of artificial intelligence. At the same time, the spiking neural network adopts the integrated storage and calculation architecture of the biological nervous system, which can fundamentally solve the calculation bottleneck problem caused by the separation of storage and calculation in the traditional Von Neumann architecture.

神经形态工程学就是为了实现大规模的脉冲神经网络提供合理有效的硬件基础。它的一个重要领域就是通过采用VLSI(Very Large Scale Integration,超大规模集成)电路,实现各种具有生物学特性的突触、神经元及算法电路。生物脉冲神经网络中广泛存在的一类算法被称为突触时间依赖可塑性算法,它最基本的特征是根据突触前后膜脉冲到来的时间差与先后顺序,按照一定的规则调整突触的权值,进而实现学习与记忆功能。Neuromorphic engineering is to provide a reasonable and effective hardware foundation for the realization of large-scale spiking neural networks. One of its important areas is the realization of various synapses, neurons and algorithmic circuits with biological characteristics by using VLSI (Very Large Scale Integration, very large scale integration) circuits. A class of algorithms that widely exist in biological impulse neural networks is called synaptic time-dependent plasticity algorithm. Its most basic feature is to adjust the synaptic weights according to certain rules according to the time difference and sequence of the membrane impulses before and after the synapse. , and then realize the learning and memory functions.

研究发现,在不同的神经系统区域,不同的条件,存在多种不同的突触时间依赖可塑性算法机制。目前多数突触算法的神经形态工程学往往只能实现一种或两种算法。能实现多种算法的电路实现又多采用复杂的生物离子模型,硬件实现不友好,同时需要各种参数电压精确调节才能表现出不同的算法,不适用于大规模脉冲神经网络。Studies have found that in different nervous system regions and under different conditions, there are many different synaptic time-dependent plasticity algorithm mechanisms. Currently, neuromorphic engineering of most synaptic algorithms often only implements one or two algorithms. Circuits that can implement multiple algorithms often use complex biological ion models, which are not friendly to hardware implementations. At the same time, precise adjustment of various parameter voltages is required to display different algorithms, which is not suitable for large-scale pulsed neural networks.

发明内容Contents of the invention

为克服上述现有的突触算法电路实现的算法种类少、硬件和算法实现复杂,且可重构性低的问题或者至少部分地解决上述问题,本发明实施例提供一种多模态突触时间依赖可塑性算法的电路及实现方法。In order to overcome the above-mentioned existing synaptic algorithm circuit implementation of few types of algorithms, complex hardware and algorithm implementation, and low reconfigurability problems or at least partly solve the above problems, the embodiment of the present invention provides a multi-modal synaptic Circuit and implementation of time-dependent plasticity algorithm.

根据本发明实施例的第一方面,提供一种多模态突触时间依赖可塑性算法的电路,包括:According to the first aspect of the embodiments of the present invention, a circuit of a multimodal synaptic time-dependent plasticity algorithm is provided, including:

包括时间窗口产生电路、开关切换电路、OTA突触电路、所述时间窗口产生电路的对称电路和所述开关切换电路的对称电路;including a time window generating circuit, a switch switching circuit, an OTA synapse circuit, a symmetrical circuit of the time window generating circuit, and a symmetrical circuit of the switching circuit;

其中,所述时间窗口产生电路用于在第一控制信号和外加电压的作用下输出时间窗口采样电压;Wherein, the time window generation circuit is used to output the time window sampling voltage under the action of the first control signal and the applied voltage;

所述开关切换电路用于切换与所述时间窗口采样电压和外部参考电压连接的所述OTA突触电路的输入端口;The switch switching circuit is used to switch the input port of the OTA synapse circuit connected to the time window sampling voltage and the external reference voltage;

所述OTA突触电路用于计算第一外部脉冲信号和第二外部脉冲信号到来时,在所述时间窗口采样电压和所述外部参考电压的作用下突触权值的变化量,并将所述变化量以电荷的形式存放在与所述OTA突触电路的输出端口相连的存储电容上。The OTA synaptic circuit is used to calculate the variation of the synaptic weight value under the action of the time window sampling voltage and the external reference voltage when the first external pulse signal and the second external pulse signal arrive, and calculate the The amount of change is stored in the form of charge on the storage capacitor connected to the output port of the OTA synaptic circuit.

根据本发明实施例第二方面提供一种基于上述多模态突触时间依赖可塑性算法的电路的多模态突触时间依赖可塑性算法的实现方法,包括:According to the second aspect of an embodiment of the present invention, a method for implementing a multimodal synaptic time-dependent plasticity algorithm based on the circuit of the above-mentioned multimodal synaptic time-dependent plasticity algorithm is provided, including:

基于时间窗口产生电路在第一控制信号和外加电压的作用下产生多种时间窗口采样电压;The time-window generation circuit generates multiple time-window sampling voltages under the action of the first control signal and the applied voltage;

基于开关切换电路用于切换与所述时间窗口采样电压和外部参考电压连接的所述OTA突触电路的输入端口;The switch-based switching circuit is used to switch the input port of the OTA synaptic circuit connected to the time window sampling voltage and the external reference voltage;

基于OTA突触电路计算第一外部脉冲信号和第二外部脉冲信号到来时,在所述时间窗口采样电压和所述外部参考电压的作用下突触权值的变化量,并将所述变化量以电荷的形式存放在与所述OTA突触电路的输出端口相连的存储电容上。When the first external pulse signal and the second external pulse signal arrive based on the OTA synaptic circuit calculation, the amount of change of the synapse weight under the action of the time window sampling voltage and the external reference voltage, and the amount of change Stored in the form of charge on the storage capacitor connected to the output port of the OTA synapse circuit.

本发明实施例提供一种多模态突触时间依赖可塑性算法的电路及实现方法,该电路通过对控制信号进行调节,控制时间窗口产生电路产生多种时间窗口采样电压,通过切换与时间窗口采样电压和外部参考电压连接的OTA突触电路的输入端口,使得OTA突触电路在不同切换情况下根据输入端口的电压差确定突触权值的变化量,从而实现多种突触时间依赖可塑性算法;并可以通过调节外加电压对算法的时间尺度和增益幅度进行调节,适用于大规模脉冲神经网络,实现简单,调节灵活。The embodiment of the present invention provides a multi-modal synaptic time-dependent plasticity algorithm circuit and implementation method. The circuit adjusts the control signal, controls the time window generation circuit to generate various time window sampling voltages, and switches and time window sampling The input port of the OTA synapse circuit connected to the voltage and the external reference voltage enables the OTA synapse circuit to determine the change of the synaptic weight value according to the voltage difference of the input port under different switching conditions, thereby realizing a variety of synaptic time-dependent plasticity algorithms ; and the time scale and gain range of the algorithm can be adjusted by adjusting the applied voltage, which is suitable for large-scale spiking neural networks, with simple implementation and flexible adjustment.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例提供的多模态突触时间依赖可塑性算法的电路整体结构示意图;FIG. 1 is a schematic diagram of the overall circuit structure of the multimodal synaptic time-dependent plasticity algorithm provided by the embodiment of the present invention;

图2为本发明实施例提供的多模态突触时间依赖可塑性算法的电路中时间窗口产生电路的结构示意图;2 is a schematic structural diagram of a time window generation circuit in a circuit of a multimodal synaptic time-dependent plasticity algorithm provided by an embodiment of the present invention;

图3为本发明实施例提供的多模态突触时间依赖可塑性算法的电路中开关切换电路的结构示意图;3 is a schematic structural diagram of a switch switching circuit in a circuit of a multimodal synaptic time-dependent plasticity algorithm provided by an embodiment of the present invention;

图4为本发明实施例提供的多模态突触时间依赖可塑性算法的电路中OTA突触电路的结构示意图;4 is a schematic structural diagram of the OTA synapse circuit in the circuit of the multimodal synaptic time-dependent plasticity algorithm provided by the embodiment of the present invention;

图5为本发明实施例提供的多模态突触时间依赖可塑性算法的实现方法的流程示意图;FIG. 5 is a schematic flowchart of a method for implementing a multimodal synaptic time-dependent plasticity algorithm provided by an embodiment of the present invention;

图6为本发明实施例提供的多模态突触时间依赖可塑性算法的实现方法中实现的第一种算法的曲线示意图;6 is a schematic diagram of the curve of the first algorithm implemented in the implementation method of the multimodal synaptic time-dependent plasticity algorithm provided by the embodiment of the present invention;

图7为本发明实施例提供的多模态突触时间依赖可塑性算法的实现方法中实现的第二种算法的曲线示意图;FIG. 7 is a schematic diagram of the curve of the second algorithm implemented in the implementation method of the multimodal synaptic time-dependent plasticity algorithm provided by the embodiment of the present invention;

图8为本发明实施例提供的多模态突触时间依赖可塑性算法的实现方法中实现的第三种算法的曲线示意图;Fig. 8 is a schematic diagram of the curve of the third algorithm implemented in the implementation method of the multimodal synaptic time-dependent plasticity algorithm provided by the embodiment of the present invention;

图9为本发明实施例提供的多模态突触时间依赖可塑性算法的实现方法中实现的第四种算法的曲线示意图;FIG. 9 is a schematic diagram of the curve of the fourth algorithm implemented in the implementation method of the multimodal synaptic time-dependent plasticity algorithm provided by the embodiment of the present invention;

图10为本发明实施例提供的多模态突触时间依赖可塑性算法的实现方法中实现的第五种算法的曲线示意图;Fig. 10 is a schematic diagram of the curve of the fifth algorithm implemented in the implementation method of the multimodal synaptic time-dependent plasticity algorithm provided by the embodiment of the present invention;

图11为本发明实施例提供的多模态突触时间依赖可塑性算法的实现方法中实现的第六种算法的曲线示意图;FIG. 11 is a schematic diagram of the sixth algorithm implemented in the implementation method of the multimodal synaptic time-dependent plasticity algorithm provided by the embodiment of the present invention;

图12为本发明实施例提供的多模态突触时间依赖可塑性算法的实现方法中实现的第七种算法的曲线示意图;Fig. 12 is a schematic diagram of the curve of the seventh algorithm implemented in the implementation method of the multimodal synaptic time-dependent plasticity algorithm provided by the embodiment of the present invention;

图13为本发明实施例提供的多模态突触时间依赖可塑性算法的实现方法中实现的第八种算法的曲线示意图。FIG. 13 is a schematic diagram of an eighth algorithm implemented in the implementation method of the multimodal synaptic time-dependent plasticity algorithm provided by the embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

在本发明的一个实施例中提供一种多模态突触时间依赖可塑性算法的电路,图1为本发明实施例提供的多模态突触时间依赖可塑性算法的电路整体结构示意图,该电路包括时间窗口产生电路10、开关切换电路20、OTA(Operational TransconductanceAmplifier,跨导放大器)突触电路30、时间窗口产生电路10的对称电路10B和开关切换电路20的对称电路20B;In one embodiment of the present invention, a circuit of a multimodal synaptic time-dependent plasticity algorithm is provided. FIG. 1 is a schematic diagram of the overall circuit structure of a multimodal synaptic time-dependent plasticity algorithm provided by an embodiment of the present invention. The circuit includes Time window generating circuit 10, switch switching circuit 20, OTA (Operational Transconductance Amplifier, transconductance amplifier) synaptic circuit 30, time window generating circuit 10 Symmetric circuit 10B and switch switching circuit 20 Symmetric circuit 20B;

其中,OTA突触电路30为以OTA为基础的突触电路。Wherein, the OTA synaptic circuit 30 is an OTA-based synaptic circuit.

时间窗口产生电路10用于在第一控制信号VCTR1和外加电压的作用下输出时间窗口采样电压;The time window generating circuit 10 is used to output the time window sampling voltage under the action of the first control signal V CTR1 and the applied voltage;

时间窗口产生电路10在第一控制信号VCTR1和外加电压的作用下可以产生多种时间窗口采样电压,每次输出预设模式下的时间窗口采样电压。预设模式为预先设定的模式,与时间窗口采样电压的类型一一对应。The time window generating circuit 10 can generate various time window sampling voltages under the action of the first control signal V CTR1 and the applied voltage, and outputs the time window sampling voltages in the preset mode each time. The preset mode is a preset mode, corresponding to the type of the time window sampling voltage one by one.

开关切换电路20用于切换与时间窗口采样电压和外部参考电压连接的OTA突触电路的输入端口;The switch switching circuit 20 is used to switch the input port of the OTA synaptic circuit connected to the time window sampling voltage and the external reference voltage;

开关切换电路20用于决定时间窗口采样电压和外部参考电压与OTA突触电路30的不同输入端口之间的连接方式,实现相应的多模态突触时间依赖可塑性算法。The switch switching circuit 20 is used to determine the connection mode between the sampling voltage of the time window and the external reference voltage and different input ports of the OTA synapse circuit 30, so as to realize the corresponding multi-modal synapse time-dependent plasticity algorithm.

OTA突触电路30用于计算第一外部脉冲信号和第二外部脉冲信号到来时,在时间窗口采样电压和外部参考电压的作用下突触权值的变化量,并将变化量以电荷的形式存放在与OTA突触电路30的输出端口相连的存储电容上。The OTA synapse circuit 30 is used to calculate the amount of change in the synaptic weight value under the action of the time window sampling voltage and the external reference voltage when the first external pulse signal and the second external pulse signal arrive, and convert the amount of change in the form of charge stored in the storage capacitor connected to the output port of the OTA synaptic circuit 30 .

本实施例中时间窗口产生电路10启动后,产生的时间窗口采样电压会经过开关选择电路20送入到OTA突触电路30的输入端口。OTA突触电路30会根据其输入端口不同的电压差计算输出电流的大小,并以电荷的形式存储在与其输出端口相连的存储电容上,进而改变存储电容上的电压,即突触权值的大小。In this embodiment, after the time window generation circuit 10 is started, the generated time window sampling voltage will be sent to the input port of the OTA synapse circuit 30 through the switch selection circuit 20 . The OTA synapse circuit 30 will calculate the size of the output current according to the different voltage differences of its input ports, and store it in the form of charge on the storage capacitor connected to its output port, and then change the voltage on the storage capacitor, that is, the synapse weight value size.

本实施例通过对控制信号进行调节,控制时间窗口产生电路产生多种时间窗口采样电压,通过切换与时间窗口采样电压和外部参考电压连接的OTA突触电路的输入端口,使得OTA突触电路在不同切换情况下根据输入端口的电压差确定突触权值的变化量,从而实现多种突触时间依赖可塑性算法;并可以通过调节外加电压对算法的时间尺度和增益幅度进行调节,适用于大规模脉冲神经网络,实现简单,调节灵活。In this embodiment, by adjusting the control signal, the time window generation circuit is controlled to generate multiple time window sampling voltages, and by switching the input port of the OTA synapse circuit connected to the time window sampling voltage and the external reference voltage, the OTA synapse circuit is In different switching situations, the change of synaptic weight is determined according to the voltage difference of the input port, thereby realizing a variety of synaptic time-dependent plasticity algorithms; and the time scale and gain range of the algorithm can be adjusted by adjusting the applied voltage, which is suitable for large Scale spiking neural network, simple to implement and flexible to adjust.

在上述实施例的基础上,如图2所示,本实施例中时间窗口产生电路10包括第一至第十N型晶体管,即NM1、NM2、NM3、NM4、NM5、NM6、NM7、NM8、NM9和NM10,第一至第三P型晶体管,即PM1、PM2和PM3,以及第一电容C1、第二电容C2和比较器Compare;On the basis of the above embodiments, as shown in FIG. 2, the time window generation circuit 10 in this embodiment includes first to tenth N-type transistors, namely NM1, NM2, NM3, NM4, NM5, NM6, NM7, NM8, NM9 and NM10, the first to third P-type transistors, namely PM1, PM2 and PM3, and the first capacitor C 1 , the second capacitor C 2 and the comparator Compare;

其中,第一P型晶体管PM1的源极与外部第四公共参考电压端口VCM4连接,第一P型晶体管PM1的栅极与控制充电电流的第一偏置电压Vbin连接,第一P型晶体管PM1的漏极与第二P型晶体管PM2的源极连接;Wherein, the source of the first P-type transistor PM1 is connected to the external fourth common reference voltage port VCM4, the gate of the first P-type transistor PM1 is connected to the first bias voltage V bin for controlling the charging current, and the first P-type transistor PM1 The drain of PM1 is connected to the source of the second P-type transistor PM2;

第二P型晶体管PM2的栅极与第二N型晶体管NM2的栅极和返回信号端口Vback连接,第二P型晶体管PM2的漏极与第二N型晶体管PM2的漏极、第一N型晶体管NM1的源极、第六N型晶体管NM6的漏极和第一电容C1的第一极连接;The gate of the second P-type transistor PM2 is connected to the gate of the second N-type transistor NM2 and the return signal port Vback , and the drain of the second P-type transistor PM2 is connected to the drain of the second N-type transistor PM2, the first N The source of the N-type transistor NM1, the drain of the sixth N-type transistor NM6 are connected to the first pole of the first capacitor C1 ;

第三P型晶体管PM3的源极与外部电源电压VDD连接,第三P型晶体管PM3的栅极与第十N型晶体管NM10的栅极、返回信号端口Vback以及第一控制信号VCTR1连接;The source of the third P-type transistor PM3 is connected to the external power supply voltage VDD, the gate of the third P-type transistor PM3 is connected to the gate of the tenth N-type transistor NM10, the return signal port V back and the first control signal V CTR1 ;

其中,第一N型晶体管NM1的漏极与外部电源电压VDD连接,第一N型晶体管NM1的栅极与第一外部脉冲信号Vpre连接;Wherein, the drain of the first N-type transistor NM1 is connected to the external power supply voltage VDD, and the gate of the first N-type transistor NM1 is connected to the first external pulse signal V pre ;

第二N型晶体管NM2的源极与第三N型晶体管NM3的漏极连接;The source of the second N-type transistor NM2 is connected to the drain of the third N-type transistor NM3;

第三N型晶体管NM3的栅极与控制漏电电流的第二偏置电压Vblk连接,第三N型晶体管NM3的源极与第一电容C1的第二极、第二公共参考电压VCM2连接;The gate of the third N-type transistor NM3 is connected to the second bias voltage V blk that controls the leakage current, and the source of the third N-type transistor NM3 is connected to the second pole of the first capacitor C1 and the second common reference voltage VCM2 ;

第四N型晶体管NM4的漏极与外部电源电压VDD连接,第四N型晶体管NM4的栅极与第一外部脉冲信号Vpre连接,第四N型晶体管NM4的源极与第五N型晶体管NM5的漏极、第二电容C2的第一极、第七N型晶体管NM7的源极连接;The drain of the fourth N-type transistor NM4 is connected to the external power supply voltage VDD, the gate of the fourth N-type transistor NM4 is connected to the first external pulse signal Vpre , and the source of the fourth N-type transistor NM4 is connected to the fifth N-type transistor. The drain of NM5, the first pole of the second capacitor C2 , and the source of the seventh N-type transistor NM7 are connected;

第五N型晶体NM5的栅极与控制漏电电流的第三偏置电压Vblk2连接,第五N型晶体管NM5的源极与第二电容C2的第二极以及第一公共参考电压VCM1连接;The gate of the fifth N-type transistor NM5 is connected to the third bias voltage V blk2 that controls the leakage current, and the source of the fifth N-type transistor NM5 is connected to the second pole of the second capacitor C2 and the first common reference voltage VCM1 ;

第六N型晶体管NM6的栅极与第二外部脉冲信号Vpost连接,第六N型晶体管NM6的源极与第九N型晶体管NM9的源极和时间窗口采样电压的输出端口Vedcp连接;The gate of the sixth N-type transistor NM6 is connected to the second external pulse signal V post , and the source of the sixth N-type transistor NM6 is connected to the source of the ninth N-type transistor NM9 and the output port V edcp of the time window sampling voltage;

第七N型晶体管NM7的栅极与第一控制信号VCTR1连接,第七N型晶体管NM7的漏极与第八N型晶体管NM8的漏极、比较器Compare的正极连接;The gate of the seventh N-type transistor NM7 is connected to the first control signal V CTR1 , and the drain of the seventh N-type transistor NM7 is connected to the drain of the eighth N-type transistor NM8 and the anode of the comparator Compare;

第八N型晶体管NM8的栅极与第一控制信号VCTR1的取反信号VCTR1~连接,第八N型晶体管NM8的源极与外部地信号GND连接;The gate of the eighth N-type transistor NM8 is connected to the inversion signal V CTR1~ of the first control signal V CTR1 , and the source of the eighth N-type transistor NM8 is connected to the external ground signal GND;

第九N型晶体管NM9的漏极与外部参考电压的端口VREF连接,第九N型晶体管NM9的栅极与第二外部脉冲信号Vpost的取反信号Vpost~连接;The drain of the ninth N-type transistor NM9 is connected to the port V REF of the external reference voltage, and the gate of the ninth N-type transistor NM9 is connected to the inverted signal V post of the second external pulse signal V post ;

第十N型晶体管NM10的漏极与比较器Compare的输出端连接;The drain of the tenth N-type transistor NM10 is connected to the output end of the comparator Compare;

比较器Compare的负极输入端口与比较器的外部参考电压VC连接;The negative input port of the comparator Compare is connected to the external reference voltage V C of the comparator;

其中,外加电压包括第一偏置电压Vbin、第二偏置电压Vblk和第三偏置电压Vblk2;返回信号端口Vback用于返回第二电容C2在第三偏置电压Vblk2、第一控制信号VCTR1和第一控制信号的互补信号VCTR1~的作用下产生的信号。Wherein, the applied voltage includes the first bias voltage V bin , the second bias voltage V blk and the third bias voltage V blk2 ; the return signal port V back is used to return the second capacitor C 2 at the third bias voltage V blk2 , a signal generated under the action of the first control signal V CTR1 and the complementary signal V CTR1 ˜ of the first control signal.

在上述实施例的基础上,如图3所示本实施例中开关切换电路20包括第四P型晶体管PM4,以及第十一至第十五N型晶体管,即NM11、NM12、NM13、NM14和NM15;On the basis of the above-mentioned embodiment, as shown in FIG. NM15;

其中,第四P型晶体管PM4的漏极与第十五N型晶体管NM15的源极和外部参考电压VREF的端口连接,第四P型晶体管PM4的栅极与第十五N型晶体管NM15的栅极和第三控制信号VCTR3连接,第四P型晶体管PM4的源极与第四公共参考电压VCM4连接;Wherein, the drain of the fourth P-type transistor PM4 is connected to the source of the fifteenth N-type transistor NM15 and the port of the external reference voltage V REF , and the gate of the fourth P-type transistor PM4 is connected to the port of the fifteenth N-type transistor NM15. The gate is connected to the third control signal V CTR3 , and the source of the fourth P-type transistor PM4 is connected to the fourth common reference voltage VCM4;

第十一N型晶体管NM11的栅极与第十二N型晶体管NM12的栅极和第二控制信号VCTR2连接,第十一N型晶体管NM11的漏极与第十四N型晶体管NM14的漏极和时间窗口产生电路10中时间窗口采样电压的输出端口Vedcp连接,第十一N型晶体管NM11的源极与第十三N型晶体管NM13的源极和OTA突触电路30的第一正输入端口OTAP连接;The gate of the eleventh N-type transistor NM11 is connected to the gate of the twelfth N-type transistor NM12 and the second control signal V CTR2 , the drain of the eleventh N-type transistor NM11 is connected to the drain of the fourteenth N-type transistor NM14 pole and the output port V edcp of the time window sampling voltage in the time window generating circuit 10, the source of the eleventh N-type transistor NM11 is connected with the source of the thirteenth N-type transistor NM13 and the first positive electrode of the OTA synapse circuit 30 input port OTAP connection;

第十二N型晶体管NM12的漏极与第十三N型晶体管NM13的漏极和外部参考电压的端口VREF连接,第十二N型晶体管NM12的源极与第十四N型晶体管NM14的源极和OTA突触电路30的第一负输入端口OTAN连接;The drain of the twelfth N-type transistor NM12 is connected to the drain of the thirteenth N-type transistor NM13 and the port V REF of the external reference voltage, and the source of the twelfth N-type transistor NM12 is connected to the port V REF of the fourteenth N-type transistor NM14. The source is connected to the first negative input port OTAN of the OTA synapse circuit 30;

第十三N型晶体管NM13的栅极与第十四N型晶体管NM14的栅极和第二控制信号的取反信号VCTR2~连接;The gate of the thirteenth N-type transistor NM13 is connected to the gate of the fourteenth N-type transistor NM14 and the inverted signal V CTR2 of the second control signal;

第十五N型晶体管NM15的漏极与第三公共参考电压VCM3连接。The drain of the fifteenth N-type transistor NM15 is connected to the third common reference voltage VCM3.

在上述各实施例的基础上,如图4所示本实施例中OTA突触电路包括第五至第八P型晶体管,即PM5、PM6、PM7和PM8,第十六至第二十五N型晶体管,即NM16、NM17、NM18、NM19、NM20、NM21、NM22、NM23、NM24和NM25,以及第一传输管TG1、第二传输管TG2和存储电容CWOn the basis of the above-mentioned embodiments, as shown in FIG. 4, the OTA synaptic circuit in this embodiment includes fifth to eighth P-type transistors, namely PM5, PM6, PM7 and PM8, sixteenth to twenty-fifth N Type transistors, namely NM16, NM17, NM18, NM19, NM20, NM21, NM22, NM23, NM24 and NM25, and the first transmission tube TG1, the second transmission tube TG2 and the storage capacitor C W ;

其中,第五至第八P型晶体管的源极均与外部电源电压VDD连接;Wherein, the sources of the fifth to eighth P-type transistors are all connected to the external power supply voltage VDD;

第五P型晶体管PM5的栅极与第六P型晶体管PM6的栅极、第十六N型晶体管NM16的漏极,以及第十八N型晶体管NM18的漏极相连,第五P型晶体管PM5的漏极与第二十二N型晶体管NM22的漏极和栅极,以及第二十五N型晶体管NM25的栅极连接;The gate of the fifth P-type transistor PM5 is connected to the gate of the sixth P-type transistor PM6, the drain of the sixteenth N-type transistor NM16, and the drain of the eighteenth N-type transistor NM18, and the fifth P-type transistor PM5 The drain is connected to the drain and gate of the twenty-second N-type transistor NM22, and the gate of the twenty-fifth N-type transistor NM25;

第七P型晶体管PM7的栅极与第八P型晶体管PM8的栅极、第十七P型晶体管NM17的漏极和第十九N型晶体管NM19的漏极连接;The gate of the seventh P-type transistor PM7 is connected to the gate of the eighth P-type transistor PM8, the drain of the seventeenth P-type transistor NM17, and the drain of the nineteenth N-type transistor NM19;

第八P型晶体管PM8的漏极与第二十五N型晶体管NM25的漏极、第一传输管TG1的输入端和第二传输管TG2的输入端连接;The drain of the eighth P-type transistor PM8 is connected to the drain of the twenty-fifth N-type transistor NM25, the input end of the first transfer transistor TG1, and the input end of the second transfer transistor TG2;

第十六N型晶体管NM16的源极与第十七N型晶体管NM17的源极和第二十N型晶体管NM20的漏极连接;The source of the sixteenth N-type transistor NM16 is connected to the source of the seventeenth N-type transistor NM17 and the drain of the twentieth N-type transistor NM20;

第十八N型晶体管NM18的源极与第十九N型晶体管NM19的源极和第二十一N型晶体管NM21的漏极连接;The source of the eighteenth N-type transistor NM18 is connected to the source of the nineteenth N-type transistor NM19 and the drain of the twenty-first N-type transistor NM21;

第二十N型晶体管NM20的栅极与第二外部脉冲信号Vpre连接,第二十N型晶体管的源极NM20与第二十三N型晶体管NM23的漏极连接;The gate of the twentieth N-type transistor NM20 is connected to the second external pulse signal V pre , and the source NM20 of the twentieth N-type transistor is connected to the drain of the twenty-third N-type transistor NM23;

第二十一N型晶体管NM21的栅极与第一外部脉冲信号Vpost连接,第二十一N型晶体管NM21的源极与第二十四N型晶体管NM24的漏极连接;The gate of the twenty-first N-type transistor NM21 is connected to the first external pulse signal V post , and the source of the twenty-first N-type transistor NM21 is connected to the drain of the twenty-fourth N-type transistor NM24;

第二十三N型晶体管NM23的栅极与第二十四N型晶体管NM24的栅极和控制OTA尾电流大小的第四偏置电压Vtail连接;The gate of the twenty-third N-type transistor NM23 is connected to the gate of the twenty-fourth N-type transistor NM24 and the fourth bias voltage V tail that controls the size of the OTA tail current;

第二十二至二十五N型晶体管的源极与外部地信号GND连接;The sources of the twenty-second to twenty-fifth N-type transistors are connected to the external ground signal GND;

第一传输管TG1的正极与第二外部脉冲信号Vpost连接,第一传输管TG1的负极与第二外部脉冲信号的取反信号Vpost~连接,第一传输管TG1的输出与第二传输管TG2的输出和存储电容CW的第一极连接;The anode of the first transmission tube TG1 is connected to the second external pulse signal V post , the negative pole of the first transmission tube TG1 is connected to the inversion signal V post~ of the second external pulse signal, and the output of the first transmission tube TG1 is connected to the second transmission The output of the tube TG2 is connected to the first pole of the storage capacitor C W ;

第二传输管TG2的正极与第一外部脉冲信号Vpre连接,第二传输管TG2的负极与第一外部脉冲信号的取反信号Vpre~连接;The anode of the second transmission tube TG2 is connected to the first external pulse signal Vpre , and the negative pole of the second transmission tube TG2 is connected to the inversion signal Vpre ~ of the first external pulse signal;

存储电容Cw的第二极与外部地信号GND连接。The second pole of the storage capacitor C w is connected to the external ground signal GND.

在本发明的另一个实施例中提供一种基于上述任一多模态突触时间依赖可塑性算法的电路实施例的多模态突触时间依赖可塑性算法的实现方法,该方法基于前述各实施例中的电路实现。因此,在前述多模态突触时间依赖可塑性算法的电路的各实施例中的描述和定义,可以用于本发明实施例中各个执行步骤的理解。图5为本发明实施例提供的多模态突触时间依赖可塑性算法的实现方法流程示意图,该方法包括:S501,基于时间窗口产生电路在第一控制信号和外加电压的作用下产生多种时间窗口采样电压;In another embodiment of the present invention, a method for implementing a multimodal synaptic time-dependent plasticity algorithm based on any of the circuit embodiments of the above-mentioned multimodal synaptic time-dependent plasticity algorithm is provided. The method is based on the foregoing embodiments The circuit implementation in. Therefore, the descriptions and definitions in the various embodiments of the circuit of the aforementioned multimodal synaptic time-dependent plasticity algorithm can be used to understand the various execution steps in the embodiments of the present invention. Fig. 5 is a schematic flow chart of the implementation method of the multimodal synapse time-dependent plasticity algorithm provided by the embodiment of the present invention. Window sampling voltage;

其中,OTA突触电路为以OTA为基础的突触电路。时间窗口产生电路在第一控制信号VCTR1和外加电压的作用下可以产生多种时间窗口采样电压,每次输出预设模式下的时间窗口采样电压。预设模式为预先设定的模式,与时间窗口采样电压的类型一一对应。Wherein, the OTA synaptic circuit is an OTA-based synaptic circuit. The time window generation circuit can generate various time window sampling voltages under the action of the first control signal V CTR1 and the applied voltage, and outputs the time window sampling voltages in the preset mode each time. The preset mode is a preset mode, corresponding to the type of the time window sampling voltage one by one.

S502,基于开关切换电路用于切换与时间窗口采样电压和外部参考电压连接的OTA突触电路的输入端口;S502, based on the switch switching circuit, is used to switch the input port of the OTA synaptic circuit connected to the time window sampling voltage and the external reference voltage;

开关切换电路用于决定时间窗口采样电压和外部参考电压与OTA突触电路的不同输入端口之间的连接方式,实现相应的多模态突触时间依赖可塑性算法。The switch switching circuit is used to determine the connection mode between the time window sampling voltage and the external reference voltage and different input ports of the OTA synapse circuit, so as to realize the corresponding multimodal synaptic time-dependent plasticity algorithm.

S503,基于OTA突触电路计算第一外部脉冲信号和第二外部脉冲信号到来时,在时间窗口采样电压和外部参考电压的作用下突触权值的变化量,并将变化量以电荷的形式存放在与OTA突触电路的输出端口相连的存储电容上。S503, based on the OTA synapse circuit, when the first external pulse signal and the second external pulse signal arrive, the change amount of the synapse weight value under the action of the time window sampling voltage and the external reference voltage is calculated, and the change amount is expressed in the form of charge Stored on the storage capacitor connected to the output port of the OTA synapse circuit.

本实施例中时间窗口产生电路启动后,产生的时间窗口采样电压会经过开关选择电路送入到OTA突触电路的输入端口。OTA突触电路会根据其输入端口不同的电压差计算输出电流的大小,并以电荷的形式存储在与其输出端口相连的存储电容上,进而改变存储电容上的电压,即突触权值的大小。In this embodiment, after the time window generation circuit is started, the generated time window sampling voltage will be sent to the input port of the OTA synapse circuit through the switch selection circuit. The OTA synaptic circuit will calculate the magnitude of the output current according to the different voltage differences of its input port, and store it in the form of charge on the storage capacitor connected to its output port, and then change the voltage on the storage capacitor, that is, the size of the synaptic weight .

本实施例通过对控制信号进行调节,控制时间窗口产生电路产生多种时间窗口采样电压,通过切换与时间窗口采样电压和外部参考电压连接的OTA突触电路的输入端口,使得OTA突触电路在不同切换情况下根据输入端口的电压差确定突触权值的变化量,从而实现多种突触时间依赖可塑性算法;并可以通过调节外加电压对算法的时间尺度和增益幅度进行调节,适用于大规模脉冲神经网络,实现简单,调节灵活。In this embodiment, by adjusting the control signal, the time window generation circuit is controlled to generate multiple time window sampling voltages, and by switching the input port of the OTA synapse circuit connected to the time window sampling voltage and the external reference voltage, the OTA synapse circuit is In different switching situations, the change of synaptic weight is determined according to the voltage difference of the input port, thereby realizing a variety of synaptic time-dependent plasticity algorithms; and the time scale and gain range of the algorithm can be adjusted by adjusting the applied voltage, which is suitable for large Scale spiking neural network, simple to implement and flexible to adjust.

在上述实施例的基础上,本实施例中基于时间窗口产生电路在第一控制信号和外加电压的作用下产生多种时间窗口采样电压的步骤包括:在第一外部脉冲信号Vpre到来的瞬间,使第一电容C1和第二电容C2充电到峰值;使第二电容C2在第三偏置电压Vblk2、第一控制信号VCTR1及其互补信号VCTR1B的作用下产生返回信号端口Vback的信号;On the basis of the above-mentioned embodiments, the step of generating multiple time-window sampling voltages under the action of the first control signal and the applied voltage based on the time-window generation circuit in this embodiment includes: at the moment when the first external pulse signal V pre arrives , so that the first capacitor C 1 and the second capacitor C 2 are charged to the peak value; the second capacitor C 2 generates a return signal under the action of the third bias voltage V blk2 , the first control signal V CTR1 and its complementary signal V CTR1B The signal of port V back ;

使第一电容C1在第一偏置电压Vbin、第二偏置电压Vblk和返回信号端口Vback的作用下产生预设的窗口波形,并在第二外部脉冲信号Vpost及其取反信号Vpost~的作用下输出时间窗口采样电压,如50ns的时间窗口采样电压,然后输出到开关切换电路20的输入端。Make the first capacitor C 1 generate a preset window waveform under the action of the first bias voltage V bin , the second bias voltage V blk and the return signal port V back , and generate a preset window waveform under the action of the second external pulse signal V post and its Under the action of the reverse signal V post˜ , the time window sampling voltage is output, such as the time window sampling voltage of 50 ns, and then output to the input terminal of the switch switching circuit 20 .

在上述实施例的基础上,本实施例中基于时间窗口产生电路在第一控制信号和外加电压的作用下产生多种时间窗口采样电压的步骤包括:当第一控制信号VCTR1为低电平,返回信号端口Vback的信号的高电平时,关断时间窗口产生电路10中的第二P型晶体管PM2,打开时间窗口产生电路10中的第二N型晶体管NM2,使得第一电容C1上的电压在第二偏置电压Vblk的控制下逐渐下降直到与第二公共参考电压VCM2相等;On the basis of the above-mentioned embodiments, in this embodiment, the step of generating multiple time-window sampling voltages under the action of the first control signal and the applied voltage based on the time-window generating circuit includes: when the first control signal V CTR1 is at a low level , when returning to the high level of the signal of the signal port Vback , the second P-type transistor PM2 in the time window generation circuit 10 is turned off, and the second N-type transistor NM2 in the time window generation circuit 10 is turned on, so that the first capacitor C1 Under the control of the second bias voltage V blk , the voltage on the voltage gradually decreases until it is equal to the second common reference voltage VCM2;

当第一控制信号VCTR1为高电平时,第二电容C2上的电压与时间窗口产生电路10中的比较器Compare的正极输入端口连接,第二电容C2在第三偏置电压Vblk2的控制下逐渐下降直到与第一公共参考电压VCM1相等;When the first control signal V CTR1 is at a high level, the voltage on the second capacitor C2 is connected to the positive input port of the comparator Compare in the time window generation circuit 10, and the second capacitor C2 is at the third bias voltage V blk2 Gradually decrease under the control of until it is equal to the first common reference voltage VCM1;

当第二电容C2上的电压比比较器Compare的负极输入端口的外部参考电压高VC时,比较器输出高电平,返回信号端口Vback的信号也为高电平,此时关断第二P型晶体管PM2,打开第二N型晶体管NM2,使得第一电容上C1的电压在第二偏置电压Vblk的控制下逐渐下降,直到第一电容C1上的电压小于VC,此时比较器Compare输出低电平,返回信号端口,Vback的信号变为低电平,打开第二P型晶体管PM2,关断第二N型晶体管NM2,使得第一电容C1上的电压在第一偏置电压Vbin的控制下逐渐升高直到与第四公共参考电压VCM4相等。When the voltage on the second capacitor C2 is higher than the external reference voltage V C of the negative input port of the comparator Compare, the comparator outputs a high level, and the signal returned to the signal port V back is also a high level, and it is turned off at this time The second P-type transistor PM2 turns on the second N-type transistor NM2, so that the voltage of C1 on the first capacitor gradually decreases under the control of the second bias voltage V blk until the voltage on the first capacitor C1 is less than V C , at this time the comparator Compare outputs a low level, returns to the signal port, the signal of V back becomes low level, turns on the second P-type transistor PM2, and turns off the second N-type transistor NM2, so that the first capacitor C1 The voltage gradually rises under the control of the first bias voltage V bin until it is equal to the fourth common reference voltage VCM4 .

在上述实施例的基础上,本实施例中基于开关切换电路20切换与时间窗口采样电压和外部参考电压连接的OTA突触电路30的输入端口的步骤包括:使开关切换电路20中的第四P型晶体管PM4和第十五N型晶体管NM15在第三控制信号VCTR3的控制下选择与外部参考电压的端口VREF相连接的不同外部参考电压;使第十一至第十四N型晶体管在第二控制信号VCTR2及其互补信号VCTR2~的控制下选择与OTA突触电路30的各输入端口连接的时间窗口采样电压和外部参考电压。On the basis of the above-mentioned embodiments, the step of switching the input port of the OTA synapse circuit 30 connected to the time window sampling voltage and the external reference voltage based on the switch switching circuit 20 in this embodiment includes: making the fourth switch in the switch switching circuit 20 The P-type transistor PM4 and the fifteenth N-type transistor NM15 select different external reference voltages connected to the port V REF of the external reference voltage under the control of the third control signal V CTR3 ; make the eleventh to fourteenth N-type transistors The time window sampling voltage and the external reference voltage connected to each input port of the OTA synapse circuit 30 are selected under the control of the second control signal V CTR2 and its complementary signal V CTR2 ˜ .

在上述实施例的基础上,本实施例中基于开关切换电路20切换与时间窗口采样电压和外部参考电压连接的OTA突触电路30的输入端口的步骤包括:当第三控制信号VCTR3为低电平时,打开第四P型晶体管PM4,关断第十五N型晶体管NM15,外部参考电压的端口VREF与第四公共参考电压VCM4连接;On the basis of the above-mentioned embodiments, the step of switching the input port of the OTA synapse circuit 30 connected to the time window sampling voltage and the external reference voltage based on the switch switching circuit 20 in this embodiment includes: when the third control signal V CTR3 is low level, the fourth P-type transistor PM4 is turned on, the fifteenth N-type transistor NM15 is turned off, and the port V REF of the external reference voltage is connected to the fourth common reference voltage VCM4;

当第三控制信号VCTR3为高电平时,关断第四P型晶体管PM4,打开第十五N型晶体管NM15,外部参考电压的端口VREF与第三公共参考电压VCM3连接;When the third control signal V CTR3 is at a high level, the fourth P-type transistor PM4 is turned off, the fifteenth N-type transistor NM15 is turned on, and the port V REF of the external reference voltage is connected to the third common reference voltage VCM3;

当第二控制信号VCTR2为低电平,且第二控制信号的互补信号VCTR2~为高电平时,打开第十三至第十四N型晶体管,关断第十一至第十二N型晶体管,外部参考电压的端口VREF与OTA突触电路30的正输入端口OTAP连接,时间窗口采样电压的输出端口Vedcp与OTA突触电路30的负输入端口OTAN连接;When the second control signal V CTR2 is at low level and the complementary signal V CTR2~ of the second control signal is at high level, the thirteenth to fourteenth N-type transistors are turned on, and the eleventh to twelfth N-type transistors are turned off. type transistor, the port V REF of the external reference voltage is connected to the positive input port OTAP of the OTA synapse circuit 30, and the output port V edcp of the time window sampling voltage is connected to the negative input port OTAN of the OTA synapse circuit 30;

当第二控制信号VCTR2为高电平,且第二控制信号的互补信号VCTR2~为低电平时,关断第十三至第十四N型晶体管,打开第十一至第十二N型晶体管,外部参考电压的端口VREF与OTA突触电路30的负输入端口OTAN连接,时间窗口采样电压的输出端口Vedcp与OTA突触电路30的正输入端口OTAP连接;When the second control signal V CTR2 is at a high level and the complementary signal V CTR2~ of the second control signal is at a low level, the thirteenth to fourteenth N-type transistors are turned off, and the eleventh to twelfth N-type transistors are turned on. type transistor, the port V REF of the external reference voltage is connected to the negative input port OTAN of the OTA synapse circuit 30, and the output port V edcp of the time window sampling voltage is connected to the positive input port OTAP of the OTA synapse circuit 30;

其中,外部参考电压包括第三公共参考电压和第四公共参考电压。Wherein, the external reference voltage includes a third common reference voltage and a fourth common reference voltage.

在上述各实施例的基础上,本实施例中基于OTA突触电路30计算第一外部脉冲信号Vpre和第二外部脉冲信号Vpost到来时,在时间窗口采样电压和外部参考电压的作用下突触权值的变化量的步骤包括:当第一外部脉冲信号Vpre比第二外部脉冲信号Vpost早到达时,根据OTA突触电路30中第十六N型晶体管NM16与第十七N型晶体管NM17的栅极上电压差的正负和大小,确定OTA突触电路30输出的电流的正负和大小,根据电流的正负和大小确定突触权值的变化量;On the basis of the above-mentioned embodiments, in this embodiment, when the first external pulse signal V pre and the second external pulse signal V post arrive based on the OTA synaptic circuit 30, under the action of the time window sampling voltage and the external reference voltage The step of changing the amount of synapse weight includes: when the first external pulse signal V pre arrives earlier than the second external pulse signal V post , according to the sixteenth N-type transistor NM16 and the seventeenth N-type transistor NM16 in the OTA synapse circuit 30 The positive and negative and the size of the voltage difference on the gate of the type transistor NM17 determine the positive and negative and the size of the current output by the OTA synapse circuit 30, and determine the variation of the synaptic weight according to the positive and negative of the current and the size;

当第一外部脉冲信号Vpre比第二外部脉冲信号Vpost晚到达时,根据OTA突触电路30中第十八N型晶体管NM18与第十九N型晶体管NM19的栅极上电压差的正负和大小,确定OTA突触电路30输出的电流的正负和大小,根据电流的正负和大小确定突触权值的变化量。When the first external pulse signal V pre arrives later than the second external pulse signal V post , according to the positive voltage difference between the gates of the eighteenth N-type transistor NM18 and the nineteenth N-type transistor NM19 in the OTA synapse circuit 30 Negative and magnitude, determine the positive and negative sum of the current output by the OTA synapse circuit 30, and determine the change amount of the synaptic weight according to the positive and negative sum of the current.

在上述实施例的基础上,本实施例中根据OTA突触电路30中第十六N型晶体管NM16与第十七N型晶体管NM17的栅极上电压差的正负和大小,确定OTA突触电路30输出的电流的正负和大小的步骤包括:在第一外部脉冲信号Vpre比第二外部脉冲信号Vpost早到达的情况下,当第十七N型晶体管NM17的栅极上的电压大于第十六N型晶体管NM16的栅极上的电压时,在第二外部脉冲信号Vpos到来的瞬间,OTA突触电路30通过第一传输管TG1向存储电容CW输出正向的电流,突触权值增加;当第十七N型晶体管NM17的栅极上的电压小于第十六N型晶体管NM16的栅极上的电压时,在第二外部脉冲信号Vpost到来的瞬间,OTA突触电路30通过第一传输管TG1向存储电容CW输出负向的电流,突触权值减小;On the basis of the above-mentioned embodiments, in this embodiment, the OTA synapse is determined according to the positive and negative sum of the voltage difference between the gates of the sixteenth N-type transistor NM16 and the seventeenth N-type transistor NM17 in the OTA synapse circuit 30. The steps of the positive, negative and magnitude of the current output by the circuit 30 include: when the first external pulse signal V pre arrives earlier than the second external pulse signal V post , when the voltage on the gate of the seventeenth N-type transistor NM17 When it is greater than the voltage on the gate of the sixteenth N-type transistor NM16, at the moment when the second external pulse signal V pos arrives, the OTA synapse circuit 30 outputs a positive current to the storage capacitor C W through the first transmission transistor TG1, The synapse weight increases; when the voltage on the gate of the seventeenth N-type transistor NM17 is less than the voltage on the gate of the sixteenth N-type transistor NM16, at the moment when the second external pulse signal V post arrives, the OTA burst The touch circuit 30 outputs a negative current to the storage capacitor C W through the first transmission tube TG1, and the synapse weight decreases;

根据OTA突触电路30中第十八N型晶体管与第十九N型晶体管的栅极上电压差的正负和大小,确定OTA突触电路输出的电流的正负和大小的步骤包括:在第一外部脉冲信号Vpre比第二外部脉冲信号Vpost晚到达的情况下,当第十九N型晶体管NM19栅极上的电压大于第十八N型晶体管NM18的栅极上的电压时,在第一外部脉冲信号Vpre到来的瞬间,OTA突触电路30通过第二传输管TG2向存储电容CW输出正向的电流,突触权值增加;当第十九N型晶体管NM19栅极上的电压小于第十八N型晶体管NM18的栅极上的电压时,在第一外部脉冲信号Vpre到来的瞬间,OTA突触电路30通过第二传输管TG2向存储电容CW输出负向的电流,突触权值减小。According to the positive and negative sum of the voltage difference between the gates of the eighteenth N-type transistor and the nineteenth N-type transistor in the OTA synapse circuit 30, the step of determining the positive and negative sum of the current output by the OTA synapse circuit includes: When the first external pulse signal Vpre arrives later than the second external pulse signal Vpost , when the voltage on the gate of the nineteenth N-type transistor NM19 is greater than the voltage on the gate of the eighteenth N-type transistor NM18, At the moment when the first external pulse signal V pre arrives, the OTA synaptic circuit 30 outputs a positive current to the storage capacitor C W through the second transmission tube TG2, and the synaptic weight increases; when the gate of the nineteenth N-type transistor NM19 When the voltage on the gate of the eighteenth N-type transistor NM18 is less than the voltage on the gate of the eighteenth N-type transistor NM18, at the moment when the first external pulse signal V pre arrives, the OTA synapse circuit 30 outputs a negative direction to the storage capacitor C W through the second transmission transistor TG2 current, the synaptic weight decreases.

本实施例将第一控制信号VCTR1分别施加至时间窗口产生电路10中的第七N型晶体管NM7、第十N型晶体管NM10以及第三P型晶体管PM3的栅极;将第一控制信号的互补信号VCTR1~施加至时间窗口产生电路10中的第八N型晶体管NM8的栅极。将第二控制信号VCTR2分别施加至开关切换电路20中的第十一N型晶体管NM11、第十二N型晶体管NM2的栅极;将第二控制信号的互补信号VCTR2~施加至开关切换电路20中的第十三N型晶体管NM13和第十四N型晶体管NM14的栅极。将第三控制信号VCTR3分别施加至开关切换电路20中的第四P型晶体管PM4和第十五N型晶体管NM15的栅极。将第一至第三控制信号的对称信号VCTR1B、VCTR2B、VCTR3B及其互补信号分别施加至与图1中Δt>0电路部分对称的Δt<0电路部分的相应位置。In this embodiment, the first control signal V CTR1 is respectively applied to the gates of the seventh N-type transistor NM7, the tenth N-type transistor NM10, and the third P-type transistor PM3 in the time window generating circuit 10; The complementary signal V CTR1 ˜ is applied to the gate of the eighth N-type transistor NM8 in the time window generation circuit 10 . The second control signal V CTR2 is respectively applied to the gates of the eleventh N-type transistor NM11 and the twelfth N-type transistor NM2 in the switch switching circuit 20; the complementary signal V CTR2~ of the second control signal is applied to the switch switch Gates of the thirteenth N-type transistor NM13 and the fourteenth N-type transistor NM14 in the circuit 20 . The third control signal V CTR3 is respectively applied to the gates of the fourth P-type transistor PM4 and the fifteenth N-type transistor NM15 in the switching circuit 20 . Symmetrical signals V CTR1B , V CTR2B , V CTR3B and their complementary signals of the first to third control signals are respectively applied to corresponding positions of the Δt<0 circuit part symmetrical to the Δt>0 circuit part in FIG. 1 .

在本实施例中每一种控制信号都有其特定的含义。第一控制信号VCTR1决定了时间窗口产生电路10输出的窗口类型。第二控制信号VCTR2及第三控制信号VCTR3决定了权值更新的方向及OTA突触电路30输入端口的参考电压。具体地,当第一控制信号VCTR1为低电平时,时间窗口产生电路10输出指数下降波形的窗口电压;当第一控制信号VCTR1为高电平时,时间窗口产生电路10输出具有返回特征波形的窗口电压。当第二控制电压VCTR2为高电平时,若时间窗口电压经采样在输出端口Vedcp上输出的电压大于VCTR3确定的参考电压,则权值更新方向为正;若时间窗口电压经采样在输出端口Vedcp上输出的电压小于VCTR3确定的参考电压,则权值更新方向为负。当第二控制电压VCTR2为低电平时,若时间窗口电压经采样在输出端口Vedcp上输出的电压大于VCTR3确定的参考电压,则权值更新方向为负;若时间窗口电压经采样在输出端口Vedcp上输出的电压小于VCTR3确定的参考电压,则权值更新方向为正。当第三控制信号VCTR3为高电平时,OTA突触电路的输入端口电压为第三公共参考电压VCM3,始终比时间窗口电压经采样在输出端口Vedcp上输出的电压小,突触更新为单方向,具体方向根据上文描述决定。当第三控制信号VCTR3为低电平时,OTA突触电路输入端口电压为第四公共参考电压VCM4,处于时间窗口电压经采样在输出端口Vedcp上输出的电压值的范围之内,突触更新既有正向也有负向,具体方向由上文描述决定。第一至第三控制信号的对称信号VCTR1B、VCTR2B、VCTR3B的作用与前文描述的第一至第三控制信号分别对应相同。表1示出了第一至第三控制信号及其对称信号的八种组合方式,可实现八种类型的突触可塑性算法。In this embodiment, each control signal has its specific meaning. The first control signal V CTR1 determines the window type output by the time window generating circuit 10 . The second control signal V CTR2 and the third control signal V CTR3 determine the direction of weight updating and the reference voltage of the input port of the OTA synapse circuit 30 . Specifically, when the first control signal V CTR1 is at a low level, the time window generating circuit 10 outputs a window voltage of an exponentially falling waveform; when the first control signal V CTR1 is at a high level, the time window generating circuit 10 outputs a waveform with a return characteristic window voltage. When the second control voltage V CTR2 is at a high level, if the time window voltage is sampled and the voltage output on the output port V edcp is greater than the reference voltage determined by V CTR3 , the weight update direction is positive; if the time window voltage is sampled at If the voltage output on the output port V edcp is lower than the reference voltage determined by V CTR3 , the weight updating direction is negative. When the second control voltage V CTR2 is at a low level, if the time window voltage is sampled and the voltage output on the output port V edcp is greater than the reference voltage determined by V CTR3 , the weight update direction is negative; if the time window voltage is sampled at If the voltage output from the output port V edcp is lower than the reference voltage determined by V CTR3 , the weight update direction is positive. When the third control signal V CTR3 is at a high level, the voltage at the input port of the OTA synapse circuit is the third common reference voltage VCM3, which is always smaller than the voltage output on the output port V edcp by sampling the time window voltage, and the synapse is updated as Single direction, the specific direction is determined according to the above description. When the third control signal V CTR3 is at a low level, the voltage at the input port of the OTA synaptic circuit is the fourth common reference voltage VCM4, which is within the range of the voltage value output on the output port V edcp after the time window voltage is sampled, and the synaptic Updates can be both positive and negative, and the specific direction is determined by the above description. The functions of the symmetrical signals V CTR1B , V CTR2B , and V CTR3B of the first to third control signals are the same as those of the first to third control signals described above. Table 1 shows eight combinations of the first to third control signals and their symmetry signals, which can realize eight types of synaptic plasticity algorithms.

表1第一至第三控制信号及其对称信号的八种组合方式Table 1 Eight combinations of the first to third control signals and their symmetrical signals

编号serial number <![CDATA[V<sub>CTR1</sub>]]><![CDATA[V<sub>CTR1</sub>]]> <![CDATA[V<sub>CTR2</sub>]]><![CDATA[V<sub>CTR2</sub>]]> <![CDATA[V<sub>CTR3</sub>]]><![CDATA[V<sub>CTR3</sub>]]> <![CDATA[V<sub>CTR1B</sub>]]><![CDATA[V<sub>CTR1B</sub>]]> <![CDATA[V<sub>CTR2B</sub>]]><![CDATA[V<sub>CTR2B</sub>]]> <![CDATA[V<sub>CTR3B</sub>]]><![CDATA[V<sub>CTR3B</sub>]]> 11 00 11 11 00 00 11 22 11 11 00 11 11 00 33 00 11 00 00 11 00 44 00 00 11 00 00 11 55 00 00 11 00 11 11 66 00 11 00 00 11 11

77 11 11 00 00 00 11 88 00 11 11 00 11 11

令第一控制信号VCTR1及第一控制信号的对称信号VCTR1B为低电平,第二控制信号VCTR2为高电平,第二控制信号的对称信号VCTR2B为低电平,第三控制信号VCTR3及第三控制信号的对称信号为高电平,实现图6所示的学习算法。横坐标为Δt,纵坐标为突触权值的变化量。Let the first control signal V CTR1 and the symmetrical signal V CTR1B of the first control signal be low level, the second control signal V CTR2 be high level, the symmetrical signal V CTR2B of the second control signal be low level, and the third control signal The signal V CTR3 and the symmetrical signal of the third control signal are at high level to realize the learning algorithm shown in FIG. 6 . The abscissa is Δt, and the ordinate is the variation of synaptic weights.

在本实施例中,第一控制信号VCTR1及其对称信号VCTR1B为低电平,则时间窗口产生电路10及其对称电路均输出指数下降波形的窗口电压。第二控制信号VCTR2为高电平,第二控制信号的对称信号VCTR2B为低电平,时间窗口电压经过采样后的电压输出端口Vedcp及其对称端口VedcpB分别连接到OTA突触电路30的第一正输入端口OTAP、第二负输入端口OTANB。外部参考电压的端口VREF及其对称端口VREFB分别连接到OTA突触电路30的第一负输入端口OTAN、第二正输入端口OTAPB。第三控制信号VCTR3及其对称信号VCTR3B均为高电平,外部参考电压的端口VREF及其对称端口VREFB均与第三公共参考电压VCM3连接。此时,在第一脉冲信号Vpre先于第二脉冲信号Vpost到来,即Δt>0的情况下,突触权值更新方向为正,且两者时间差Δt越小,突触权值更新幅度越大;在第一脉冲信号Vpre后于第二脉冲信号Vpost到来,即Δt<0的情况下,突触权值更新方向为负,且两者时间差t越小权值更新幅度越大,如图6所示。In this embodiment, when the first control signal V CTR1 and its symmetry signal V CTR1B are at low level, the time window generating circuit 10 and its symmetry circuit both output a window voltage of an exponentially decreasing waveform. The second control signal V CTR2 is high level, the symmetrical signal V CTR2B of the second control signal is low level, and the voltage output port V edcp and its symmetrical port V edcpB after the time window voltage is sampled are respectively connected to the OTA synapse circuit 30's first positive input port OTAP and second negative input port OTANB. The port V REF of the external reference voltage and its symmetrical port V REFB are respectively connected to the first negative input port OTAN and the second positive input port OTAPB of the OTA synapse circuit 30 . Both the third control signal V CTR3 and its symmetrical signal V CTR3B are at high level, and the port V REF of the external reference voltage and its symmetrical port V REFB are both connected to the third common reference voltage VCM3 . At this time, when the first pulse signal V pre arrives before the second pulse signal V post , that is, Δt>0, the synaptic weight update direction is positive, and the smaller the time difference Δt between the two, the synaptic weight update The larger the amplitude is; when the first pulse signal V pre arrives after the second pulse signal V post , that is, in the case of Δt<0, the synaptic weight update direction is negative, and the smaller the time difference t between the two, the greater the weight update range. large, as shown in Figure 6.

令第一控制信号VCTR1及第一控制信号的对称信号VCTR1B为高电平,第二控制信号VCTR2及第二控制信号的对称信号VCTR2B为低电平,第三控制信号VCTR3及第三控制信号的对称信号VCTR3B为低电平,实现图7所示的学习算法。Make the first control signal V CTR1 and the symmetry signal V CTR1B of the first control signal high, the second control signal V CTR2 and the symmetry signal V CTR2B of the second control signal are low, and the third control signal V CTR3 and The symmetrical signal V CTR3B of the third control signal is at a low level to implement the learning algorithm shown in FIG. 7 .

在本实施例中,第一控制信号VCTR1及其对称信号VCTR1B为高电平,则时间窗口产生电路10及其对称电路均输出具有返回特征波形的窗口电压。第二控制信号VCTR2及其对称信号VCTR2B为高电平,时间窗口电压经过采样后的电压输出端口Vedcp及其对称端口VedcpB分别连接到OTA突触电路30的第一正输入端口OTAP、第二正输入端口OTAPB。外部参考电压的端口VREF及其对称端口VREFB分别连接到第一负输入端口OTAN、第二负输入端口OTANB。第三控制信号VCTR3及其对称信号VCTR3B均为低电平,外部参考电压的端口VREF及其对称端口VREFB均与第四公共参考电压VCM4连接。此时,在第一脉冲信号Vpre先于第二脉冲信号Vpost到来,即Δt>0的情况下,若OTA突触电路30的第一正输入端口OTAP上的电压大于OTA突触电路30的第一负输入端口OTAN上的电压,突触权值更新方向为正,反之为负,且两者差值越大,权值更新幅度越大。在第一脉冲信号Vpre后于第二脉冲信号Vpost到来,即Δt<0的情况下,若第二正输入端口OTAPB上的电压大于第二负输入端口OTANB上的电压,突触权值更新方向为正,反之为负,且两者差值越大,权值更新幅度越大,如图7所示。In this embodiment, the first control signal V CTR1 and its symmetry signal V CTR1B are at high level, then the time window generating circuit 10 and its symmetry circuit both output a window voltage with a return characteristic waveform. The second control signal V CTR2 and its symmetrical signal V CTR2B are at high level, and the voltage output port V edcp and its symmetrical port V edcpB after the time window voltage is sampled are respectively connected to the first positive input port OTAP of the OTA synapse circuit 30 , the second positive input port OTAPB. The port V REF of the external reference voltage and its symmetrical port V REFB are respectively connected to the first negative input port OTAN and the second negative input port OTANB. Both the third control signal V CTR3 and its symmetrical signal V CTR3B are at low level, and the port V REF of the external reference voltage and its symmetrical port V REFB are both connected to the fourth common reference voltage VCM4 . At this time, when the first pulse signal V pre arrives before the second pulse signal V post , that is, Δt>0, if the voltage on the first positive input port OTAP of the OTA synapse circuit 30 is greater than that of the OTA synapse circuit 30 The voltage on the first negative input port OTAN of , the synaptic weight update direction is positive, otherwise it is negative, and the greater the difference between the two, the greater the weight update range. When the first pulse signal V pre arrives after the second pulse signal V post , that is, in the case of Δt<0, if the voltage on the second positive input port OTAPB is greater than the voltage on the second negative input port OTANB, the synaptic weight The update direction is positive, otherwise it is negative, and the greater the difference between the two, the greater the weight update range, as shown in Figure 7.

令第一控制信号VCTR1及第一控制信号的对称信号VCTR1B为低电平,第二控制信号VCTR2及第二控制信号的对称信号VCTR2B为高电平,第三控制信号VCTR3及第三控制信号的对称信号VCTR3B为低电平,实现图8所示的学习算法。Make the first control signal V CTR1 and the symmetry signal V CTR1B of the first control signal low, the second control signal V CTR2 and the symmetry signal V CTR2B of the second control signal are high, and the third control signal V CTR3 and The symmetrical signal V CTR3B of the third control signal is at a low level to implement the learning algorithm shown in FIG. 8 .

在本实施例中,第一控制信号VCTR1及其对称信号VCTR1B为低电平,则时间窗口产生电路10及其对称电路均输出指数下降波形的窗口电压。第二控制信号VCTR2及其对称信号VCTR2B为高电平,时间窗口电压经过采样后的电压输出端口Vedcp及其对称端口VedcpB分别连接到OTA突触电路30的第一正输入端口OTAP、第二正输入端口OTAPB,外部参考电压的端口VREF及其对称端口VCREFB分别连接到OTA突触电路30的第一负输入端口OTAN、第二负输入端口OTANB。第三控制信号VCTR3及其对称信号VCTR3B均为低电平,外部参考电压的端口VREF及其对称端口VREFB均与第四公共参考电压VCM4连接。此时,在第一脉冲信号Vpre先于第二脉冲信号Vpost到来,即Δt>0的情况下,若第一正输入端口OTAP上的电压大于第一负输入端口OTAN上的电压,突触权值更新方向为正,反之为负,且两者差值越大,权值更新幅度越大。在第一脉冲信号Vpre后于第二脉冲信号Vpost到来,即Δt<0的情况下,若第二正输入端口OTAP上的电压大于第二负输入端口OTAN上的电压,突触权值更新方向为正,反之为负,且两者差值越大,权值更新幅度越大,如图8所示。In this embodiment, when the first control signal V CTR1 and its symmetry signal V CTR1B are at low level, the time window generating circuit 10 and its symmetry circuit both output a window voltage of an exponentially decreasing waveform. The second control signal V CTR2 and its symmetrical signal V CTR2B are at high level, and the voltage output port V edcp and its symmetrical port V edcpB after the time window voltage is sampled are respectively connected to the first positive input port OTAP of the OTA synapse circuit 30 , the second positive input port OTAPB, the external reference voltage port V REF and its symmetrical port V CREFB are respectively connected to the first negative input port OTAN and the second negative input port OTANB of the OTA synapse circuit 30 . Both the third control signal V CTR3 and its symmetrical signal V CTR3B are at low level, and the port V REF of the external reference voltage and its symmetrical port V REFB are both connected to the fourth common reference voltage VCM4 . At this time, when the first pulse signal V pre arrives before the second pulse signal V post , that is, Δt>0, if the voltage on the first positive input port OTAP is greater than the voltage on the first negative input port OTAN, the burst The update direction of the weight value is positive, otherwise it is negative, and the greater the difference between the two, the greater the update range of the weight value. When the first pulse signal V pre arrives after the second pulse signal V post , that is, in the case of Δt<0, if the voltage on the second positive input port OTAP is greater than the voltage on the second negative input port OTAN, the synaptic weight The update direction is positive, otherwise it is negative, and the greater the difference between the two, the greater the weight update range, as shown in Figure 8.

令第一控制信号VCTR1及第一控制信号的对称信号VCTR1B为低电平,第二控制信号VCTR2及第二控制信号的对称信号VCTR2B为低电平,第三控制信号VCTR3及第三控制信号的对称信号VCTR3B为高电平,实现图9所示的学习算法。Make the first control signal V CTR1 and the symmetry signal V CTR1B of the first control signal low, the second control signal V CTR2 and the symmetry signal V CTR2B of the second control signal are low, and the third control signal V CTR3 and The symmetrical signal V CTR3B of the third control signal is at a high level to implement the learning algorithm shown in FIG. 9 .

在本实施例中,第一控制信号VCTR1及其对称信号VCTR1B为低电平,则时间窗口产生电路10及其对称电路均输出指数下降波形的窗口电压。第二控制信号VCTR2及其对称信号VCTR2B为低电平,时间窗口电压经过采样后的电压输出端口Vedcp及其对称端口VedcpB分别连接到OTA突触电路30的第一负输入端口OTAN、第二负输入短偶OTANB。外部参考电压的端口VREF及其对称端口VREFB分别连接到OTA突触电路30的第一正输入端口OTAP、第二正输入端口OTAPB。第三控制信号VCTR3及其对称信号VCTR3B均为高电平,外部参考电压的端口VREF及其对称端口VREFB均与第三公共参考电压VCM3连接。此时,在第一脉冲信号Vpre先于第二脉冲信号Vpost到来,即Δt>0或在第一脉冲信号Vpre后于第二脉冲信号Vpost到来,即Δt<0的情况下,突触权值更新方向为负,且时间差Δt越大,权值更新幅度越大,如图9所示。In this embodiment, when the first control signal V CTR1 and its symmetry signal V CTR1B are at low level, the time window generating circuit 10 and its symmetry circuit both output a window voltage of an exponentially decreasing waveform. The second control signal V CTR2 and its symmetrical signal V CTR2B are at low level, and the voltage output port V edcp and its symmetrical port V edcpB after the time window voltage is sampled are respectively connected to the first negative input port OTAN of the OTA synaptic circuit 30 , The second negative input short even OTANB. The port V REF of the external reference voltage and its symmetrical port V REFB are respectively connected to the first positive input port OTAP and the second positive input port OTAPB of the OTA synapse circuit 30 . Both the third control signal V CTR3 and its symmetrical signal V CTR3B are at high level, and the port V REF of the external reference voltage and its symmetrical port V REFB are both connected to the third common reference voltage VCM3 . At this time, when the first pulse signal V pre arrives before the second pulse signal V post , that is, Δt>0 or comes after the first pulse signal V pre , that is, when the second pulse signal V post arrives, that is, Δt<0, The update direction of synaptic weights is negative, and the larger the time difference Δt, the larger the update range of the weights, as shown in Figure 9.

令第一控制信号VCTR1及第一控制信号的对称信号VCTR1B为低电平,第二控制信号VCTR2为低电平,第二控制信号的对称信号VCTR2B为高电平,第三控制信号VCTR3及第三控制信号的对称信号VCTR3B为高电平,实现图10所示的学习算法。Let the first control signal V CTR1 and the symmetrical signal V CTR1B of the first control signal be at low level, the second control signal V CTR2 be at low level, the symmetrical signal V CTR2B of the second control signal be at high level, and the third control signal V CTR2B be at high level. The signal V CTR3 and the symmetry signal V CTR3B of the third control signal are at high level to implement the learning algorithm shown in FIG. 10 .

在本实施例中,第一控制信号VCTR1及其对称信号VCTR1B为低电平,则时间窗口产生电路10及其对称电路均输出指数下降波形的窗口电压。第二控制信号VCTR2为低电平,第二控制信号的对称信号VCTR2B为高电平,时间窗口电压经过采样后的电压输出端口Vedcp及其对称端口VedcpB分别连接到OTA突触电路30的第一负输入端口OTAN,第二正输入端口OTAPB。外部参考电压的端口VREF对称端口VREFB分别连接到OTA突触电路30的第一正输入端口OTAP、第二负输入端口OTANB。第三控制信号VCTR3及其对称信号VCTR3B均为高电平,外部参考电压的端口VREF及其对称端口VREFB均与第三公共参考电压VCM3连接。此时,在第一脉冲信号Vpre先于第二脉冲信号Vpost到来,即Δt>0的情况下,突触权值更新方向为负,且两者时间差Δt越小权值更新幅度越大;在第一脉冲信号Vpre后于第二脉冲信号Vpost到来,即Δt<0的情况下,突触权值更新方向为正,且两者时间差Δt越小权值更新幅度越大,如图10所示。In this embodiment, when the first control signal V CTR1 and its symmetry signal V CTR1B are at low level, the time window generating circuit 10 and its symmetry circuit both output a window voltage of an exponentially decreasing waveform. The second control signal V CTR2 is low level, the symmetrical signal V CTR2B of the second control signal is high level, and the voltage output port V edcp and its symmetrical port V edcpB after the time window voltage is sampled are respectively connected to the OTA synapse circuit 30 of the first negative input port OTAN, the second positive input port OTAPB. The port V REF of the external reference voltage and the symmetrical port V REFB are respectively connected to the first positive input port OTAP and the second negative input port OTANB of the OTA synapse circuit 30 . Both the third control signal V CTR3 and its symmetrical signal V CTR3B are at high level, and the port V REF of the external reference voltage and its symmetrical port V REFB are both connected to the third common reference voltage VCM3 . At this time, when the first pulse signal V pre arrives before the second pulse signal V post , that is, Δt>0, the update direction of synaptic weights is negative, and the smaller the time difference Δt between the two, the larger the weight update range ; When the second pulse signal V post arrives after the first pulse signal V pre , that is, in the case of Δt<0, the synaptic weight update direction is positive, and the smaller the time difference Δt between the two, the larger the weight update range, as shown in Figure 10 shows.

令第一控制信号VCTR1及第一控制信号的对称信号VCTR1B为低电平,第二控制信号VCTR2及第二控制信号的对称信号VCTR2B为高电平,第三控制信号VCTR3为低电平,第三控制信号的对称信号VCTR3B为高电平,实现图11所示的学习算法。Make the first control signal V CTR1 and the symmetry signal V CTR1B of the first control signal low, the second control signal V CTR2 and the symmetry signal V CTR2B of the second control signal are high, and the third control signal V CTR3 is low level, and the symmetrical signal V CTR3B of the third control signal is high level, realizing the learning algorithm shown in FIG. 11 .

在本实施例中,第一控制信号VCTR1及其对称信号VCTR1B为低电平,则时间窗口产生电路10及其对称电路均输出指数下降波形的窗口电压。第二控制信号VCTR2及其对称信号VCTR2B为高电平,时间窗口电压经过采样后的电压输出端口Vedcp及其对称端口VedcpB分别连接到OTA突触电路30的第一正输入端口OTAP、第二正输入端口OTAPB。外部参考电压的端口VREF及其对称端口VREFB分别连接到OTA突触电路30的第一负输入端口OTAP、第二负输入端口OTAPB。第三控制信号VCTR3为低电平,第三控制信号的对称信号VCTR3B为高电平,外部参考电压的端口VREF及其对称端口VREFB分别与第四公共参考电压VCM4、第三公共参考电压VCM3连接。此时,在第一脉冲信号Vpre先于第二脉冲信号Vpost到来,即Δt>0的情况下,若第一正输入端口OTAP上的电压大于第一负输入端口OTAN上的电压,则突触权值更新方向为正,反之为负,且两者时间差Δt越小权值更新幅度越大。在第一脉冲信号Vpre后于第二脉冲信号Vpost到来,即Δt<0的情况下,突触权值更新方向为正,且两者时间差Δt越小权值更新幅度越大,如图11所示。In this embodiment, when the first control signal V CTR1 and its symmetry signal V CTR1B are at low level, the time window generating circuit 10 and its symmetry circuit both output a window voltage of an exponentially decreasing waveform. The second control signal V CTR2 and its symmetrical signal V CTR2B are at high level, and the voltage output port V edcp and its symmetrical port V edcpB after the time window voltage is sampled are respectively connected to the first positive input port OTAP of the OTA synapse circuit 30 , the second positive input port OTAPB. The port V REF of the external reference voltage and its symmetrical port V REFB are respectively connected to the first negative input port OTAP and the second negative input port OTAPB of the OTA synapse circuit 30 . The third control signal V CTR3 is low level, the symmetrical signal V CTR3B of the third control signal is high level, the port V REF of the external reference voltage and its symmetrical port V REFB are connected with the fourth common reference voltage VCM4 and the third common reference voltage VCM4 respectively. Reference voltage VCM3 connection. At this time, when the first pulse signal V pre arrives before the second pulse signal V post , that is, Δt>0, if the voltage on the first positive input port OTAP is greater than the voltage on the first negative input port OTAN, then The update direction of the synaptic weight is positive, otherwise it is negative, and the smaller the time difference Δt between the two is, the larger the update range of the weight is. When the first pulse signal V pre comes after the second pulse signal V post , that is, in the case of Δt<0, the synaptic weight update direction is positive, and the smaller the time difference Δt between the two, the larger the weight update range, as shown in the figure 11.

令第一控制信号VCTR1为高电平,第一控制信号的对称信号VCTR1B为低电平,第二控制信号VCTR2为高电平,第二控制信号的对称信号VCTR2B为低电平,第三控制信号VCTR3为低电平,第三控制信号的对称信号VCTR3B为高电平,实现图12所示的学习算法。Let the first control signal V CTR1 be high level, the symmetrical signal V CTR1B of the first control signal be low level, the second control signal V CTR2 be high level, and the symmetrical signal V CTR2B of the second control signal be low level , the third control signal V CTR3 is at low level, and the symmetrical signal V CTR3B of the third control signal is at high level, so as to realize the learning algorithm shown in FIG. 12 .

在本实施例中,第一控制信号VCTR1为高电平,第一控制信号的对称信号VCTR1B为低电平,则时间窗口产生电路10及其对称电路分别输出具有返回特征波形的窗口电压和指数下降波形的窗口电压。第二控制信号VCTR2为高电平,第二控制信号的对称信号VCTR2B为低电平,时间窗口电压经过采样后的电压输出端口Vedcp及其对称端口VedcpB分别连接到OTA突触电路30的正输入端口OTAP、负输入端口OTANB。外部参考电压的端口VREF及其对称端口VREFB分别连接到OTA突触电路30的第一负输入端口OTAN、第二正输入端口OTAPB。第三控制信号VCTR3为低电平,第三控制信号的对称信号VCTR3B为高电平,外部参考电压的端口VREF及其对称端口VREFB分别与第四公共参考电压VCM4、第三公共参考电压VCM3连接。此时,在第一脉冲信号Vpre先于第二脉冲信号Vpost到来,即Δt>0的情况下,若第一正输入端口OTAP上的电压大于第一负输入端口OTAN上的电压,则突触权值更新方向为正,反之为负,且两者时间差Δt越小权值更新幅度越大。在第一脉冲信号Vpre后于第二脉冲信号Vpost到来,即Δt<0的情况下,突触权值更新方向为负,且两者时间差Δt越小权值更新幅度越大,如图12所示。In this embodiment, the first control signal V CTR1 is at a high level, and the symmetrical signal V CTR1B of the first control signal is at a low level, then the time window generating circuit 10 and its symmetrical circuit respectively output window voltages with return characteristic waveforms and the window voltage of the exponentially falling waveform. The second control signal V CTR2 is high level, the symmetrical signal V CTR2B of the second control signal is low level, and the voltage output port V edcp and its symmetrical port V edcpB after the time window voltage is sampled are respectively connected to the OTA synapse circuit 30 positive input port OTAP, negative input port OTANB. The port V REF of the external reference voltage and its symmetrical port V REFB are respectively connected to the first negative input port OTAN and the second positive input port OTAPB of the OTA synapse circuit 30 . The third control signal V CTR3 is low level, the symmetrical signal V CTR3B of the third control signal is high level, the port V REF of the external reference voltage and its symmetrical port V REFB are connected with the fourth common reference voltage VCM4 and the third common reference voltage VCM4 respectively. Reference voltage VCM3 connection. At this time, when the first pulse signal V pre arrives before the second pulse signal V post , that is, Δt>0, if the voltage on the first positive input port OTAP is greater than the voltage on the first negative input port OTAN, then The update direction of the synaptic weight is positive, otherwise it is negative, and the smaller the time difference Δt between the two is, the larger the update range of the weight is. When the first pulse signal V pre arrives after the second pulse signal V post , that is, in the case of Δt<0, the update direction of the synaptic weight is negative, and the smaller the time difference Δt between the two, the larger the weight update range, as shown in the figure 12 shown.

令第一控制信号VCTR1及第一控制信号的对称信号VCTR1B为低电平,第二控制信号VCTR2及第二控制信号的对称信号VCTR2B为高电平,第三控制信号VCTR3及第三控制信号的对称信号VCTR3B为高电平,实现图13所示的学习算法。Make the first control signal V CTR1 and the symmetry signal V CTR1B of the first control signal low, the second control signal V CTR2 and the symmetry signal V CTR2B of the second control signal are high, and the third control signal V CTR3 and The symmetry signal V CTR3B of the third control signal is at a high level to implement the learning algorithm shown in FIG. 13 .

在本实施例中,第一控制信号VCTR1及其对称信号VCTR1B为低电平,则时间窗口产生电路10及其对称电路均输出指数下降波形的窗口电压。第二控制信号VCTR2及其对称信号VCTR2B为高电平,时间窗口电压经过采样后的电压输出端口Vedcp及其对称端口VedcpB分别连接到OTA突触电路30的正输入端口OTAP、正输入端口OTAPB。外部参考电压的端口VREF及其对称端口VREFB分别连接到OTA突触电路30的第一负输入端口OTAN、第二负输入端口OTANB。第三控制信号VCTR3及其对称信号VCTR3B为高电平,外部参考电压的端口VREF及其对称端口VREFB与第三公共参考电压VCM3连接。此时,在第一脉冲信号Vpre先于第二脉冲信号Vpost到来,即Δt>0或在第一脉冲信号Vpre后于第二脉冲信号Vpost到来,即Δt<0的情况下,突触权值更新方向均为正,且两者时间差Δt越小权值更新幅度越大,如图13所示。In this embodiment, when the first control signal V CTR1 and its symmetry signal V CTR1B are at low level, the time window generating circuit 10 and its symmetry circuit both output a window voltage of an exponentially decreasing waveform. The second control signal V CTR2 and its symmetrical signal V CTR2B are at high level, and the voltage output port V edcp and its symmetrical port V edcpB after the time window voltage is sampled are respectively connected to the positive input port OTAP, the positive input port of the OTA synapse circuit 30 Input port OTAPB. The port V REF of the external reference voltage and its symmetrical port V REFB are respectively connected to the first negative input port OTAN and the second negative input port OTANB of the OTA synapse circuit 30 . The third control signal V CTR3 and its symmetrical signal V CTR3B are at high level, and the port V REF of the external reference voltage and its symmetrical port V REFB are connected to the third common reference voltage VCM3 . At this time, when the first pulse signal V pre arrives before the second pulse signal V post , that is, Δt>0 or comes after the first pulse signal V pre , that is, when the second pulse signal V post arrives, that is, Δt<0, The direction of synaptic weight update is positive, and the smaller the time difference Δt between the two is, the larger the weight update range is, as shown in Figure 13.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (9)

1. A circuit of a multi-modal synaptic time-dependent plasticity algorithm, comprising a time window generating circuit, a switching circuit, an OTA synaptic circuit, a symmetrical circuit of the time window generating circuit and a symmetrical circuit of the switching circuit;
the time window generating circuit is used for outputting time window sampling voltage under the action of the first control signal and the external voltage;
the switch switching circuit is used for switching an input port of the OTA synaptic circuit connected with the time window sampling voltage and an external reference voltage;
the OTA synaptic circuit is used for calculating the variation of synaptic weight under the action of the sampling voltage of the time window and the external reference voltage when the first external pulse signal and the second external pulse signal arrive, and storing the variation in the form of charge on a storage capacitor connected with an output port of the OTA synaptic circuit;
The OTA protruding circuit comprises fifth to eighth P-type transistors, sixteenth to twenty-fifth N-type transistors, a first transmission tube, a second transmission tube and a storage capacitor;
the sources of the fifth to eighth P-type transistors are connected with an external power supply voltage;
the grid electrode of the fifth P type transistor is connected with the grid electrode of the sixth P type transistor, the drain electrode of the sixteenth N type transistor and the drain electrode of the eighteenth N type transistor, and the drain electrode of the fifth P type transistor is connected with the drain electrode and the grid electrode of the twenty second N type transistor and the grid electrode of the twenty fifth N type transistor;
the grid electrode of the seventh P type transistor is connected with the grid electrode of the eighth P type transistor, the drain electrode of the seventeenth P type transistor and the drain electrode of the nineteenth N type transistor;
the drain electrode of the eighth P-type transistor is connected with the drain electrode of the twenty-fifth N-type transistor, the input end of the first transmission tube and the input end of the second transmission tube;
a source of the sixteenth N-type transistor is connected to a source of the seventeenth N-type transistor and a drain of the twentieth N-type transistor;
the source electrode of the eighteenth N-type transistor is connected with the source electrode of the nineteenth N-type transistor and the drain electrode of the twenty first N-type transistor;
the grid electrode of the twenty-N type transistor is connected with a second external pulse signal, and the source electrode of the twenty-N type transistor is connected with the drain electrode of the twenty-third N type transistor;
The grid electrode of the twenty-first N-type transistor is connected with a first external pulse signal, and the source electrode of the twenty-first N-type transistor is connected with the drain electrode of the twenty-fourth N-type transistor;
the grid electrode of the twenty-third N-type transistor is connected with the grid electrode of the twenty-fourth N-type transistor and a fourth bias voltage;
the source electrode of the twenty-second to twenty-fifth N-type transistor is connected with an external ground signal;
the positive electrode of the first transmission tube is connected with the second external pulse signal, the negative electrode of the first transmission tube is connected with the inverting signal of the second external pulse signal, and the output of the first transmission tube is connected with the output of the second transmission tube and the first electrode of the storage capacitor;
the positive electrode of the second transmission tube is connected with the first external pulse signal, and the negative electrode of the second transmission tube is connected with the inverting signal of the first external pulse signal;
the second pole of the storage capacitor is in signal connection with the external ground.
2. The circuit of the multi-modal synaptic time-dependent plasticity algorithm as claimed in claim 1, wherein the time window generating circuit comprises first to tenth N-type transistors, first to third P-type transistors, first capacitor, second capacitor and comparator;
The source electrode of the first P-type transistor is connected with a port of a fourth common reference voltage, the grid electrode of the first P-type transistor is connected with a first bias voltage for controlling charging current, and the drain electrode of the first P-type transistor is connected with the source electrode of the second P-type transistor;
the grid electrode of the second P-type transistor is connected with the grid electrode of the second N-type transistor and the return signal port, and the drain electrode of the second P-type transistor is connected with the drain electrode of the second N-type transistor, the source electrode of the first N-type transistor, the drain electrode of the sixth N-type transistor and the first electrode of the first capacitor;
the source electrode of the third P-type transistor is connected with an external power supply voltage, and the grid electrode of the third P-type transistor is connected with the grid electrode of the tenth N-type transistor, the return signal port and the first control signal;
the drain electrode of the first N-type transistor is connected with the external power supply voltage, and the grid electrode of the first N-type transistor is connected with the first external pulse signal;
the source electrode of the second N-type transistor is connected with the drain electrode of the third N-type transistor;
the grid electrode of the third N-type transistor is connected with a second bias voltage for controlling leakage current, and the source electrode of the third N-type transistor is connected with a second pole of the first capacitor and a second common reference voltage;
The drain electrode of the fourth N-type transistor is connected with the external power supply voltage, the grid electrode of the fourth N-type transistor is connected with the first external pulse signal, and the source electrode of the fourth N-type transistor is connected with the drain electrode of the fifth N-type transistor, the first electrode of the second capacitor and the source electrode of the seventh N-type transistor;
the grid electrode of the fifth N-type transistor is connected with a third bias voltage for controlling leakage current, and the source electrode of the fifth N-type transistor is connected with a second electrode of the second capacitor and a first common reference voltage;
the grid electrode of the sixth N-type transistor is connected with the second external pulse signal, and the source electrode of the sixth N-type transistor is connected with the source electrode of the ninth N-type transistor and the output port of the time window sampling voltage;
the grid electrode of the seventh N-type transistor is connected with the first control signal voltage, and the drain electrode of the seventh N-type transistor is connected with the drain electrode of the eighth N-type transistor and the positive electrode of the comparator;
the grid electrode of the eighth N-type transistor is connected with the inverting signal of the first control signal, and the source electrode of the eighth N-type transistor is connected with an external ground signal;
the drain electrode of the ninth N-type transistor is connected with the port of the external reference voltage, and the grid electrode of the ninth N-type transistor is connected with the inverting signal of the second external pulse signal;
The drain electrode of the tenth N-type transistor is connected with the output end of the comparator;
the negative electrode input port of the comparator is connected with an external reference voltage of the comparator;
the external voltage comprises a first bias voltage, a second bias voltage and a third bias voltage;
the return signal port is used for returning signals generated by the second capacitor under the action of the third bias voltage, the first control signal and complementary signals of the first control signal.
3. The circuit of the multi-modal synaptic time-dependent plasticity algorithm as claimed in claim 1, wherein the switching circuit comprises a fourth P-type transistor and eleventh to fifteenth N-type transistors;
the drain electrode of the fourth P-type transistor is connected with the source electrode of the fifteenth N-type transistor and a port of external reference voltage, the grid electrode of the fourth P-type transistor is connected with the grid electrode of the fifteenth N-type transistor and a third control signal, and the source electrode of the fourth P-type transistor is connected with a fourth common reference voltage;
the grid electrode of the eleventh N-type transistor is connected with the grid electrode of the twelfth N-type transistor and the second control signal, the drain electrode of the eleventh N-type transistor is connected with the drain electrode of the fourteenth N-type transistor and the output port of the time window sampling voltage in the time window generating circuit, and the source electrode of the eleventh N-type transistor is connected with the source electrode of the thirteenth N-type transistor and the first positive input port of the OTA synaptic circuit;
A drain of a twelfth N-type transistor is connected to the drain of the thirteenth N-type transistor and to a port of an external reference voltage, a source of the twelfth N-type transistor is connected to a source of the fourteenth N-type transistor and to a first negative input port of the OTA synaptic circuit;
the grid electrode of the thirteenth N-type transistor is connected with the grid electrode of the fourteenth N-type transistor and the inverting signal of the second control signal;
the drain electrode of the fifteenth N-type transistor is connected with a third common reference voltage.
4. A method of implementing a multi-modal synaptic time-dependent plasticity algorithm based on the circuitry of any one of claims 1-3, comprising:
the time window based generation circuit generates various time window sampling voltages under the action of the first control signal and the external voltage;
the OTA synaptic circuit is used for switching an input port of the OTA synaptic circuit connected with the time window sampling voltage and an external reference voltage based on a switch switching circuit;
when the first external pulse signal and the second external pulse signal arrive, the change quantity of the synaptic weight under the action of the sampling voltage of the time window and the external reference voltage is calculated based on an OTA synaptic circuit, and the change quantity is stored in a storage capacitor connected with an output port of the OTA synaptic circuit in a form of electric charge.
5. The method of claim 4, wherein the step of generating a plurality of time window sampling voltages based on the time window generating circuit under the action of the first control signal and the applied voltage comprises:
charging the first capacitor and the second capacitor to peak values at the instant when the first external pulse signal arrives;
the second capacitor generates a signal of a return signal port under the action of a third bias voltage, a first control signal and a complementary signal of the first control signal;
the first capacitor generates window waveforms under the action of a first bias voltage, a second bias voltage and a return signal port, and outputs time window sampling voltages under the action of the second external pulse signals and the inverted signals of the second external pulse signals.
6. The method of claim 5, wherein the step of generating a plurality of time window sampling voltages based on the time window generating circuit under the action of the first control signal and the applied voltage comprises:
when the first control signal is in a low level and the signal of the return signal port is in a high level, turning off a second P-type transistor in the time window generating circuit, and turning on a second N-type transistor in the time window generating circuit, so that the voltage on the first capacitor gradually drops under the control of the second bias voltage until the voltage is equal to a second common reference voltage;
When the first control signal is at a high level, the voltage on the second capacitor is connected with the positive electrode input port of the comparator in the time window generating circuit, and the second capacitor gradually drops under the control of the third bias voltage until the second capacitor is equal to the first common reference voltage;
when the voltage on the second capacitor is higher than the external reference voltage of the negative input port of the comparator, the comparator outputs a high level, the signal of the return signal port is also high level, the second P-type transistor is turned off, the second N-type transistor is turned on, the voltage on the first capacitor gradually drops under the control of the second bias voltage until the voltage on the first capacitor is smaller than the external reference voltage of the negative input port of the comparator, the comparator outputs a low level, the signal of the return signal port becomes low level, the second P-type transistor is turned on, the second N-type transistor is turned off, and the voltage on the first capacitor gradually rises under the control of the first bias voltage until the voltage is equal to a fourth common reference voltage.
7. The method of claim 4, wherein switching the input port of the OTA synaptic circuit connected to the time window sampling voltage and an external reference voltage based on a switch switching circuit comprises:
The fourth P-type transistor and the fifteenth N-type transistor in the switch switching circuit select an external reference voltage connected with a port of the external reference voltage under the control of a third control signal;
the eleventh through fourteenth N-type transistors are caused to select a time window sampling voltage and an external reference voltage connected to respective input ports of the OTA synaptic circuit under control of a second control signal and a complement of the second control signal.
8. The method of claim 7, wherein switching the input port of the OTA synaptic circuit connected to the time window sampling voltage and an external reference voltage based on a switch switching circuit comprises:
when the third control signal is at a low level, the fourth P-type transistor is turned on, the fifteenth N-type transistor is turned off, and a port of the external reference voltage is connected with a fourth common reference voltage;
when the third control signal is at a high level, the fourth P-type transistor is turned off, the fifteenth N-type transistor is turned on, and a port of the external reference voltage is connected with a third common reference voltage;
When the second control signal is at a low level and the complementary signal of the second control signal is at a high level, switching on thirteenth to fourteenth N-type transistors, switching off eleventh to twelfth N-type transistors, wherein a port of the external reference voltage is connected with a positive input port of the OTA synaptic circuit, and an output port of the time window sampling voltage is connected with a negative input port of the OTA synaptic circuit;
when the second control signal is in a high level and the complementary signal of the second control signal is in a low level, turning off thirteenth to fourteenth N-type transistors, turning on eleventh to twelfth N-type transistors, wherein a port of the external reference voltage is connected with a negative input port of the OTA synaptic circuit, and an output port of the time window sampling voltage is connected with a positive input port of the OTA synaptic circuit;
wherein the external reference voltages include the third common reference voltage and a fourth common reference voltage.
9. The method according to claim 4, wherein the step of calculating the amount of change in synaptic weights under the action of the time window sampling voltage and the external reference voltage when the first external pulse signal and the second external pulse signal arrive based on the OTA synaptic circuit comprises:
When the first external pulse signal arrives earlier than the second external pulse signal, determining the positive and negative sum of currents output by the OTA synaptic circuit according to the positive and negative sum of voltage differences on gates of a sixteenth N-type transistor and a seventeenth N-type transistor in the OTA synaptic circuit, and determining the variation of the synaptic weight according to the positive and negative sum of currents;
when the first external pulse signal arrives later than the second external pulse signal, determining the positive and negative sum of currents output by the OTA synaptic circuit according to the positive and negative sum of voltage differences on the grid electrodes of an eighteenth N-type transistor and a nineteenth N-type transistor in the OTA synaptic circuit, and determining the variation of the synaptic weight according to the positive and negative sum of currents;
the step of determining the positive and negative sum of the current output by the OTA synaptic circuit according to the positive and negative sum of the voltage difference on the grid electrodes of the sixteenth N-type transistor and the seventeenth N-type transistor in the OTA synaptic circuit, and determining the variation of the synaptic weight according to the positive and negative sum of the current comprises the following steps:
when the voltage on the grid electrode of the seventeenth N-type transistor is larger than the voltage on the grid electrode of the sixteenth N-type transistor, the OTA synaptic transmission circuit outputs forward current to the storage capacitor through the first transmission tube at the moment when the second external pulse signal arrives, and the synaptic weight is increased;
When the voltage on the grid electrode of the seventeenth N-type transistor is smaller than the voltage on the grid electrode of the sixteenth N-type transistor, the OTA synaptic transmission circuit outputs negative current to the storage capacitor through the first transmission tube at the moment when the second external pulse signal arrives, and the synaptic weight is reduced;
the step of determining the positive and negative sum of the current output by the OTA synaptic circuit according to the positive and negative sum of the voltage difference on the grid electrodes of the eighteenth N-type transistor and the nineteenth N-type transistor in the OTA synaptic circuit, and determining the variation of the synaptic weight according to the positive and negative sum of the current comprises the following steps:
when the voltage on the grid electrode of the nineteenth N-type transistor is larger than the voltage on the grid electrode of the eighteenth N-type transistor, the OTA synaptic transmission circuit outputs forward current to the storage capacitor through a second transmission tube at the moment that the first external pulse signal arrives, and the synaptic weight is increased;
when the voltage on the grid electrode of the nineteenth N-type transistor is smaller than the voltage on the grid electrode of the eighteenth N-type transistor, the OTA synaptic transmission circuit outputs negative current to the storage capacitor through a second transmission tube at the moment when the first external pulse signal arrives, and the synaptic weight is reduced.
CN201911338785.2A 2019-12-23 2019-12-23 Circuit and implementation method of multi-mode synaptic time-dependent plasticity algorithm Active CN110991635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911338785.2A CN110991635B (en) 2019-12-23 2019-12-23 Circuit and implementation method of multi-mode synaptic time-dependent plasticity algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911338785.2A CN110991635B (en) 2019-12-23 2019-12-23 Circuit and implementation method of multi-mode synaptic time-dependent plasticity algorithm

Publications (2)

Publication Number Publication Date
CN110991635A CN110991635A (en) 2020-04-10
CN110991635B true CN110991635B (en) 2023-05-05

Family

ID=70075565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911338785.2A Active CN110991635B (en) 2019-12-23 2019-12-23 Circuit and implementation method of multi-mode synaptic time-dependent plasticity algorithm

Country Status (1)

Country Link
CN (1) CN110991635B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102610274A (en) * 2012-04-06 2012-07-25 电子科技大学 Weight adjustment circuit for variable-resistance synapses
CN106447033A (en) * 2016-10-13 2017-02-22 中国科学院深圳先进技术研究院 Nerve cell synapse circuit and nerve cell circuit
CN108681772A (en) * 2018-04-02 2018-10-19 北京大学 Multi-modal neuron circuit and neuron implementation method
CN110210613A (en) * 2019-05-23 2019-09-06 华中科技大学 A kind of impulsive neural networks analog circuit based on intensified learning

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8909575B2 (en) * 2012-02-29 2014-12-09 Qualcomm Incorporated Method and apparatus for modeling neural resource based synaptic placticity
JP6501146B2 (en) * 2014-03-18 2019-04-17 パナソニックIpマネジメント株式会社 Neural network circuit and learning method thereof
KR102141385B1 (en) * 2018-03-08 2020-08-05 포항공과대학교 산학협력단 An neuromorphic system with transposable memory and virtual look-up table

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102610274A (en) * 2012-04-06 2012-07-25 电子科技大学 Weight adjustment circuit for variable-resistance synapses
CN106447033A (en) * 2016-10-13 2017-02-22 中国科学院深圳先进技术研究院 Nerve cell synapse circuit and nerve cell circuit
CN108681772A (en) * 2018-04-02 2018-10-19 北京大学 Multi-modal neuron circuit and neuron implementation method
CN110210613A (en) * 2019-05-23 2019-09-06 华中科技大学 A kind of impulsive neural networks analog circuit based on intensified learning

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙宏伟等.《一种可实现STDP机制的CMOS突触和神经元电路设计》.《微型机与应用》.2017,第43-48页. *
杨玖等.《一种反向串联忆阻突触电路的设计及应用》.《中国科学:信息科学》.2016,第391-403页. *

Also Published As

Publication number Publication date
CN110991635A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
US20210357726A1 (en) Fusion structure and method of convolutional neural network and spiking neural network
CN106779059B (en) A kind of Circuit of Artificial Neural Networks of the Pavlov associative memory based on memristor
KR102230784B1 (en) Synapse circuit for spike-timing dependent plasticity(stdp) operation and neuromorphic system
JP5659361B1 (en) Neural network circuit and learning method thereof
CN106845634A (en) A kind of neuron circuit based on memory resistor
CN206147705U (en) Neuronal synaptic circuits and neuronal circuits
CN110428050B (en) Synapse bionic circuit for realizing diversified STDP learning rules based on memristor
CN208299759U (en) A kind of automatic calibration circuit of amplifier input offset voltage
CN105701541A (en) Circuit structure based on memristor pulse nerve network
CN102610274A (en) Weight adjustment circuit for variable-resistance synapses
CN110188873B (en) Feedforward network topology digital-analog hybrid neural network circuit
CN110991635B (en) Circuit and implementation method of multi-mode synaptic time-dependent plasticity algorithm
CN104021420A (en) Programmable discrete Hupfield network circuit
CN110428049B (en) Voltage type neural network based on polymorphic memristor and operation method thereof
CN110188874B (en) Recursive network topology digital-analog hybrid neural network circuit
KR102584868B1 (en) On-chip training neuromorphic architecture
Huan et al. A reconfigurable mixed signal CMOS design for multiple STDP learning rules
CN116720553A (en) A T-type and P-type memristive neuron circuit designed based on the HH model
CN209962283U (en) Digital-analog hybrid synaptic circuit
Gao et al. Memristor-based logic gate circuit
CN214475009U (en) A Circuit of Threshold Switching Memristor Simulation Model
CN114742217A (en) A memristor-based circuit for VFL-RELU spiking neurons
CN209980300U (en) Recurrent network topology digital-analog hybrid neural network circuit
CN106447038A (en) Pulse nerve circuit
CN210666857U (en) Memristor bridge type touch-projection working mode configuration circuit

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