IEEE Circuits and Systems Magazine - Q1 2021 - 19

Stochastic Computing and Hyper-Dimensional Computing randomness improves
the robustness of circuits subject to faults or component variability.

pi = c

p^ X h i
m
1 - p^ X h

(25)

and by applying (21) to normalize (25), we obtain (26):
p^ X h i
m
1 - p^ X h
pi = N - 1
j
/ c 1 -p^pX^hX h m
j=0
c

(26)

Based on the configuration in (23), (22) can be rewritten as (27):
p^ Z h =

N-1

/

si pi

(27)

i = N/2

and by substituting (26) in (27), we obtain (28):
p^ X h i
m
p^ X h
1
i = N/2
p^ Z h = N - 1
j
/ c 1 -p^pX^hX h m
j=0
N-1

/

c

p ^ X h N/2
p^ X h N
m -c
m
1 - p^ X h
1 - p^ X h
=
N
p^ X h
m
1- c
1 - p^ X h
N/2
p^ X h
c
m
1 - p^ X h
=
p ^ X h N/2
m
1+ c
1 - p^ X h
c

(28)

Adopting the bipolar coding format, which means that
the ranges of real numbers x and z are extended to
-1 # a / x, z # 1, and assuming that the probability of
a bit in the stream being one P ^a = 1 h = ^a + 1 h /2, (28)
leads to (29):
1 + x N/2
` 1- x j -1
z=
1 + x N/2
` 1- x j +1

(29)

By using the Taylor expansion shown in (30), (29) is rewritten to compute tanh based on SC (31):
1 + x . e x ; 1 - x . e -x
N

N

x
- x
2
2
z = e N - e N = tanh ` N x j
- x
x
2
e2 +e 2

and Lemma 3 is proved.
FIRST QUARTER 2021

(30)
(31)
Y

The stochastic implementation of other functions,
such as the absolute value, the exponentiation, and the
max/min functions can be carried out using linear FSMs
[63] and [61]. These functions support, for example,
the development of deep learning applications, as described in Section IV-A. The characteristics of SC make
it suitable, in particular, for designing embedded systems. It offers a lower circuit area and power consumption, as well as high error resilience, in comparison to
their binary system counterparts [64].
Since operations at the logic level are performed on
randomized values, an attractive feature of SC is the degree of tolerance to errors [65]. A stochastic bitstream
of length m represents numbers with a precision of
1/m. The error follows a normal distribution with zero
mean and a variance that is inversely proportional to
the bitstream length N ^v . 1/ N h [56]. ForĀ  example,
insufficient bitstream length or randomness can be
leveraged in approximate computing [66], [67].
Several processors, more or less dedicated, have
been developed to apply SC to different applications,
such as Artificial Neural Networks (ANNs), control
systems, and the decoding of modern error-correcting
codes [67]. Stochastic Recognition and Mining processor (StoRM) uses SC to efficiently materialize computational kernels to perform classification, search, and
inference on real data [68]. The StoRM architecture is a
2D array of stochastic Processing Elements (PEs) (typically 15 # 15) with a streaming memory hierarchy, mitigating the overhead of binary-to-stochastic conversion
by sharing the corresponding arithmetic units across
rows or columns of stochastic PEs. Experimental results
from the implementation of StoRM in CMOS TSMC 65 nm
technology show that SC allows a highly compact implementation, resulting in order-of-magnitude less circuit
area and power consumption.
However, computation with SC requires multiple cycles,
equal to the number of bits in the stochastic bitstream.
Since the length of the bitstream grows with the precision
of the data being represented, regardless of its lower power consumption, the PE ends up consuming more energy
than a conventional binary processing element. To mitigate this intrinsic limitation (increase in cycle count) of
SC, vector processing and segmented stochastic processing are adopted [68]. Segmented stochastic processing is
a hybrid representation that divides the binary data into
equally sized segments that are represented by individual
IEEE CIRCUITS AND SYSTEMS MAGAZINE

19



IEEE Circuits and Systems Magazine - Q1 2021

Table of Contents for the Digital Edition of IEEE Circuits and Systems Magazine - Q1 2021

Contents
IEEE Circuits and Systems Magazine - Q1 2021 - Cover1
IEEE Circuits and Systems Magazine - Q1 2021 - Cover2
IEEE Circuits and Systems Magazine - Q1 2021 - Contents
IEEE Circuits and Systems Magazine - Q1 2021 - 2
IEEE Circuits and Systems Magazine - Q1 2021 - 3
IEEE Circuits and Systems Magazine - Q1 2021 - 4
IEEE Circuits and Systems Magazine - Q1 2021 - 5
IEEE Circuits and Systems Magazine - Q1 2021 - 6
IEEE Circuits and Systems Magazine - Q1 2021 - 7
IEEE Circuits and Systems Magazine - Q1 2021 - 8
IEEE Circuits and Systems Magazine - Q1 2021 - 9
IEEE Circuits and Systems Magazine - Q1 2021 - 10
IEEE Circuits and Systems Magazine - Q1 2021 - 11
IEEE Circuits and Systems Magazine - Q1 2021 - 12
IEEE Circuits and Systems Magazine - Q1 2021 - 13
IEEE Circuits and Systems Magazine - Q1 2021 - 14
IEEE Circuits and Systems Magazine - Q1 2021 - 15
IEEE Circuits and Systems Magazine - Q1 2021 - 16
IEEE Circuits and Systems Magazine - Q1 2021 - 17
IEEE Circuits and Systems Magazine - Q1 2021 - 18
IEEE Circuits and Systems Magazine - Q1 2021 - 19
IEEE Circuits and Systems Magazine - Q1 2021 - 20
IEEE Circuits and Systems Magazine - Q1 2021 - 21
IEEE Circuits and Systems Magazine - Q1 2021 - 22
IEEE Circuits and Systems Magazine - Q1 2021 - 23
IEEE Circuits and Systems Magazine - Q1 2021 - 24
IEEE Circuits and Systems Magazine - Q1 2021 - 25
IEEE Circuits and Systems Magazine - Q1 2021 - 26
IEEE Circuits and Systems Magazine - Q1 2021 - 27
IEEE Circuits and Systems Magazine - Q1 2021 - 28
IEEE Circuits and Systems Magazine - Q1 2021 - 29
IEEE Circuits and Systems Magazine - Q1 2021 - 30
IEEE Circuits and Systems Magazine - Q1 2021 - 31
IEEE Circuits and Systems Magazine - Q1 2021 - 32
IEEE Circuits and Systems Magazine - Q1 2021 - 33
IEEE Circuits and Systems Magazine - Q1 2021 - 34
IEEE Circuits and Systems Magazine - Q1 2021 - 35
IEEE Circuits and Systems Magazine - Q1 2021 - 36
IEEE Circuits and Systems Magazine - Q1 2021 - 37
IEEE Circuits and Systems Magazine - Q1 2021 - 38
IEEE Circuits and Systems Magazine - Q1 2021 - 39
IEEE Circuits and Systems Magazine - Q1 2021 - 40
IEEE Circuits and Systems Magazine - Q1 2021 - 41
IEEE Circuits and Systems Magazine - Q1 2021 - 42
IEEE Circuits and Systems Magazine - Q1 2021 - 43
IEEE Circuits and Systems Magazine - Q1 2021 - 44
IEEE Circuits and Systems Magazine - Q1 2021 - 45
IEEE Circuits and Systems Magazine - Q1 2021 - 46
IEEE Circuits and Systems Magazine - Q1 2021 - 47
IEEE Circuits and Systems Magazine - Q1 2021 - 48
IEEE Circuits and Systems Magazine - Q1 2021 - 49
IEEE Circuits and Systems Magazine - Q1 2021 - 50
IEEE Circuits and Systems Magazine - Q1 2021 - 51
IEEE Circuits and Systems Magazine - Q1 2021 - 52
IEEE Circuits and Systems Magazine - Q1 2021 - 53
IEEE Circuits and Systems Magazine - Q1 2021 - 54
IEEE Circuits and Systems Magazine - Q1 2021 - 55
IEEE Circuits and Systems Magazine - Q1 2021 - 56
IEEE Circuits and Systems Magazine - Q1 2021 - 57
IEEE Circuits and Systems Magazine - Q1 2021 - 58
IEEE Circuits and Systems Magazine - Q1 2021 - 59
IEEE Circuits and Systems Magazine - Q1 2021 - 60
IEEE Circuits and Systems Magazine - Q1 2021 - 61
IEEE Circuits and Systems Magazine - Q1 2021 - 62
IEEE Circuits and Systems Magazine - Q1 2021 - 63
IEEE Circuits and Systems Magazine - Q1 2021 - 64
IEEE Circuits and Systems Magazine - Q1 2021 - 65
IEEE Circuits and Systems Magazine - Q1 2021 - 66
IEEE Circuits and Systems Magazine - Q1 2021 - 67
IEEE Circuits and Systems Magazine - Q1 2021 - 68
IEEE Circuits and Systems Magazine - Q1 2021 - 69
IEEE Circuits and Systems Magazine - Q1 2021 - 70
IEEE Circuits and Systems Magazine - Q1 2021 - 71
IEEE Circuits and Systems Magazine - Q1 2021 - 72
IEEE Circuits and Systems Magazine - Q1 2021 - 73
IEEE Circuits and Systems Magazine - Q1 2021 - 74
IEEE Circuits and Systems Magazine - Q1 2021 - 75
IEEE Circuits and Systems Magazine - Q1 2021 - 76
IEEE Circuits and Systems Magazine - Q1 2021 - 77
IEEE Circuits and Systems Magazine - Q1 2021 - 78
IEEE Circuits and Systems Magazine - Q1 2021 - 79
IEEE Circuits and Systems Magazine - Q1 2021 - 80
IEEE Circuits and Systems Magazine - Q1 2021 - 81
IEEE Circuits and Systems Magazine - Q1 2021 - 82
IEEE Circuits and Systems Magazine - Q1 2021 - 83
IEEE Circuits and Systems Magazine - Q1 2021 - 84
IEEE Circuits and Systems Magazine - Q1 2021 - 85
IEEE Circuits and Systems Magazine - Q1 2021 - 86
IEEE Circuits and Systems Magazine - Q1 2021 - 87
IEEE Circuits and Systems Magazine - Q1 2021 - 88
IEEE Circuits and Systems Magazine - Q1 2021 - Cover3
IEEE Circuits and Systems Magazine - Q1 2021 - Cover4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021Q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q1
https://www.nxtbookmedia.com