Professional Documents
Culture Documents
Permission to make digital or hard copies of all or part of this work for personal or
classroom use is granted without fee provided that copies are not made or distributed
for profit or commercial advantage and that copies bear this notice and the full citation
on the first page. Copyrights for components of this work owned by others than ACM Figure 1: Biological sketches of neurons and synapse.
must be honored. Abstracting with credit is permitted. To copy otherwise, or republish,
to post on servers or to redistribute to lists, requires prior specific permission and/or a
fee. Request permissions from permissions@acm.org. However, in biological neural systems, as shown in Figure 1, the
GLSVLSI ’20, September 7–9, 2020, Virtual Event, China signals are transmitted between neurons in the form of spikes, and
© 2020 Association for Computing Machinery.
ACM ISBN 978-1-4503-7944-1/20/09. . . $15.00 the information in the signal (such as intensity and transition) is
https://doi.org/10.1145/3386263.3406940 encoded in the temporal relationship between spikes (spike trains).
469
Poster Session II GLSVLSI ’20, September 7–9, 2020, Virtual Event, China
That is why the spiking neural network (SNN) is gaining more and 2 LIF AND STDP MODELS
more attention in recent years, as a much realistic representation
2.1 LIF Model of Neurons
of the biological neural systems.
It has long been known that the reaction of neurons is determined In SNN, signals are transmitted between neurons in the form of
by the timing relationship between the spikes from the pre-neurons current spike trains, the information carried by the signals is en-
as well as the spikes from post-neurons. This behavior is mathemati- coded in the temporal relationship between the spikes, instead of
cally formulated in the Spiking Timing Dependent Plasticity (STDP) the amplitude and shape [7].
model, where the relative timing order of spikes from pre-neuron Leaky-Integrate-and-Fire (LIF) is a well-accepted and popular
and post-neuron determines the potentiation level (can be positive model of the neuron. In this model, potentials from different synapses
or negative) applied to the neuron. The potentiation levels created will accumulate and raise the potential level of the neuron (potenti-
from each synapse are integrated in the neuron, and when the accu- ation) with leakage, once the potential reaches the threshold level,
mulated potentiation reaches a pre-defined threshold, the neuron a train of spikes is triggered at the output. The temporal density
will emit a series of spikes to the next neuron, this mechanism of the output spikes is determined by the level of potentials, i.e., a
is modeled as Integrate-and-Fire (IF) mechanism. In some more high level of potentiation will cause to fire a train of more densely
accurate modeling, the potentiation integrated at the neuron also spaced spikes from the neuron.
decreases over time, which is known as the Leaky Integra-and-Fire The LIF circuit functionality can be illustrated in Figure 2, and
(LIF) model. quantified by the following equation [8], as shown in Eq. 1:
Both STDP and LIF are fundamental mechanisms that govern 𝑑𝑉𝑚 Õ
𝐶𝑚 = −𝑔(𝑉𝑚 − 𝑉𝑟𝑒𝑠𝑒𝑡 ) + 𝐶𝑚 Δ𝑉 𝛿 (𝑡 − 𝑡𝑖 ) (1)
the behavior of SNN, and SNN implementation needs to accurately 𝑑𝑡 𝑖
represent these two models in order to achieve a good performance.
SNN have already been used in many applications like pattern
recognition [2] and speech recognition [3], which demonstrate
good results comparable to other ANN architectures.
Many different approaches of analog implementation of SNN
had been explored by different researchers. G. Indiveri, et. al. [4]
proposed an analog circuit to imitate the LIF function that con-
sisted of a source follower, three inverters and a current mirror
integrator. The leaky mechanism is achieved by a capacitor and a
single transistor to create a constant current leak. However, this
LIF circuit cannot be directly connected to the STDP module, so it
cannot be cascaded to form a complete neural system. J. M. Cruz-
Albrecht, et. al [5] presented a circuit with STDP mechanism. The
circuit consisted of a voltage-controlled current source (VCCS), a Figure 2: LIF circuit functionality.
hysteresis comparator, a resistor, and a capacitor. However, this
STDP circuit does not include the LIF function. A. Bofill-i-Petit,
et. al [6] presented a VLSI circuit containing neurons and STDP Where 𝐶𝑚 is the capacitance that integrates the input pulses, 𝑉𝑚
synapse, nevertheless, the circuit structure of this work is very is the voltage on the capacitance, conductance 𝑔 is providing the
complicated and needs a high voltage supply. leakage, and is implemented using the pass transistor 𝑀1 , of which
In this paper, a revised analog CMOS implementation of a com- its source-drain conductance is controlled by its gate voltage 𝑉𝑙𝑘 .
plete neural system with STDP and LIF functions is introduced. The When the input current 𝐼𝑖𝑛 arrives at the neuron, the capacitor will
neural system can be constructed using cascaded LIF neuron mod- integrate the current and cause the voltage on the capacitance 𝑉𝑚 to
ules and STDP synapses modules. The circuit is designed with the increase. Meanwhile, the conductance 𝑔 will drain the capacitance.
SMIC 55nm LP CMOS process and operates under the sub-threshold When the 𝑉𝑚 reaches the threshold voltage, a spike will be gener-
region, with a low power supply of 1.0 Volt, and achieves extremely ated and cause the 𝑉𝑚 to return to the initial voltage 𝑉𝑟𝑒𝑠𝑒𝑡 . The
low power consumption. 𝑉𝑚 will be recharged by the incoming current 𝐼𝑖𝑛 and the process
This paper is organized as follows. In Section 2, the mechanisms will repeat again to form a train of spikes. Figure 3 is an illustration
of LIF and STDP models are presented. Section 3 introduces the of the LIF process.
circuit implementation of LIF and STDP functions. Circuit layout
and simulation results are presented in Section 4, followed by the 2.2 Synapse with STDP Model
discussion and conclusion in Section 5. Synapses form the connection for signals traveling between differ-
ent neurons. Each neuron may have several synapses, the accumu-
lated potentiation from different synapses determines the neuron’s
firing activity (through LIF mechanism). A widely accepted synap-
tic model was proposed by Hebbian in 1949 [9]. The theory, often
referred as the Hebbian’s Theory today, describes the principle of
the synaptic plasticity, i.e., the timing order of the spikes between
the pre and post neurons can cause either long-term potentiation
470
Poster Session II GLSVLSI ’20, September 7–9, 2020, Virtual Event, China
+ −Δ𝑡
𝐴 exp ( 𝜏+ ), Δ𝑡 > 0
Assume the voltage 𝑉𝑜 is high at the beginning. The input cur-
Δ𝑤 =
(2) rent 𝐼𝑖𝑛 is integrated on the capacitor 𝐶𝑚 and causes the voltage 𝑉𝑚
− Δ𝑡
Δ𝑡 on the capacitor to increase. Once the 𝑉𝑚 reaches the threshold volt-
−𝐴 exp ( ), < 0
𝜏− age, the Schmitt Trigger is triggered and set 𝑉𝑜 to low. 𝑉𝑜 also feeds
Where the potentiation level Δ𝑤 is determined by both the po- back to NMOS transistor 𝑀2 through an inverter 𝑈 1 . 𝑀2 causes
larity as well as the magnitude of Δ𝑡, which is the arrival timing the capacitor to quickly discharge until 𝑉𝑚 decreases to 𝑉𝑟𝑒𝑠𝑒𝑡 and
difference between spikes from pre and post neurons, and Δ𝑡 = the 𝑉𝑜 returns to its original value. A spike is fired through this
𝑡𝑝𝑟𝑒 −𝑡𝑝𝑜𝑠𝑡 . Δ𝑤 determines either potentiation (positive) or depres- process. As long as 𝐼𝑖𝑛 is applied at the input, a train of spikes will
sion (negative potentiation) state of the neuron, depending on the be generated. The inverter 𝑈 1 is powered by 𝑉𝑤𝑖𝑑𝑡ℎ , therefore, the
relative arrival time of 𝑡𝑝𝑟𝑒 and 𝑡𝑝𝑜𝑠𝑡 . 𝜏+ and 𝜏− are the time constant discharging speed of 𝐶𝑚 is controlled by 𝑉𝑤𝑖𝑑𝑡ℎ , which in turn
of the exponential relationship between Δ𝑤 and Δ𝑡 in potentiation controls the width of the spike. Additionally, the NMOS transistor
and depression state respectively. STDP behavior can be illustrated 𝑀1 controlled by 𝑉𝑙𝑘 forms the leakage channel to slowly discharge
in Figure 4. 𝐶𝑚 (to imitate the leaking), and the temporal density (the spacing
between the spikes) of the spike train is determined by the mag-
nitude of 𝐼𝑖𝑛 . The circuit closely imitates the behavior of the LIF
function.
471
Poster Session II GLSVLSI ’20, September 7–9, 2020, Virtual Event, China
potential is generated by the “synapse potential” block. The voltage the PMOS W/L ratio is 400nm/200nm, and the capacitor 𝐶𝑝𝑜𝑡 1 and
potential starts to discharge until the arrival of post-neuron spike 𝐶𝑝𝑜𝑡 2 is about 300fF.
signal at 𝑡𝑝𝑜𝑠𝑡 , which closes the switch and passes the remaining
charge to the “transconductance amplifier”. The “transconductance
amplifier” amplifies the charge and consequently charges the ca-
pacitance 𝐶. In this process, if the post-neuron spike arrives imme-
diately after the pre-neuron spike, or |Δ𝑡 | = |𝑡𝑝𝑟𝑒 −𝑡𝑝𝑜𝑠𝑡 | is small,
more charge will be passed to the “transconductance amplifier” and
consequently create larger Δ𝑉𝑤 . However, if the post-neuron spike
arrives long after the pre-neuron spike, or |Δ𝑡 | = |𝑡𝑝𝑟𝑒 −𝑡𝑝𝑜𝑠𝑡 | is
large, Δ𝑉𝑤 is small.
This analysis demonstrates that the above design can imitate
the behavior of STDP function when Δ𝑡 = 𝑡𝑝𝑟𝑒 −𝑡𝑝𝑜𝑠𝑡 < 0. For the
case Δ𝑡 > 0, another complementary implementation is needed, as
shown in Figure 7.
Figure 8: Circuit implementation of the transconductance
amplifier.
Figure 7: Schematic of the STDP circuit (both 𝑡𝑝𝑟𝑒 <𝑡𝑝𝑜𝑠𝑡 and 4 SIMULATION RESULTS
𝑡𝑝𝑟𝑒 >𝑡𝑝𝑜𝑠𝑡 cases). 4.1 LIF Circuit
The complete circuit is designed with SMIC 55nm LP (low power)
The design has two parts, namely, the top part corresponds to process node and simulated under HSPICE. Different input patterns
the case where 𝑡𝑝𝑟𝑒 <𝑡𝑝𝑜𝑠𝑡 , and the bottom parts corresponds to the are applied to test the circuit.
complementary case where 𝑡𝑝𝑟𝑒 >𝑡𝑝𝑜𝑠𝑡 . When the pre-neuron spike
arrives, transistor 𝑀1 is conducting and 𝐶𝑝𝑜𝑡 1 begins to charge,
when the post-neuron spike arrives, the gate of the transconduc-
tance 𝑈 1 is opened; the remaining charge on 𝐶𝑝𝑜𝑡 1 drives 𝑈 1 from
terminal 𝑖𝑛𝑝 and consequently charges 𝐶 𝑤 , which causes 𝑉𝑤 to
rise. Conversely, when the post-neuron spike arrives before the
pre-neuron spikes, the bottom part will work complementarily.
Please notice that in the bottom part, 𝐶𝑝𝑜𝑡 2 is connected to the 𝑖𝑛𝑛
terminal of the transconductance 𝑈 2 , therefore, when 𝑡𝑝𝑟𝑒 >𝑡𝑝𝑜𝑠𝑡 ,
𝐶 𝑤 will be discharged and 𝑉𝑤 will decrease accordingly.
More specifically, in this design, the timing constant 𝜏+ and 𝜏−
for 𝑡𝑝𝑟𝑒 <𝑡𝑝𝑜𝑠𝑡 and 𝑡𝑝𝑟𝑒 >𝑡𝑝𝑜𝑠𝑡 conditions in Eq. 2 are controlled by
the voltage signal 𝑉𝑡𝑎𝑢−𝑝𝑟𝑒 and 𝑉𝑡𝑎𝑢−𝑝𝑜𝑠𝑡 respectively, i.e., capac-
itance 𝐶𝑝𝑜𝑡 1 and 𝐶𝑝𝑜𝑡 2 are discharged through transistor 𝑀2 and Figure 9: Simulation results of the LIF neuron circuit.
𝑀4 , 𝑉𝑡𝑎𝑢−𝑝𝑟𝑒 and 𝑉𝑡𝑎𝑢−𝑝𝑜𝑠𝑡 control the gate of 𝑀2 and 𝑀4 and con-
sequently control how much charges on 𝐶𝑝𝑜𝑡 1 and 𝐶𝑝𝑜𝑡 2 can be In LIF function, the temporal density of the output spike train
passed through 𝑈 1 and 𝑈 2 to charge/discharge 𝐶 𝑤 . is modulated by the potentiation level 𝐼𝑖𝑛 . In order to verify this
Compared with other STDP implementations in [14] [15]. We mechanism, current input 𝐼𝑖𝑛 with different values is applied. 𝑉𝑙𝑘 is
adopt a much simpler design [11], the time constant of 𝑉𝑡𝑎𝑢−𝑝𝑟𝑒 set to 500mV and 𝑉𝑤𝑖𝑑𝑡ℎ is set to 900mV. The simulation results are
(also 𝑉𝑡𝑎𝑢−𝑝𝑜𝑠𝑡 ) only needs three transistors to implement, as shown illustrated in Figure 9, the top trace is the value of 𝐼𝑖𝑛 , the middle
in Figure 7. In our design, the NMOS W/L ratio is 250nm/200nm, trace is the voltage 𝑉𝑚 on the capacitor 𝐶𝑚 , and the bottom trace
472
Poster Session II GLSVLSI ’20, September 7–9, 2020, Virtual Event, China
is the output spike train. Obviously, when the current 𝐼𝑖𝑛 goes into (a)
the LIF neuron circuit, 𝑉𝑚 begins to rise, and only when 𝑉𝑚 reaches
the threshold, as seen in the figure, the capacitor quickly discharges
and creates a spike. And it is clear that the spike train is getting
denser when the current 𝐼𝑖𝑛 gets larger, which is expected with the
LIF neuron model.
When being operated under 1.0 Volt of power supply, with 𝑉𝑙𝑘
set to 500mV and 𝑉𝑤𝑖𝑑𝑡ℎ set to 900mV, the LIF circuit consumes
45.26pJ of energy per spike. Table 1 lists the comparison of energy
per spike between our implementation and other designs. In fact,
different implementations were aimed at different applications, for
example, some circuits operate in pA range and cannot be used
together with other circuits. That is why the energy consumption
in Table 1 differ so significantly and is hard to compare fairly. More
(b)
specifically, the input current range is ∼0.1µA in [17] and the input
current is in pA range in [5]. In our design, the current spike is in
the range of ∼µA, which can be easily integrated with other CMOS Figure 10: Simulation results of the STDP circuit. (a) Potenti-
circuits. ation changes in the case of 𝑡𝑝𝑟𝑒 <𝑡𝑝𝑜𝑠𝑡 and 𝑡𝑝𝑟𝑒 >𝑡𝑝𝑜𝑠𝑡 . (b) The
potentiation and 𝑡𝑝𝑟𝑒 / 𝑡𝑝𝑜𝑠𝑡 arrival timing relationship.
4.2 STDP Circuit
To verify the functionality of our STDP implementation, pre-neuron of those works integrate the LIF and STDP functions together to
spike trains as well as post-neuron spike trains are programmed form a complete neuron. However, in real biological neural systems,
in HSPICE and generated as inputs. By manipulating the timing the potentiation generated from the STDP function at each synapse
relationship between the pre and post neuron spike pairs, we can is accumulated at the neuron and controls the firing behavior of
accurately test the potentiation level of the STDP circuit under spike trains through the LIF mechanism. Therefore, it is crucial
different spike pairs. The spike pulse has a width of 0.5ms with 1.0V that the STDP output can be cascaded into LIF function to imitate
amplitude, which is compatible to the neuron output spikes from a complete neuron. In this work, we have tuned the STDP and LIF
our LIF circuit. circuits such that the outputs and inputs of different modules can
Figure 10(a) illustrates the simulation results. The top trace is be cascaded.
the pre-neuron spike train and the second trace is the post-neuron We use two LIF blocks and one STDP block to demonstrate the
spike train, the output potentiation 𝑉𝑤 is illustrated in the third complete neuron integration. The two LIF blocks generate the pre-
trace. Both 𝑡𝑝𝑟𝑒 <𝑡𝑝𝑜𝑠𝑡 and 𝑡𝑝𝑟𝑒 >𝑡𝑝𝑜𝑠𝑡 cases are tested. At first, pre- neuron and post-neuron spike trains, and feed the spike trains to
neuron spike arrives before post-neuron spike, or 𝑡𝑝𝑟𝑒 <𝑡𝑝𝑜𝑠𝑡 , 𝑉𝑤 the STDP block as inputs, as shown in Figure 11(a). The results
increases. Then post-neuron spike arrives before pre-neuron spike, are shown in Figure 11(b). The top and middle traces illustrate the
and 𝑉𝑤 decreases accordingly. The simulation results align well pre-neuron spike train and post-neuron spike train respectively.
with the STDP mechanism. The potentiation changes (𝑉𝑤 ) from STDP block are shown in the
We have generated different pairs of pre-neuron spikes and post- bottom trace. Because we are using the pairwise STDP model, the
neuron spikes and plot the resulting potentiation Δ𝑉𝑤 in Figure weight will be determined by each pair of pre and post neuron
10(b). The relationship between Δ𝑡 and Δ𝑉𝑤 closely follow Eq.2, spikes. The potentiation variation can be clearly seen from the
and proves that our STDP circuit successfully imitate the STDP bottom trace of Figure 11(b). When the post-neuron spike arrives
functionality. before the pre-neuron spike, the weight decreases and when the
pre-neuron spike arrives before the post-neuron spike, the weight
4.3 Integration with LIF and STDP Functions increases. These results match well with the STDP model.
Previous designs of neuromorphic circuits focus mostly on the The 2-LIF-1-STDP circuit had been designed with SMIC 55nm
individual implementation of either LIF or STDP functions. Fewer LP process, and the layout is illustrated in Figure 12. The whole
473
Poster Session II GLSVLSI ’20, September 7–9, 2020, Virtual Event, China
(a) ACKNOWLEDGMENTS
Thanks to the fund and support of Key-Area Research and Develop-
ment Program of Guang Dong Province (Project No. 2019B010140001
and 2019B010142001), High-level University Fund, (Project No.
G02236002), and University Key Laboratory of Advanced Wireless
Communications of Guangdong Province (Project No.2018KSYS005).
REFERENCES
[1] Amirhossein Tavanaei, Masoud Ghodrati, Saeed Reza Kheradpisheh, Timothée
Masquelier, and Anthony Maida. Deep learning in spiking neural networks.
Neural Networks, 2018.
[2] Daniel J Saunders, Hava T Siegelmann, Robert Kozma, et al. STDP Learning of
Image Patches with Convolutional Spiking Neural Networks. In 2018 International
Joint Conference on Neural Networks (IJCNN), pages 1–7. IEEE, 2018.
[3] Stéphane Loiselle, Jean Rouat, Daniel Pressnitzer, and Simon Thorpe. Exploration
(b) of Rank Order Coding with Spiking Neural Networks for Speech Recognition. In
Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005.,
volume 4, pages 2076–2080. IEEE, 2005.
Figure 11: STDP potentiation (weight) changes under the [4] Giacomo Indiveri. A Low-power Adaptive Integrate-and-Fire Neuron Circuit. In
spike trains from pre-neuron and post-neuron train gener- Proceedings of the 2003 International Symposium on Circuits and Systems, 2003.
ISCAS’03., volume 4, pages IV–IV. IEEE, 2003.
ated from LIF. (a) Circuit schematic. (b) Testing results. [5] Jose M Cruz-Albrecht, Michael W Yung, and Narayan Srinivasa. Energy-efficient
Neuron, Synapse and STDP Integrated Circuits. IEEE transactions on biomedical
circuits and systems, 6(3):246–256, 2012.
[6] Adria Bofill-i Petit and Alan F Murray. Synchrony Detection and Amplification
by Silicon Neurons With STDP Synapses. IEEE Transactions on Neural Networks,
15(5):1296–1304, 2004.
[7] Filip Ponulak and Andrzej Kasinski. Introduction to Spiking Neural Networks:
Information Processing, Learning and Applications. Acta neurobiologiae experi-
mentalis, 71(4):409–433, 2011.
[8] Ying-Hui Liu and Xiao-Jing Wang. Spike-frequency Adaptation of a Generalized
Leaky Integrate-and-Fire Model Neuron. Journal of computational neuroscience,
10(1):25–45, 2001.
[9] Donald Olding Hebb. The organization of behavior: A neuropsychological theory.
Psychology Press, 2005.
[10] Hideki Tanaka, Takashi Morie, and Kazuyuki Aihara. A CMOS Spiking Neural
Network Circuit with Symmetric/Asymmetric STDP Function. IEICE transactions
on fundamentals of electronics, communications and computer sciences, 92(7):1690–
1698, 2009.
Figure 12: Layout of the LIF and STDP integration (two LIF [11] Mostafa Rahimi Azghadi, Nicolangelo Iannella, Said F Al-Sarawi, Giacomo In-
diveri, and Derek Abbott. Spike-based Synaptic Plasticity in Silicon: Design,
neuron circuits and a STDP circuit). Implementation, Application, and Challenges. Proceedings of the IEEE, 102(5):717–
737, 2014.
[12] Luiz Alberto Pasini Melek, Anselmo Luís da Silva, Márcio Cherem Schneider,
and Carlos Galup-Montoro. Analysis and Design of the Classical CMOS Schmitt
layout area is 44.807 × 34.933𝜇𝑚 2 , and can be operated under 1.0 Trigger in Subthreshold Operation. IEEE Transactions on Circuits and Systems I:
volts power supply. Specifically, in this design, with the frequency Regular Papers, 64(4):869–878, 2016.
of pre-spike train equals 30Hz and the frequency of post-spike [13] IM Filanovsky and H Baltes. CMOS Schmitt Trigger Design. IEEE Transactions on
Circuits and Systems I: Fundamental Theory and Applications, 41(1):46–49, 1994.
train equals 20Hz, the power consumption of the whole circuit is [14] Adria Bofill-i Petit and Alan F Murray. Synchrony Detection by Analogue VLSI
4.907𝜇𝑊 . Neurons with Bimodal STDP Synapses. In Proceedings of the 16th International
Conference on Neural Information Processing Systems, pages 1027–1034. Citeseer,
2003.
5 CONCLUSION [15] Mostafa Rahimi Azghadi, Said Al-Sarawi, Nicolangelo Iannella, and Derek Abbott.
Efficient Design of Triplet based Spike-Timing Dependent Plasticity. In The 2012
In this paper, analog circuit implementations of spiking neural net- International Joint Conference on Neural Networks (IJCNN), pages 1–7. IEEE, 2012.
works (SNN) are explored. Both the Leaky-Integrate-and-Fire (LIF) [16] Giacomo Indiveri, Elisabetta Chicca, and Rodney Douglas. A VLSI array of
functions of the neurons as well as the Spiking Timing Dependent low-power spiking neurons and bistable synapses with spike-timing dependent
plasticity. IEEE transactions on neural networks, 17(1):211–221, 2006.
Plasticity (STDP) functions of the synapses are proposed and tested. [17] Jayawan HB Wijekoon and Piotr Dudek. Integrated circuit implementation of a
Compared with previous works by other researchers, the circuits cortical neuron. In 2008 IEEE International Symposium on Circuits and Systems,
pages 1784–1787. IEEE, 2008.
for the LIF and the STDP functions are much simpler and have fewer
components. And the LIF neuron circuit can be easily cascaded with
the STDP circuit. The pulse width, the leaky time constant as well
474