Giacomo Innocenti1, Mauro Di Marco2, Alberto Tesi1, Mauro Forti2. 1. Dipartimento di Ingegneria dell'Informazione, Università degli Studi di Firenze, Firenze, Italy. 2. Dipartimento di Ingegneria dell'Informazione e Scienze Matematiche, Università degli Studi di Siena, Siena, Italy.
Abstract
Since the introduction of memristors, it has been widely recognized that they can be successfully employed as synapses in neuromorphic circuits. This paper focuses on showing that memristor circuits can be also used for mimicking some features of the dynamics exhibited by neurons in response to an external stimulus. The proposed approach relies on exploiting multistability of memristor circuits, i.e., the coexistence of infinitely many attractors, and employing a suitable pulse-programmed input for switching among the different attractors. Specifically, it is first shown that a circuit composed of a resistor, an inductor, a capacitor and an ideal charge-controlled memristor displays infinitely many stable equilibrium points and limit cycles, each one pertaining to a planar invariant manifold. Moreover, each limit cycle is approximated via a first-order periodic approximation analytically obtained via the Describing Function (DF) method, a well-known technique in the Harmonic Balance (HB) context. Then, it is shown that the memristor charge is capable to mimic some simplified models of the neuron response when an external independent pulse-programmed current source is introduced in the circuit. The memristor charge behavior is generated via the concatenation of convergent and oscillatory behaviors which are obtained by switching between equilibrium points and limit cycles via a properly designed pulse timing of the current source. The design procedure takes also into account some relationships between the pulse features and the circuit parameters which are derived exploiting the analytic approximation of the limit cycles obtained via the DF method.
Since the introduction of memristors, it has been widely recognized that they can be successfully employed as synapses in neuromorphic circuits. This paper focuses on showing that memristor circuits can be also used for mimicking some features of the dynamics exhibited by neurons in response to an external stimulus. The proposed approach relies on exploiting multistability of memristor circuits, i.e., the coexistence of infinitely many attractors, and employing a suitable pulse-programmed input for switching among the different attractors. Specifically, it is first shown that a circuit composed of a resistor, an inductor, a capacitor and an ideal charge-controlled memristor displays infinitely many stable equilibrium points and limit cycles, each one pertaining to a planar invariant manifold. Moreover, each limit cycle is approximated via a first-order periodic approximation analytically obtained via the Describing Function (DF) method, a well-known technique in the Harmonic Balance (HB) context. Then, it is shown that the memristor charge is capable to mimic some simplified models of the neuron response when an external independent pulse-programmed current source is introduced in the circuit. The memristor charge behavior is generated via the concatenation of convergent and oscillatory behaviors which are obtained by switching between equilibrium points and limit cycles via a properly designed pulse timing of the current source. The design procedure takes also into account some relationships between the pulse features and the circuit parameters which are derived exploiting the analytic approximation of the limit cycles obtained via the DF method.
The ever-growing need of computing power to handle data intensive applications is seriously challenging conventional digital von Neumann computing architectures (Bonomi et al., 2012; Satyanarayanan, 2017; Williams, 2017). The physical separation between the computing and memory units can indeed generate long latency time and large energy consumption when data intensive tasks are performed. In this context, researchers look at the emerging nanoscale analog devices, such as memristors, as a viable approach for developing new computing paradigms, based on in-memory and analog computation, which are potentially capable to overcome the limitations of conventional computer architectures (Waldrop, 2016; Zidan et al., 2018; Krestinskaya et al., 2020).The memristor (a shorthand for memory resistor) is the fourth basic passive circuit element theoretically introduced by Prof. Leon Chua in 1971 (Chua, 1971). The appealing features of a memristor are non-volatility, i.e., the memristor capability to hold data in memory without the need of a power supply, and non-linearity, which makes memristor circuits capable to generate quite a rich variety of oscillatory and complex dynamics. The combination of these two features enables in-memory computing, i.e., the co-location of computation and memory in the same device (Ielmini and Wong, 2018). In-memory computing, which resembles a basic principle of brain computation, can provide several advantages, such as low energy consumption, high bandwidths, excellent scalability, thus lending itself as quite a promising novel computing approach in the field of artificial intelligence and big data (Ielmini and Pedretti, 2020). Memristor circuits have been already positively used to address several tasks, including the solution of global optimization, constraint satisfaction and linear algebra problems (Yang et al., 2013; Wang et al., 2015; Kumar et al., 2017). They are also used as building blocks in reservoir computing systems (Du et al., 2017) and neuromorphic computing for on-line signal processing tasks (Di Marco et al., 2016, 2017; Di Marco et al., 2017; Ascoli et al., 2020a,b).Since the very beginning it was clear that understanding the peculiar dynamical features of memristor circuits is the key step for developing analog in-memory computing schemes. It has been definitely shown that memristor circuits are capable to generate quite a large variety of dynamical behaviors (Corinto et al., 2011; Corinto et al., 2019; Pershin and Di Ventra, 2011; Xu et al., 2016; Yuan et al., 2016; Di Marco et al., 2018), including bursting oscillations (see e.g., Wang et al., 2019 and references therein). Recently, a new technique, named flux-charge analysis method (FCAM), has been introduced for the analysis of memristor circuits in the flux-charge domain (Corinto and Forti, 2016, 2017, 2018). FCAM permits to show that the dynamical richness displayed by memristor circuits is a consequence of the property that the state space of any given circuit, i.e., with its parameter having fixed values, contains infinitely many invariants manifolds (foliation property of the state space). This specific property implies that in memristor circuits there is the coexistence of infinitely many different attractors, a property referred to as multistability. Moreover, structural changes of the attractors are observed when the initial conditions are varied while keeping constant the values of the circuit parameters, a peculiar phenomenon which is referred to as bifurcations without parameters (Corinto and Forti, 2017; Di Marco et al., 2018; Innocenti et al., 2019b). In particular, Di Marco et al. (2018), Innocenti et al. (2019b) have employed techniques within the Harmonic Balance (HB) context for predicting limit cycles and their bifurcations by first showing that the dynamics of the memristor circuit admits an equivalent input-output representation, which has been recently extended also to circuits containing memory elements (Innocenti et al., 2020).Among other applications, it has been soon recognized that memristors can be successfully employed as synapses in neuromorphic circuits (see e.g., Jo et al., 2010; Adhikari et al., 2012; Thomas, 2013; Kim et al., 2015; Hu et al., 2016; Hong et al., 2019). It has been also pointed out that memristor circuits appear to be suited for modeling some features of the dynamics of neurons. Some contributions provide a memristor representation of popular neuron models (see e.g., Chua et al., 2012; Usha and Subha, 2019 for the Hodgkin-Huxley axon), while others show how to mimic some typical dynamics displayed by cortical neurons (see e.g., Babacan et al., 2016; Nakada, 2019, and references therein). In Innocenti et al. (2019a), it is shown that dynamics of the memristor Murali-Lakshmanan-Chua circuit, equipped with an independent pulse programmed input source and simple comparator and hysteresis feedback blocks, can resemble some dynamical behaviors of cortical neurons. Finally, it is worth noting that HB techniques have been suitably employed for the analysis of neural oscillations (see e.g., Chen et al., 2008; Matsuoka, 2011 and references therein).The purpose of this paper is to show how memristor circuits can be exploited for modeling some features of the neurons dynamics (see e.g., Izhikevich, 2000, 2007). The basic ideas are to exploit multistability, i.e., the fact that a memristor circuit contains infinitely many attractors (equilibria, limit cycles, …), and to employ a suitable pulse-programmed input for controlling multistability, i.e., for switching among the different attractors. Controlling multistability is currently a research field of general interest (see e.g., Pisarchik and Feudel, 2014 and references therein) and some contributions to the problem of steering the memristor circuit dynamics toward the attractors contained in one of the invariant manifolds have been given (Chen et al., 2018; Corinto and Forti, 2018; Corinto et al., 2019; Di Marco et al., 2019, 2020a,b). In particular, Di Marco et al. (2020b,a), Di Marco et al. (2021) have shown that the dynamics of a second order R, L, C circuit connected with a charge-controlled memristor can be steered, via a pulse programmed source, toward a pre-assigned invariant manifold where it converges toward the attractor contained in the manifold itself. In this paper, such a simple memristor circuit is used to mimic some aspects of the dynamics displayed by cortical neurons in response to an external stimulus. Section 2 describes the circuit and formulates the problem of interest. Specifically, the memristor charge should exhibit some typical neuron dynamics when the current source is suitably pulse-programmed. It is assumed that the pulses and their timing are generated by some given hardware mechanisms, whose design is not the object of the paper. Section 2 also illustrates the foliation property of the circuit state space in the input-less case, by characterizing the infinitely many invariant manifolds and the differential equations governing the dynamics onto them. Section 3 investigates the dynamics of the input-less circuit by showing that each manifold contains as attractor either a stable equilibrium point or a stable limit cycle. The limit cycles analysis is performed via the Describing Function (DF) method, a classical technique within the HB context. By exploiting the coexistence of stable equilibrium points and limit cycles and the knowledge of the first order periodic approximations, section 4 provides a procedure for the design of a pulse timing of the current source ensuring that the memristor charge mimics some dynamical features of the neuron response. The sought behavior of the memristor charge is obtained via a suitable concatenation of convergent and oscillatory behaviors, which are generated by switching between different attractors according to the designed pulse timing. The relation between the pulse timing parameters and the circuit parameters is also discussed. Some conclusions are finally drawn in section 5.
2. Problem Formulation and Preliminaries
The aim of the paper is to show that the coexistence of many different attractors in memristor circuits permits to mimic some features of the dynamics of cortical neurons. Specifically, we consider the simple circuit depicted in Figure 1 which contains a resistor R, an inductor L, a capacitor C and a non-linear charge-controlled memristor.
Figure 1
Charge-controlled memristor circuit with R, L,C components and independent current source I.
Charge-controlled memristor circuit with R, L,C components and independent current source I.The capacitor voltage, the inductor current, the memristor voltage and current are denoted by v, i, v, and i, respectively. The circuit is subject to an independent current source I, which is the input of the circuit. The charge-flux characteristic of the memristor relating the charge q and the flux φ is assumed to have both a linear and a cubic term. Specifically,where the constant terms s0 and s1 satisfyThroughout the paper, we assume that all the circuit parameters R, L, C, s0, s1 have normalized values. Also, we consider arbitrary units for the time.We want to show that the circuit is able to generate some characteristic dynamical behaviors of a neuron in response to a pulse stimulus, as the typical one depicted in Figure 2A. Specifically, the memristor charge q should display the time behavior of Figure 2B when the input source I provides a suitable stimulus.
Figure 2
(A) Schematic of an ideal voltage-pulse of the cellular membrane (action potential). (B) Reference shape of the memristor charge-pulse considered in this paper. For the sake of simplicity, the depolarization is assumed to occur without distinction between the sub- and the super-threshold branches, and the hyperpolarization dynamics admits small ripples during the convergence to the resting state.
(A) Schematic of an ideal voltage-pulse of the cellular membrane (action potential). (B) Reference shape of the memristor charge-pulse considered in this paper. For the sake of simplicity, the depolarization is assumed to occur without distinction between the sub- and the super-threshold branches, and the hyperpolarization dynamics admits small ripples during the convergence to the resting state.It can be readily verified that the circuit dynamics is described by the following third-order system of differential equationswhere is the time-derivative operator and v, q, and i are the state variables.Let us consider the input-less case, i.e., I = 0. It has been shown (see e.g., Corinto and Forti, 2017) that memristor circuits enjoy the so-called foliation property, i.e., the memristor state space is decomposed into infinitely many invariant manifolds. The verification of this property for the considered circuit is readily obtained. Since I = 0, the first equation of Equation (3) can be rewritten equivalently aswhich means that the quantity q(t) + Cv(t) is constant along the solutions of Equation (3) with initial conditions v(t0), q(t0), and i(t0) at time t = t0, i.e.,Hence, in the input-less case the state space of the memristor circuit is decomposed into infinitely many invariant manifolds of the formwhere Q0 is the index of the manifold whose value depends on the circuit initial conditions according to the relation Q0 = q(t0) + Cv(t0). Note that the invariant manifolds M(Q0) are planar surfaces parameterized by the manifold index Q0, as illustrated in Figure 3.
Figure 3
Invariant manifolds of the input-less circuit: the state space trajectory generated by the solution of Equation (3) with initial conditions v(t0), q(t0), i(t0) (marked with ◦) at time t = t0 belongs to the manifold M(Q0) with Q0 = q(t0) + Cv(t0) for all t ≥ t0.
Invariant manifolds of the input-less circuit: the state space trajectory generated by the solution of Equation (3) with initial conditions v(t0), q(t0), i(t0) (marked with ◦) at time t = t0 belongs to the manifold M(Q0) with Q0 = q(t0) + Cv(t0) for all t ≥ t0.We have then established that in the input-less case the circuit dynamics is confined to lie onto one of the invariant manifolds. The differential equations governing the dynamics onto the invariant manifold M(Q0) can be readily singled out. Since the first equation of Equation (3) has been used to obtain M(Q0), it follows that the dynamics is characterized by the two remaining equations once v(t) is replaced by . Hence, the dynamics onto M(Q0) obeys the second-order system of differential equationsClearly, the complete dynamical behaviors of the input-less circuit can be obtained by collecting all the dynamics confined to lie onto each invariant manifold M(Q0). The dynamical analysis of Equation (7) for any value of the index manifold Q0 will be pursued in section 3. Note that Q0 can be seen as a parameter of Equation (7) which however depends on the circuit initial conditions and hence it has a different nature with respect to the circuit parameters R, L, C, s0, and s1.
3. Input-Less Memristor Circuit Dynamics
In this section, we summarize the properties of the dynamics onto M(Q0) by investigating system (7). Specifically, the equilibrium points and their stability features are dealt with in section 3.1, while the presence of limit cycles is considered in section 3.2.
3.1. Equilibrium Points
It readily follows that each invariant manifold M(Q0) has a unique equilibrium point at (q, i) = (Q0, 0). Taking into account (6), this implies that the circuit system (7) has an equilibrium point at (v, q, i) = (0, Q0, 0) for any value of the index Q0. Hence, the q-axis is a line of equilibrium points of the circuit.To assess the stability properties of the equilibrium point of M(Q0), we compute the Jacobian J(Q0) of (7) at (q, i) = (Q0, 0), gettingwhereThe eigenvalues of J(Q0) have a negative real part if and a positive real part if , while they are pure imaginary at . This implies that the equilibrium point at (q, i) = (Q0, 0) is ensured to be (locally) asymptotically stable if and unstable if .Hence, the equilibrium point of each manifold M(Q0) with is an attractor of the input-less memristor circuit. Figure 4 summarizes the dynamical behavior around the equilibrium point of M(Q0).
Figure 4
Stable (green half lines) and unstable (red segment) equilibrium points: the trajectories starting on the planes with and converge toward the corresponding equilibrium points; the trajectory starting on the plane with converges toward the stable limit cycle (green).
Stable (green half lines) and unstable (red segment) equilibrium points: the trajectories starting on the planes with and converge toward the corresponding equilibrium points; the trajectory starting on the plane with converges toward the stable limit cycle (green).
3.2. Limit Cycles
To investigate the presence of limit cycles on M(Q0) we resort to the DF method, a classical technique within the HB context. The DF method has been widely used for analyzing oscillatory behaviors in non-linear feedback control systems (see e.g., Gelb and Vander Velde, 1968; Atherton, 1975; Mees, 1981; Khalil, 2002). Within the HB setting, other techniques have been proposed to predict bifurcations of limit cycles and more complex dynamics (Genesio and Tesi, 1992; Piccardi, 1994; Tesi et al., 1996; Basso et al., 1997; Bonani and Gilli, 1999; Di Marco et al., 2003; Innocenti et al., 2010). The first step to apply the DF method is to show that system (7) admits the representation of Figure 5 whose dynamics is governed by the following input-output relation
Figure 5
Equivalent input-output representation of system (7).
where and are suitable rational functions.Equivalent input-output representation of system (7).It is worth observing that this representation has an internal feedback interconnection between the linear subsystem and the non-linear subsystem described by the memristor characteristic, while is a feed-forward linear block driven by a constant input.It can be readily verified that Equation (7) can be rewritten equivalently as a unique second order differential equation involving only q. Since the second equation of Equation (7) becomesTaking into account that , the above differential equation can be rearranged in the following equivalent input-output formHence, system (7) can be equivalently described via the input-output relation (10) with and given byIt is worth observing that is exactly the equivalent admittance of the linear part of the circuit with I(t) = 0, i.e., the one seen at the terminals T′ and T′′ in Figure 1 where the memristor is connected.The DF method looks for a first-order approximation of a periodic output q(t) of the system of Figure 5, i.e.,The corresponding periodic output φ(t) of period 2π/ω of the non-linear subsystem can be written aswhere N0(A, B) is the bias gain and N1(A, B) is first harmonic gain, which are known as describing function terms, while φ(t) contains the higher order harmonics, i.e.,with γ and θ, h = 2, …, being suitable constants.The final step of the DF method consists in first computing the periodic signal of period 2π/ω given by the sum of the outputs y(t) and y0(t) of the two linear subsystems driven by −φ(t) and the constant signal Q0, respectively, then in equating the constant and the first order harmonic terms of the obtained periodic signal with the corresponding terms of q(t), i.e., A and B. Taking into account that the constant and first order harmonic terms of φ(t) can be rewritten in an exponential form as and , respectively, the periodic signal given by the sum of y(t) and y0(t) can be computed by exploiting superposition and the expression of the response of a linear system which has the same exponential form of the input. The so computed periodic signal has the following expressionwhere y(t) contains the higher order harmonics generated by −φ(t). Then, by equating the constant term in Equation (17) with that of q(t), we get the real equationwhile by equating the first harmonic terms and taking into account that B cos ωt = B(e + e−)/2 we get the complex equationIn the HB approach, any first-order periodic signal (14) with A, B, and ω solving both Equations (18) and (19) is called a Predicted Limit Cycle (PLC) of the system of Figure 5. Also, it is expected that there exists a true limit cycle close to a PLC if the system of Figure 5 satisfies some conditions (see Atherton, 1975; Mees, 1981; Khalil, 2002 and references therein). These conditions basically rely on so-called filtering hypothesis which means that the non-linear subsystem does not generate large higher-order harmonics (i.e., φ(t) is small) and the two linear subsystems are low-pass filters (i.e., the gains |L(jhω)|, h = 2, …, are smaller than |L(0)| and |L(jω)|). Hence, this hypothesis requires that y(t) must be much smaller than the constant and first order harmonic terms of Equation (17), according to some quantitative measure. For instance, in Di Marco et al. (2018) the distortion index is used to this purpose.Now, to apply the DF method to the system under consideration, we observe that from Equation (13) we get L(0) = 0 and L0(0) = 1, while from Equations (1) and (15) it can be verified that the gains N0(A, B) and N1(A, B) have the following expressions:Then, the Equation (18) reduces toand the complex equation (19) boils down towhich can equivalently be written by separating the real and imaginary parts asEquations (22), (24), and (25) are then solved for A = Â = Q0, and with such thatHence, for each index Q0 such that there exists a PLC of the following formThis implies that each manifold M(Q0) contains a unique PLC for . Sincethe trajectory described by the PLC in the (q, i)-plane lies on the following ellipseNote that the ellipse is centered at the equilibrium point (Q0, 0) and its size is maximum at Q0 = 0 and decreases to zero as the index Q0 tends to , thus collapsing to the equilibrium point. Moreover, since for the equilibrium point is unstable and taking into account that the system is two dimensional, we can conclude that the PLC is stable. In this regard, we mention that PLC stability can be assessed also via approximate HB tools, such as the Loeb criterion (see e.g., Atherton, 1975; Tesi et al., 1996).Summing up, we have shown that in the input-less memristor circuit there coexist infinitely many attractors: a stable equilibrium point for each value of the manifold index Q0 such that and a stable PLC for each value of the index Q0 such that . Figure 6 illustrates this multistability scenario for the following normalized values of the circuit parameters
Figure 6
Input-less circuit attractors: stable (green ⋆) equilibrium points and stable PLCs (solid green) given by Equations (27) and (28) as a function of the manifold index Q0. The red circles denote the unstable equilibrium points.
from which it follows that .Input-less circuit attractors: stable (green ⋆) equilibrium points and stable PLCs (solid green) given by Equations (27) and (28) as a function of the manifold index Q0. The red circles denote the unstable equilibrium points.In particular, it turns out that at a typical behavior of (supercritical) Hopf bifurcation is observed. However, since it is obtained by varying the index Q0 and thus the circuit initial conditions (for fixed circuit parameters), it may be referred to as a bifurcation without parameters (Corinto and Forti, 2017; Di Marco et al., 2018; Innocenti et al., 2019b; Ascoli et al., 2020a). As already discussed, it is expected that there exists a true limit cycle close to a PLC. Indeed, a more refined numerical analysis shows that for each |Q0| < 1 the corresponding invariant manifold M(Q0) has a unique limit cycle which attracts all the (non-trivial) trajectories. Moreover, the limit cycle is well-approximated by the PLC, as shown in Figure 7 for Q0 = 0.
Figure 7
True limit cycle (solid dark) and PLC (solid red) in the (q, i)-plane for Q0 = 0.
True limit cycle (solid dark) and PLC (solid red) in the (q, i)-plane for Q0 = 0.A quantitative comparison between the PLCs and the true limit cycles is provided by Figure 8 where the maximum and the minimum of both the true periodic solution q(t) and the PLC in Equation (27) are depicted as a function of the index Q0.
Figure 8
Stable (green ⋆) and unstable (red ◦) equilibrium points; maximum (32) and minimum (31) of the PLCs (solid red) as a function of Q0; maximum and minimum values of the numerically computed limit cycles (dotted dark points).
Stable (green ⋆) and unstable (red ◦) equilibrium points; maximum (32) and minimum (31) of the PLCs (solid red) as a function of Q0; maximum and minimum values of the numerically computed limit cycles (dotted dark points).It can be readily checked that the minimum and the maximum of the first-order approximation are given byandrespectively. We finally observe that similar results can be derived also for values of the circuit parameters different from those in Equation (30).
4. Modeling Neuron Dynamics via the Controlled Circuit
Section 3 makes it clear that in the input-less case the memristor circuit displays infinitely many attractors. Specifically, each planar invariant manifold M(Q0) contains either a unique stable equilibrium point or a stable limit cycle. Moreover, an approximation of the limit cycle belonging to M(Q0), with Q0 such that , is explicitly obtained in terms of the PLC (27).In this section it will be shown how the coexistence of infinitely many stable equilibrium points and limit cycles, together with the knowledge of their dependence on the manifold index Q0, which in the case of limit cycles is given in an approximate way by Equation (27), can be suitably exploited to make the memristor charge q responding as in Figure 2B to a pulse shaped input source I. To proceed, we consider the circuit state equations (3) by replacing v with the following state variableIt turns out that (3) reduces to the third-order systemwhere Q, q, and i are the new state variables. Suppose that at time t = t ≥ t0 the current source I(t) displays a pulse of area Λ and width Δ > 0, i.e., I(t) is equal to zero for t ∈ [t0, t] and t ∈ [t + Δ, +∞) and such thatFrom the first equation of Equation (34) it follows thatwhich implies for t ∈ [t0, t] and for t ∈ [t + Δ, +∞). For instance, in the case of a rectangular pulse we have .By comparing the second and third equations of Equation (34) with those of Equation (7), it follows that the circuit dynamics lies onto for t ∈ [t0, t], it moves toward during the interval [t, t + Δ], it reaches at t = t + Δ, where it remains for all t ≥ t + Δ. Hence, the circuit has the property that pulse shaped current sources I make the dynamics moving from an initial manifold to any other one within a given time interval, by suitably choosing the pulse area and width.We are interested in the case where the manifold has a stable equilibrium point and in particular the index is negative and hence . Moreover, we assume that at t = t the circuit state is at the equilibrium point, which means that . Let us now investigate the dynamics induced by a rectangular pulse of positive area Λ and width Δ on the circuit dynamics. It turns out that the final manifold still contains a stable equilibrium point if , while it contains a stable limit cycle if and again a stable equilibrium point if . Figure 9 illustrates the first two possible behaviors in the case of a rectangular pulse of height A/Δ with the circuit parameters as in (30).
Figure 9
Dynamics generated by applying at t = 10 a rectangular pulse of area Λ and width Δ = 1 via the current source I; the circuit parameters are as in Equation (30) and the initial conditions are q(0) = −2 and I(0) = 0, while Q(0) = −2. (A) For Λ = 0.5, the index Q(t) and the state variables q(t), i(t) converge to Q0 = −1.5 and to the equilibrium point (−1.5, 0), respectively. (B) For Λ = 2.5, Q(t) converges to Q0 = 0.5 and the state variables q(t), i(t) converge to the limit cycle belonging to the manifold M(0.5).
Dynamics generated by applying at t = 10 a rectangular pulse of area Λ and width Δ = 1 via the current source I; the circuit parameters are as in Equation (30) and the initial conditions are q(0) = −2 and I(0) = 0, while Q(0) = −2. (A) For Λ = 0.5, the index Q(t) and the state variables q(t), i(t) converge to Q0 = −1.5 and to the equilibrium point (−1.5, 0), respectively. (B) For Λ = 2.5, Q(t) converges to Q0 = 0.5 and the state variables q(t), i(t) converge to the limit cycle belonging to the manifold M(0.5).Specifically, after reaching at time t = t + Δ at the point (Q(t + Δ), q(t + Δ), i(t + Δ)) with , the dynamics converges toward the attractor contained in the manifold, an equilibrium point in Figure 9A and a limit cycle in Figure 9B.Clearly, the length of the transient behavior toward the attractor depends on the values of q(t + Δ) and i(t + Δ). The farther away is the point (q(t + Δ), i(t + Δ)) from the attractor lying onto , the longer is the transient. Clearly, if (q(t + Δ), i(t + Δ)) belongs to the attractor we have no transient behavior. The values of q(t + Δ) and i(t + Δ) cannot be computed explicitly since this would require to integrate the second and third equations of (34) in the interval [t, t + Δ] with the initial condition and . However, by employing a Taylor series expansion for q(t) and i(t) for t ∈ [t, t + Δ], it turns out thatwhere α and β, i = 1, 2 are constants. It is interesting to note that if the width Δ of the pulse is small, then for t ∈ [t, t + Δ] the charge q remains almost constant, while i varies from zero to a quantity proportional to Δ.Summing up, for a suitable choice of the pulse area A and for sufficiently small width Δ, the pulse current I is able to steer, within the interval [t, t + Δ], the dynamics from the stable equilibrium point of to the manifold containing a stable limit cycle. Moreover, during the time interval the charge q is almost constant and the current i remains close to zero.We are now ready to show how it is possible to make the charge q display a behavior similar to that of Figure 2B in response to a pulse shaped input source I. Here, we are more interested in the dynamic response of the neuron than in its set and reset mechanisms. For these mechanisms we simply adopt the pulse timing of Figure 10 which is assumed to be generated via suitable logic gates.
Figure 10
Top: predicted behavior of the memristor charge. Bottom: timing of the current pulses.
Top: predicted behavior of the memristor charge. Bottom: timing of the current pulses.At time t = t the hardware detects a stimulus and generates a current pulse I with area A and width Δ (set mechanism), which moves the dynamics away from the stable equilibrium point (resting point) in ; at time t = t + Δ the dynamics reaches and the memristor charge q starts displaying a behavior similar to that reported in Figure 2B; at time t = t + Δ + T an inverse current pulse is generated in order to make the dynamics come back to the stable equilibrium point in (reset mechanism).Hence, the problem is how the parameters , Λ, Δ, and T should be designed in order to obtain the sought behavior of q. Let Δ be chosen enough small to ensure, as discussed above, that in [t, t + Δ] the charge q is almost constant and the current i remains close to zero. Choosing a small Δ implies that when at t = t + Δ the dynamics reaches the manifold we have that q and i are quite close to and zero, respectively. This manifold contains a stable limit cycle which can be in general computed only numerically. However, in section 3 it has been shown that the limit cycle can be approximated by a PLC. Clearly, the current expression of the PLC on is obtained by putting in Equation (27).Now, observe that the minimum and the maximum values of q, expressed in Equations (31) and (32), respectively, are achieved once i is equal to zero. Hence, since for sufficiently small Δ we have that , it is possible to set (q(t + Δ), i(t + Δ)) as the point of the manifold where the PLC has its minimum value (31). Consequently, for t ∈ [t + Δ, t + Δ + T] with T being the PLC period, the PLC provides the typical harmonic oscillator over one period, i.e., it evolves from the minimum to the maximum coming back again to the minimum. At the end of the period, the reset mechanism generates a current pulse of area −A and width Δ, which makes the dynamics come back to the stable equilibrium point of . Hence, the resulting behavior of the memristor charge can be expressed asand is depicted in Figure 10. Note that the parameter T has been chosen as the period of the PLC, i.e.:Hereafter, we denote by the time-derivative of , i.e.:Now, to set (q(t + Δ), i(t+Δ)) as the point of the manifold where the PLC has its minimum value (31), the following condition must be satisfiedwith . It is not difficult to verify that there are many solutions and Q0 of (41) such that and . We are interested in the one with the minimum value of because this choice ensures that the stable equilibrium point on the initial manifold is at the maximum distance from the invariant manifold where the Hopf bifurcation happens, thus guaranteeing a larger robustness margin against spurious pulses of small area. The minimum value of can be computed in closed form by minimizing the right hand side of Equation (41). It turns out thatand sincefrom Equations (41) and (9) we haveMoreover, since Q0 in Equation (41) stands for , from Equation (42) we finally getFinally, the pulse width Δ should be practically chosen to be some percent of the period T. Hence, we can select it according to the relationwhere σ lies in the interval [0.01, 0.05].Summing up, to obtain in Equation (38), the parameters T, , Λ, and Δ can be designed according to the corresponding expressions given in Equations (39), (43), (44), and (45), respectively. Notably, these relations depend explicitly on the circuit parameters R, L, C, s0, and s1. Hence, by suitably adapting these parameters it is possible to vary the features of .On the other hand, the formulas in Equations (39), (43), (44), and (45) have been derived under two approximations. The first one concerns the assumption that at time t = t + Δ the values of q and i are quite close to and zero, respectively. However, according to Equation (37) by lowering the value of the pulse width this assumption can be suitably satisfied. The second approximation is that the formulas have been obtained by using the PLCs instead of the true limit cycles. Indeed, as shown in section 3.2, the true limit cycles contain higher order harmonics terms which can generate some distortion in both the period and the minimum and maximum amplitudes over the period, with respect to those analytically computed for the PLCs. However, these higher order harmonics can be filtered out by suitably adjusting the circuit parameters. Moreover, the fact that the input-less memristor circuit contains a bundle of limit cycles makes the formulas, and hence the parameter design procedure, sufficiently robust with respect to the use of PLC in their derivation. Said another way, by slightly varying the parameters T, , A, and Δ from the nominal values provided by Equations (39), (43), (44), and (45), respectively, the distortion effect could be reduced.To illustrate the design procedure let us consider the circuit parameters in Equation (30). From Equations (39), (43), and (44), we have thatand choosing σ = 0.02 in Equation (45) we obtainThe corresponding predicted behavior in Equation (38) is reported Figure 11A together with the true behavior of q(t) which is obtained by solving numerically (34). The state space trajectories corresponding to the true solution (Q(t), q(t), i(t)) of the circuit and the predicted solution ) are depicted in Figure 11B.
Figure 11
The set pulse is applied at t = 2 with area A = 1.7889 and width Δ = 0.0487, the reset pulse is applied at t + Δ + T = 4.4821 with area Λ = −1.7889 and width Δ = 0.0487. The initial conditions are Q(0) = −2.2361, q(0) = −2.2361 and i(0) = 0. (A) Time behaviors of q (blu) and (red). (B) Trajectories in the state space generated by (Q(t), q(t), i(t)) (blu) and (red).
The set pulse is applied at t = 2 with area A = 1.7889 and width Δ = 0.0487, the reset pulse is applied at t + Δ + T = 4.4821 with area Λ = −1.7889 and width Δ = 0.0487. The initial conditions are Q(0) = −2.2361, q(0) = −2.2361 and i(0) = 0. (A) Time behaviors of q (blu) and (red). (B) Trajectories in the state space generated by (Q(t), q(t), i(t)) (blu) and (red).Note that the charge q(t) has a dynamical behavior that is quite similar to the one depicted in Figure 2B, thus clearly showing that the memristor circuit can be used for mimicking some features of neuron dynamics.This dynamical similarity is confirmed also in other scenarios. For instance, suppose that in the pulse timing the reset pulse is activated at t = t + Δ + nT, with n being a positive integer. Clearly, in this case completes n periods within the interval t + Δ, t + Δ + nT, and, therefore, q(t) is expected to generate a burst of n spikes. Figure 12 provides the numerically computed behavior of q(t) for n = 8 over a time frame covering three bursts.
Figure 12
The initial conditions are as in Figure 11, the set pulses are activated at t ∈ {10, 60, 110} and the reset pulses are applied 19.5164 time units later. (A) Time behavior of q for n = 8. (B) Time behavior of I.
The initial conditions are as in Figure 11, the set pulses are activated at t ∈ {10, 60, 110} and the reset pulses are applied 19.5164 time units later. (A) Time behavior of q for n = 8. (B) Time behavior of I.
5. Conclusions
In this paper, a memristor circuit composed of a resistor, an inductor, a capacitor, an ideal charge-controlled memristor and an independent current source as input is considered. It is first shown that in the input-less case the circuit enjoys the foliation property of the state space, i.e., it contains infinitely many planar invariant manifolds which are parameterized by a scalar index depending on the circuit initial conditions. Each manifold contains an attractor which can be either a stable equilibrium point or a stable limit cycle, depending on the value of the manifold index. Moreover, a first-order periodic approximation is obtained in an analytic way for each limit cycle via the Describing Function (DF) technique, a classical tool within the Harmonic Balance (HB) context.Then, it is shown that the memristor charge can mimic a simplified model of a neuron response when an external independent pulse-programmed current source is introduced in the circuit. Specifically, the sought dynamics of the memristor charge is generated via the concatenation of convergent and oscillatory behaviors, which are obtained by switching between stable equilibrium points and limit cycles via a suitable design of the pulse timing of the current source. Some relationships between the pulse and the circuit parameters are also devised exploiting the knowledge of the first-order periodic approximation of the limit cycles.
Data Availability Statement
The raw data supporting the conclusions of this article will be made available, without undue reservation, on request to the corresponding author with appropriate motivation.
Author Contributions
All authors contributed to the conception and design of the study, wrote the manuscript, read, and approved the submitted version.
Conflict of Interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.