1 Introduction

Synchronization of the nonlinear oscillators is an often-studied issue by many researchers interested in dynamical system theory, and the synchronization of the neurons has been also a trend topic in this area in order to play an important role in information processing of the brain recently [17]. Neurons can produce own inherent electrical potentials via the ion flows through the surface of membrane, and these inherent membrane oscillations are modeled with the several biological neuron models such as Hodgkin–Huxley (HH), FitzHugh–Nagumo (FHN), Wilson–Cowan (WC), Morris–Lecar (ML), Hindmarsh–Rose(HR) and Izhikevich (IZ) like a nonlinear oscillator [813]. There are advantages and disadvantages of each of these biological neuron models. For example, HH neuron model discusses the ionic mechanism and electrical current on membrane surface comprehensively, but this model is not preferred in some applications because of the calculation complexities [8]. FHN neuron model is the simplified type of the HH neuron model in terms of the calculation easiness, but bursting behaviors of the neurons cannot be obtained with this model [9]. On the other hand, HR neuron model is derived from the FHN neuron model and a lot of dynamical behaviors of the neurons can be observed via this model [12].

In addition to model the dynamical individual behaviors of the neurons, the synchronization situations of the collective neurons are also obtained physically via the biological neuron models. Since it is very difficult to identify the interaction of the collective neurons in the living body, the interactions between the neurons can be modeled by coupling the biological neuron models. In the literature, the studies examining the neuronal synchronization are generally performed by the HR neuron model due to its definition and calculation simplicity. In these synchronization studies performed using the HR neuron model, a few issues are handled like that: Coupling type: synaptic connections of the neurons are either chemical or electrical, and they are defined by the mathematical functions separately [14]. These coupling types are adapted to the HR neuron model, and the studies examined the effects on the synchronization status of coupling types are reported in the literature [1518]. Control of the synchronization: synchronization refers to the closeness of the frequency or phase of two systems that generate periodic or chaotic oscillations. The synchronization status of the coupled HR neurons can be controlled in various ways such as nonlinear feedback control, backstepping control, active control, \({ H}_{\infty }\) variable universe adaptive fuzzy control, and adaptive sliding mode control [1928]. Stability control approaches in synchronization: in the literature, after the dynamical nonlinear systems are synchronized using the control methods, various stability control approaches such as master stability function method, the connection graph stability method, the linear matrix inequality approach, matrix measure approach, the eigenvalue approach, and standard deviation method are used to check the achievement of the synchronization process [2946]. Adapting the data from a real neuron to biological model: after the processing the obtained data from living cells, it is tried to adapt these results to the biological neuron model in some studies. In contrast to this type study, the response of a real nerve is sometimes controlled by utilizing the simulation results of the biological neuron model [4750]. The usage of the neuron models in the practical applications: biological neuron models are implemented with the several electronic devices for some applications that require real-time signals and artificial neurons are obtained electronically [5158].

In the literature, although there are a lot of studies on realizing a single neuron with several electronic devices [5158], the number of the studies coupled artificial neurons electronically or electronic applications of synchronization studies are limited because of implementation complexities [53, 5965]. However, electrical coupling is usually preferred in these available hardware implementation studies because of mathematical description simplicity. In our previous study, the experimental realizations of HR neuron model with programmable hardware and synchronization applications via electrical coupling have been investigated [61]. On the other hand, several CMOS or analog realization studies utilizing the characteristics of analog devices are offered [5164]. Other neuron models, which cannot model the electrical and chemical coupling separately, are used as an example of chemical coupling application [63, 65]. However, no study about the digital implementation of chemical coupling defined by a complex nonlinear function in HR neurons is reported in the literature to the best of our knowledge.

In this study, after two HR neurons are connected with the chemical coupling function, this chemical coupled simple artificial network is implemented with reconfigurable analog and digital devices. For the digital implementation easiness, chemical coupling function is modified, and the stability control of the new modified chemical coupling function is checked by using the standard deviation method. Furthermore, this HR neuron model based and chemical coupled simple artificial network structure reminds of the small part of the stomatogastric ganglion central pattern generator (CPG) circuit of a lobster because synaptic connections between pyloric dilator (PD) and lateral pyloric (LP) neurons are chemical and unidirectional [66]. These two neurons exhibit asynchronous behaviors. Here, PD and LP neurons in this CPG circuit are represented by two HR neurons and synaptic connections are modeled via new modified chemical coupling and asynchronous behaviors can be obtained by adjusting synaptic weights in the chemical coupling functions. The results of the standard derivative method are used to adjust the synaptic weights, so asynchronous behaviors between two neurons are obtained easily. As results of these studies, not only chemical coupling function in HR neurons is implemented with digital devices for the first time but also a simple CPG structure is realized electronically by using programmable analog and digital devices.

Neuron coupling types, HR neuron model, coupling of the HR neurons, and the stomatogastric ganglion central pattern generator (CPG) circuit of a lobster are briefly handled in Sect. 2. In this section, after the modified chemical coupling function is introduced, numerical simulation results and the results of standard deviation methods for original and modified chemical coupling are also given together to see the closeness of the nonlinear function characteristics and to examine the synchronization situations of the chemical coupled HR neurons. The details of programmable analog and digital devices-based realizations of chemical coupled HR neurons, namely simple CPG circuit applications, are given in Sect. 3. Some concluding remarks and comparisons are presented in the last section.

2 Chemical coupling of HR neurons

The co-ordination between neurons occurs via their synaptic connections. There are two type synaptic connections including electrical and chemical [1418]. An electrical coupling is a mechanical and electrically conductive link between two neurons. It is formed at a narrow gap between the pre- and postsynaptic cells known as a gap junction. If the voltage of one neuron changes, ions may move through from one cell to the next, so the ions of two neurons flow in direct proportion to the difference between the membrane potential of the neurons. Since electrical coupling can cause either neuron to influence the other, these are bidirectional synapses. On the other hand, there is a gap junction between two neurons in the chemical coupling and the space between the chemical couplings is much larger than an electrical ones. Thus, electrical coupling is faster than the chemical one. In the chemical coupling, the presynaptic neuron releases a chemical (a neurotransmitter) which rapidly crosses the small space across the synapse and binds to a receptor on the postsynaptic neuron. After the neurotransmitter enzymes are released between two neurons, action potential forms in the postsynaptic neuron. If the realized enzyme facilitates the action potential generation, this type chemical coupling is named excitatory coupling; else inhibitory coupling occurs between the two neurons. The difference between an electrical and chemical coupling is the conduction methods between the neurons, but one is not more important than another. They serve different purposes. The one of the most successful neuron models is HR neuron model reflecting these properties of the neurons and synaptic connections. Electrical and chemical coupling can be modeled separately by using HR neuron model, and this is the most important advantage of the coupled HR neurons. FHN and HR neuron models are the simplified type of the Hodgkin–Huxley neuron model. While FHN neuron model does not exhibit some neuron dynamics such as bursting behavior, several dynamic behaviors of a real neuron can be observed with HR neuron model derived from the FHN neuron models. HR neuron model is defined by the following differential equations [12]:

$$\begin{aligned} \dot{{x}}= & {} {f}_{{x}} (x, y, z)=y-{x}^{3}+{bx}^{2}+I-z \nonumber \\ \dot{{y}}= & {} {f}_{{y}} (x, y,z)=1-5{x}^{2}-{y} \nonumber \\ \dot{{z}}= & {} {f}_{{z}} (x, y, z)=\mu (s ({x}-{x}_{\mathrm{rest}} )-z) \end{aligned}$$
(1)

where I represents the membrane input current, b controls the transition between bursting and spiking, \(\mu \) controls the spiking frequency and the number of spikes per burst in the case of spiking and bursting respectively, s adjusts adaptation, \(x_\mathrm{rest}\) is the resting potential. After the parameters \(\mu =0.01\), \({s}=4\), \(x_\mathrm{rest}=-1.6\) are fixed, several different dynamical behaviors of HR neuron model can be obtained by adjusting the b and I parameters. While \(b=2.96\), \({I}=5\) are set to observe the spiking behavior as shown in Fig. 1a, the bursting behavior in Fig. 1b is obtained for the parameter values of \(b=2.6, I=2.22\).

Fig. 1
figure 1

HR neuron dynamics for a spiking mode, b bursting mode

Several studies on synchronization and coupling of the two HR neurons have been reported in the literature. The two coupled HR neurons can be defined by the following equations [46]:

(2)

where . The parameter (\({g}_{\mathrm{s}})\) in Eq. 2 is known as the strength of coupling. In case of the chemical coupling, for the first neuron \(\gamma (x_1 ,x_2 )=\gamma _\mathrm{c} (x_2 )=(1/(1+\mathrm{e}^{-k(x_2 -\theta _\mathrm{s} )}))\), \(\delta (x_1 )=-(x_1 -V_\mathrm{s} )\) and for the second neuron, \(\gamma (x_2 ,x_1 )=\gamma _\mathrm{c} (x_1 )=(1/(1+\mathrm{e}^{-k(x_1 -\theta _\mathrm{s} )}))\), \(\delta (x_2 )=-(x_2 -V_\mathrm{s} )\). Two neurons with chemical coupling were simulated according to \(k=10, V_\mathrm{s}=-2\), \(\theta _\mathrm{s}=-0.28\) by using a simulation model in Eq. 2 where no control method is applied. The synchronization situation of the neurons is impressed by the value of \(({g}_{\mathrm{s}})\) parameter both in electrical and chemical coupling. As mentioned before, various stability control approaches have been proposed to control the synchronal situations between the neurons and one of them is standard deviation method described by Eq. 3 [31]:

$$\begin{aligned}&\sigma =\left[ {\left\langle {\sigma (k)} \right\rangle } \right] \nonumber \\&\sigma (k)=\sqrt{\frac{\left[ {\frac{1}{N}\sum _{i=1}^N {x_i^2 (k)} -\left[ {\frac{1}{N}\sum _{i=1}^N {x_i (k)} } \right] ^{2}} \right] }{(N-1)}} \end{aligned}$$
(3)

where \(\sigma \left( k \right) \) is the kth value in the time series of the kth neuron, \(\langle *\rangle \) denotes the average value of \(\sigma \left( k \right) \) over the evolution time, and [*] denotes the value of \(\sigma \). This method means that for the synchronal two HR neurons: As the dynamical behaviors of two HR neurons get close to each other, the results of the standard deviation function converges to zero. According to the standard deviation graph calculated for chemical coupled two HR neurons in Fig. 2a, chemical coupled two HR neurons exhibit asynchronous, partially synchronous and synchronous behaviors for \({g}_{\mathrm{s}}=-2\), \({g}_{\mathrm{s}}=0.6\), \(g_{\mathrm{s}}=5\), respectively. The phase portrait illustrations of the chemical coupled two HR neurons with these synaptic weights are given, respectively, in Fig. 2b–d. In these figures, \({x}_{1}\) and \({x}_{2}\) represent the membrane potentials of the first and second neurons. The numerical simulation results in these figures verify the results of the standard deviation methods.

Exponential function in chemical coupling description is hard to implement with the digital platforms, so this description must be predisposed to digital realizations. A new approximate function in Eq. 4 is proposed for implementation easiness:

$$\begin{aligned}&\gamma (x)=\frac{1}{1+\mathrm{e}^{-2kx}}\cong \frac{1}{2}+\frac{1}{2}\tanh (kx) \nonumber \\&\tanh (kx)\cong \frac{kx}{\sqrt{1+kx^{2}}}\cong \frac{kx}{1+|kx|} \nonumber \\&\gamma (x)=\frac{1}{1+\mathrm{e}^{-2kx}}\cong \frac{1}{2}+\frac{1}{2}\left( {\frac{kx}{1+|kx|}} \right) \end{aligned}$$
(4)
Fig. 2
figure 2

a Standard deviation graph of the chemical coupled two HR neurons for the synchronization stability. Time series and phase portrait illustrations of the chemical coupled two HR neurons for \(b=2.6, I=2.22\), b asynchronous behaviors for \({g}_{\mathrm{s}}=-2\), c partially synchronous behaviors for \(g_{\mathrm{s}}=0.6\), d synchronous behaviors for \({g}_{\mathrm{s}}=5\)

where \(k=10\). Figure 3 shows the closeness between original and modified chemical coupling functions. In this figure, while the continuous line is the original chemical function characteristic, the nonlinear characteristic of the modified function in Eq. 4 is given with the dotted line.

Fig. 3
figure 3

Nonlinear characteristics of the original and modified chemical coupling functions

Using of the similarity of these two nonlinear functions, two HR neurons are coupled with modified coupling function. For the purpose of identifying the synchronous statuses of these two HR neurons, standard deviation calculation is repeated for modified chemical coupled HR neurons and the results of this calculation are given in the Fig. 4a. Two results in Figs. 2a and 4a are very similar each other. The numerical simulation results for asynchronous, partially synchronous and synchronous behaviors of the modified chemical coupled two HR neurons are given in Fig. 4b–d, respectively, and the modified chemical coupling weights are adjusted to \({g}_{\mathrm{s}}=-2\), \({g}_{\mathrm{s}}=0.6\), \({g}_{\mathrm{s}}=5\) in these numerical simulations. In whole numerical simulations, Euler discretization methods has been used by taking the discretization constant as \(\Delta {h}=0.01\) and the initial conditions as \((x_{1}(0),y_{1}(0),z_{1}(0))=(1,0,0)\) and \((x_{2}(0),y_{2}(0),z_{2}(0))=(2,0,0)\), respectively. Additionally, the model parameter values of HR neurons in the chemical and modified chemical coupled structures are adjusted to same values with the bursting behavior of HR neuron model in Fig 1b, namely, \(\mu =0.01\), \(s=4\), \({x}_{\mathrm{rest}}=-1.6\), \({ b}=2.6, {I}=2.22\).

Fig. 4
figure 4

a Standard deviation graph of the modified chemical coupled two HR neurons for the synchronization stability. Time series and phase portrait illustrations of the chemical coupled two HR neurons for \({b}=2.6, I=2.22\), b asynchronous behaviors for \({g}_{\mathrm{s}}=-2\), c partially synchronous behaviors for \({g}_{\mathrm{s}}=0.6\), d synchronous behaviors for \({g}_{\mathrm{s}}=5\)

Fig. 5
figure 5

a Pyloric stomatogastric CPG network of a lobster (coupled PD and LP neurons), b the dynamical behaviors of the neurons in the pyloric stomatogastric CPG network [66], c numerical simulation results of modified chemical coupled two HR neurons for \({g}_{\mathrm{s}}=-2\)

In order to investigate the coupling types and synchronization situations between neurons, the central pattern generators (CPGs) networks are the suitable structures. Central pattern generators are the specific neural networks which can produce a coordinated rhythmic activity pattern without any rhythmic introduction from the high control centers or sensor feedback in the living body [67]. The neurons in these networks communicate with each other through electrical coupling and chemical coupling, and CPG network structures can be modeled with biological neuron models. In a CPG structure, a rhythmic motor pattern is generated by a pacemaker neuron that can serve as a source of the rhythm. The phase relationships and frequency of the rhythms are based on the network interactions and sensory and central modulation. The pyloric rhythm of a lobster is one of the best understood CPG circuits, and this CPG circuit is given in Fig. 5a. The pyloric rhythm consists of a five-phase rhythm as seen in Fig. 5b. The core of the rhythm is a repeating cycle of activity in which the lateral pyloric (LP), pyloric (PY) and pyloric dilator (PD) neurons fire sequentially. The inferior cardiac (IC) fires in LP time, and the ventricular dilator (VD) often fires in PY time. The AB neuron is the one interneuron of this CPG network and fires in time with the PD neurons. Additionally, PD and LP neurons exhibit asynchronous behavior as seen in Fig. 5b [66]. Here, the asynchronous behaviors of PD and LP neurons are focused. Thus, phase differences between the neurons have been considered rather than the dynamical behaviors of neurons. PD and LP neurons in this CPG network are represented by two HR neurons. Synaptic connections are modeled via new modified chemical coupling, and asynchronous behaviors can be obtained by adjusting the chemical coupling weight to \({ g}_{\mathrm{s}}=-2\) according to the results of the standard deviation calculation in Fig. 4. Numerical simulation results in Fig. 5c of modified chemical coupled two HR neurons for \({ g}_{\mathrm{s}}=-2\) illustrate this asynchronous behaviors. As it is seen from these results, the neurons and synaptic connections in a CPG network can be modeled with HR biological neuron model successfully.

Fig. 6
figure 6

a Schematic block diagram for FPAA-based implementation of chemical coupled two HR neurons

Fig. 7
figure 7

FPAA implementation scheme of the chemical coupled HR neurons

3 Hardware implementations of the chemical coupled two HR neurons

Biological neuron models, coupled artificial neurons and CPG networks, can be implemented with various devices for the some applications required real-time signals. Here, the design processes of programmable analog device- and digital device-based the chemical coupled two HR neurons are presented in detail. Since this chemical coupled simple network reminds of the small part of the stomatogastric ganglion CPG circuit of a lobster, asynchronous behaviors of chemical coupled HR neurons are presented as the results of the experimental realizations. Namely, the programmable analog device- and digital device-based implementations of the chemical coupled PD and LP neurons which are modeled by HR neuron model are presented in this section.

3.1 Programmable analog device-based implementation

Several studies about analog devices-based realizations of HR neuron model and the coupled HR neurons have been reported in the literature [5160], and the experimental realizations of a HR neuron and the electrical coupled HR neurons with programmable analog device are also presented in literature by us [61]. However, any realization example of the chemical coupled HR neurons with a programmable and reconfigurable platform has not been recommended yet. To emulate the interaction of the collective neurons faultlessly and to operate bio-inspired structures precisely, this shortcoming about realization with programmable analog device must be addressed as well. Thus, the realization details of the chemical coupled HR neurons with FPAA (field programmable analog array) are given in this part.

FPAA (field programmable analog array) is a very useful experimental platform with its high stability, accuracy and rapid prototyping specialties to investigate neuronal structures. This programmable analog device is based on the switched-capacitor technology, and it has some limitations such as capacity and a specific saturation level, (\(\pm 2\,\hbox {V}\)). However, FPAA boards can be combined with each other in order to cope with the capacity problem and the saturation problem is resolved with a rescaling operation. The predefined configurable analog modules (CAMs) in the software tool Anadigm Designer2 are used to implement analog functions such as multiplication, addition, filtering, rectification, etc. In this study, AN231E04 type FPAA boards was used and comprehensive descriptions of the CAMs are available on this software tool [68].

Fig. 8
figure 8

FPAA-based experimental results of the chemical coupled two HR neurons for implementation easiness: \({x}_{1}, {x}_{2}\) time domain illustrations, x, 200 mV/div; y, 200 mV/div; time/div, 10 ms. b x-y phase portrait illustration of \({x}_{1}\) and \({x}_{2}\), x, 200 mV/div; y, 200 mV/div for asynchronous behavior

As seen from Fig. 6, four FPAA boards are used to implement two chemical coupled HR neurons. These two HR neurons can be assumed PD and LP neurons in the stomatogastric CPG. While PD neuron is contracted with FPAA1&2 boards, LP neuron is embedded FPAA3&4.

Table 1 Power consumptions and CAB usage capacity of the FPAA-based coupled neurons implementation

PD and LP neurons represented by HR neuron model are implemented with FPAA as in Ref [61], and same parameter values in Ref [61] are also used in this study to implement HR neurons with FPAA. However, the realization of the chemical coupling is integrated to this study. The chemical coupling function for the first neuron is defined by \(\gamma (x_1 ,x_2 )=\gamma _\mathrm{c} (x_2 )=(1/(1+\mathrm{e}^{-k(x_2 -\theta _\mathrm{s} )}))\), \(\sigma (x_1 )=-(x_1 -V_\mathrm{s} )\) functions. In the chemical coupling, \(\gamma _\mathrm{c} (x_j )\) functions are implemented by using TRANSFER FUNCTION blocks in the FPAA2&4 as seen in Fig. 7. \(\sigma (x_i)\) function consists of a difference expression and this function is realized with a SUMDIFF block. \(V_\mathrm{s} \) parameter in this difference expression is a constant value, and it is implemented with a VOLTAGE CAM block. Finally, the MULTIPLIER block is used for performing the multiplication operation in this synaptic connection. Synchronous situations between the chemical coupled HR neurons change depending on the \((g_{\mathrm{s}})\) parameter, and this parameter can be adjusted with the gain of the MULTIPLIER block and it is adjusted to \(-0.5\) after the rescaling process for asynchronous behavior. The experimental results of the asynchronous behavior between chemical coupled PD and LP neuron are given in Fig. 8 for the FPAA-based realization. The CAB usage capacities and power consumptions of chemical coupling implementations are given in Table 1. The performance of the electrical and chemical coupling can be considered both together and separately in the modeling and implementation studies. It is useful to present the differences and similarities between the electrical and chemical coupling studies. In this context, the results of the electrical coupled implementation studies in Ref. [61] are given with the results of chemical ones comparatively in the both FPAA- and FPGA-based implementations. To compare the FPAA-based implementation results of electrical and chemical coupling in terms of area usage, power consumption and implementation advantages, the electrical coupling results coupling in Ref [61] are also given in Table 1. Since chemical coupling functions are constructed on the FPAA2 and FPAA4 boards, CAB usage capacities and power consumptions of these boards increase just a little according to these results. However, the nonlinear expression in the chemical coupling can be embedded only one CAB block and chemical coupling function is implemented easily with FPAA as the electrical coupling.

These experimental results match the numerical simulation result in Fig. 2. By changing the parameter \((g_{\mathrm{s}})\), another synchronization status or realization studies can be implemented easily in this experimental platform without time consumption and another studies about neuron synchronization can be proved rapidly with this analog programmable and reconfigurable device.

3.2 Programmable digital device-based implementation

In the digital experimental realization studied, the models included electrical coupling function and simple descriptions are preferred for implementation easiness. No study about the digital implementation of the chemical coupling defined by a complex nonlinear function is reported in the literature. In this study, to overcome this implementation difficulty, exponential expression in the chemical coupling function are converted to an approximate nonlinear function which is more suitable for digital hardware implementation as mentioned in previous section. Here, the programmable digital device-based implementation of the chemical coupled two HR neurons is made by utilizing the approximate function in Eq. 4 and modified chemical coupled two HR neurons are implemented with FPGA (field programmable gate array) as an example of digital realization for the first time in literature.

In this FPGA-based implementation, it is handled using Cyclone III IC which has 15408 digital blocks and 112 embedded multipliers [69]. Since FPGA is a digital platform, implementation process requires discretization of differential equations in Eq. 1. Euler method is preferred for the discretization because of its simplicity, and the discretization constant is chosen as \(\Delta h=0.01\). Resulting discrete equations are seen in Eq. 5.

$$\begin{aligned} {x}_{{n}+{1}}= & {} {x}_{{n}} +\Delta {h}({y}_{{n}} -{x}_{{n}} ^{{3}}+{bx}_{{n}} ^{{2}}+{I}-{z}_{{n}} ) \nonumber \\ {y}_{{n}+{1}}= & {} {y}_{{n}} +\Delta {h}({1}-{5}{x}_{{n}} ^{{2}}-{y}_{{n}} ) \nonumber \\ {z}_{{n}+{1}}= & {} {z}_{{n}} +\Delta {h}(\mu ({s} ({x}_{{n}} -{x}_{\mathrm{rest}} )-{z}_{{n}})) \end{aligned}$$
(5)

The equation of the modified chemical coupling in Eq. (4) is used to couple two discretized neurons with the initial conditions: (\(x_{{1}}(0),y_{{1}}(0),z_{{1}}(0))=(1,0,0)\) and (\(x_{{2}}(0),y_{{2}}(0),z_{{2}}(0))=(2,0,0)\), respectively. Also, the model parameter values of modified chemical coupled HR neurons are adjusted to \(\mu =0.01\), \({s}=4\), \({ x}_{\mathrm{rest}}=-1.6\), \({b}=2.6\), \({I}=2.22\) values. A block diagram of the FPGA-based implementation for chemical coupled two HR neurons is shown in Fig. 9a. These neurons and their synaptic coupling are defined using VHDL language as in Fig. 9b, and 24-bit fixed point arithmetic (Q7.16) is used in arithmetic operations. (\(x_{n})\) values of each neuron are truncated into 8 bits in order to see their outputs using 8-bit D/A converters. Since the PD and LP neurons represented by HR neurons are handled in this study, the FPGA-based realization results of modified coupled HR neurons are given for asynchronous behavior for \({g}_{\mathrm{s}}=-2\) in Fig. 10. However, the synchronization statuses of modified chemical coupled HR neurons are adjusted by depending on the values of \(({g}_{\mathrm{s}})\).

Fig. 9
figure 9

a Schematic block diagram for FPGA-based implementation of chemical coupled two HR neurons, b VHDL design schemes on Quartus II software of the chemical coupled HR neurons

The synthesis results of FPGA-based realization are given in Table 2, and they are compared with the electrical coupled HR neurons implementation in Ref. [61] in order to see trade-off of the FPGA-based implementations of the coupling methods in terms of area and multiplier usage and maximum frequency range. As it is seen, there is a drastic decrease in the maximum operating frequency when the synaptic coupling is used in implementation. Also, the area consumption is almost doubled. The main culprit behind this costly and slower result is the division operation which is required in the chemical coupling (Eq. 4). As the number of bits increases, digital implementation of a divider becomes costly and the operation becomes slower. Therefore, while digital implementation deficiency problem of the chemical coupled HR neurons is alleviated by using this modified function, electrical coupling is a better choice for digital devices-based implementations.

Fig. 10
figure 10

FPGA-based experimental results of the chemical coupled two HR neurons a \({x}_{1}, {x}_{2}\) time domain illustrations, x, 500 mV/div; y, 500 mV/div; time/div, 10 ms. b x-y phase portrait illustration of \({x}_{1}\) and \({x}_{2}\) x, 500 mV/div; y, 500 mV/div for asynchronous behavior

Table 2 Synthesis results and estimated power consumptions of the FPGA-based implementation

4 Conclusions

In this study, versatile implementations of the chemical coupled two HR neurons are performed with programmable analog and digital devices successfully. The interactions of the collective neurons are emulated with analog programmable device precisely. Since nonlinear chemical coupling function is hard to realize with digital devices, it has been concentrated on the digital implementation of this function. The digital device-based implementation difficulty problem of the nonlinear chemical coupling function is solved by modifying this coupling function.

After the rescaling and the CAM blocks selection process, construction of the required connections between the CAM blocks are done by using the FPAA interface tool to build analog programmable devices-based HR neurons. Thus, programmable analog device-based realization of the chemical coupled HR neurons is reported in this study on the crest of a wave. Although CAB usage capacities and power consumptions increase just a little, four FPAA boards are used for the realization of the chemical coupled HR neurons like as the electrical one.

In the programmable digital device-based implementation process of the chemical coupled HR neurons, firstly, the chemical coupling function is transformed to an approximate nonlinear function in order to overcome the digital device implementation difficulty. Then, the stability control of the new modified chemical coupling function is checked by using the standard deviation method and the synchronization statuses of modified chemical coupled HR neurons are adjusted by utilizing the result of standard deviation method. Therefore, the modified chemical coupled two HR neurons are implemented with FPGA as an example of digital realization for the first time in literature. When the synthesis results of FPGA-based realizations of the electrically and chemically coupled HR neurons are compared with each other, the maximum operating frequency, the area consumption and the number of the used bit of the chemical coupled HR neurons become worse. However, digital implementation deficiency problem of the chemical coupled HR neurons is alleviated by using this modified function.

According to these results, both of the programmable and reconfigurable devices have been used effectively in the experimental realization of the chemical coupled HR neurons. However, there are several advantages of each of these analog and digital reconfigurable devices in terms of the design methodologies. While one FPGA board was sufficient for FPGA implementations in terms of capacity usage, four FPAA boards were required for FPAA implementations. The power consumption of FPAA is more than the FPGA, because of the usage multiple boards in the FPAA-based implementation. On the other hand, the outputs of the FPGA were obtained through DACs and the performance of the FPGA remained dependent on the bit resolution of the DAC in use. In contrast, there was no requirement for an external device to observe the neural dynamics for FPAA. While the nonlinear expression in the chemical coupling function is implemented with FPAA without the need for any extra process, an approximate nonlinear function is used in the digital reconfigurable device implementation. Additionally, although devices performances of the FPGA become worse, digital platform implementation presented closer behaviors to simulation results. Despite of these shortcomings of the reconfigurable platforms, the neuronal realization studies in here may lead to other CPG circuit implementations. It is seen that hardware solutions depending on analog and digital programmable devices play effective roles in various CPG circuit applications. By using design techniques presented here, prototypes of other neuronal applications can be constructed rapidly and the testing and verifying process can be executed on these programmable platforms. After the realization of the chemical coupling function with these useful reconfigurable analog and digital platforms in this study, a whole CPG network structure can be constructed with these experimental platforms consummately in the future work studies.