IEEE Circuits and Systems Magazine - Q3 2020 - 30

Applications of DSC include the implementation of digital signal
processing (DSP) algorithms, ordinary differential equation (ODE)
solvers and the training of machine learning models.
reduces the variance, thus reducing the error. This is
shown as follows.
The error introduced by DSC at each step of computation is related to the variance of the difference of the
two accumulated stochastic bits, A i - B i . When independent RNGs are used to generate A i and B i , the variance at a single step is given by
Var [A i - B i] = E[(A i - B i - E (A i - B i)) 2]
= E[(A i - B i) 2] - 2E[A i - B i]
(PA, i - PB, i) + (PA, i - PB, i) 2,

	

(12)

where PA, i and PB, i are the probabilities of A i and B i being '1', respectively, i.e., E[A i] = PA, i and E[B i] = PB, i . Since
(A i - B i)2 is 0 when A i and B i are equal or 1 when they are
different, E[(A i - B i)2] equals PA, i (1 - PB, i) + PB, i (1 - PA, i),
which is the probability that A i and B i are different
when A i and B i are independently generated1. (12) is
then rewritten as
Varind [A i - B i] = PA, i (1 - PB, i) + PB, i (1 - PA, i) - (PA, i - PB, i) 2
(13)
= PA, i (1 - PA, i) + PB, i (1 - PB, i) .
On the other hand, if the same RNG is used to generate A i and B i, the variance of A i - B i can be derived
from (12) as well. However, since only a shared random
1 

2

2

2

E [(A i - B i) ] = Prob [(A i - B i) = 1] # 1 + Prob [(A i - B i) = 0] # 0

0

Pseudorandom
Quasirandom

Misalignment (dB)

-10
-20
-30
-40
-50
-60

0

0.5
1
1.5
2
2.5
3
Number of Steps (×64 Input Samples)
×104

Figure 26. Comparison of the convergence of misalignment
using pseudorandom and quasirandom numbers.
30 	

number is used to generate A i and B i, E[(A i - B i)2 ]
equals ; PA, i - PB, i ;, which gives the -probability that A i
and B i are different. Thus, (12) can be rewritten as
	

Varshare [A i - B i] = ; PA, i - PB, i ; - (PA, i - PB, i)2
	
= ; PA, i - PB, i ; ( 1 - ; PA, i - PB, i ; ).

(14)

Since Varshare [A i - B i] - Varind [A i - B i] = 2PB, i PA, i - 2 min
(PA, i P B, i) # 0, we obtain Varshare [A i - B i] # Varind [A i B i] for any i = 0, 1, 2, f [54]. Therefore, sharing the use
of RNGs to generate input stochastic bit streams improves the accuracy.
For the circuit in Fig. 22, though the inputs of the stochastic integrator are the outputs of the stochastic multipliers instead of being directly generated by a DSNG, the
RNG sharing scheme still works in the generated DSS's
encoding d + and d -, i.e., it produces a smaller variance in
the computed result [56]. However, an uncorrelated RNG
must be used to generate the DSS encoding the recorded
output of the neuron, o, because independency is still required in general for accurate stochastic multiplication.
The accuracy of the accumulated result is also related
to the bit-width of the counter in the stochastic integrator. The bit width does not only determine the resolution
of the result but also the step size, especially in the ODE
solver, adaptive filter and the gradient descent circuit.
A larger bit width indicates a smaller resolution and a
smaller step size for fine tuning at the cost of extra computation time. It is shown in [56] that the multi-step variance bound exponentially decreases with the bit width
of the counter. However, for the IIR filter, the change of
bit-width affects the characteristic of the filter.
For the ODE solver circuit, it is also found that the
use of quasirandom numbers improves the accuracy
compared to the use of pseudorandom numbers [54].
However, when the DSS is used to encode signals from
the input or images such as in the adaptive filter and
the gradient descent algorithm, quasirandom and
pseudorandom numbers produce similar accuracy.
The reason may lie in the fact that the values of the
encoded signals in these two applications are independently selected from the training dataset. However,
for the ODE solver, the signals encoded are samples
from continuous functions, and adjacent samples have
similar values. As a result, within a short segment of
the DSS in this case, it approximately encodes the
same value. It then works similarly as CSC, for which

IEEE CIRCUITS AND SYSTEMS MAGAZINE 		

THIRD QUARTER 2020



IEEE Circuits and Systems Magazine - Q3 2020

Table of Contents for the Digital Edition of IEEE Circuits and Systems Magazine - Q3 2020

Contents
IEEE Circuits and Systems Magazine - Q3 2020 - Cover1
IEEE Circuits and Systems Magazine - Q3 2020 - Cover2
IEEE Circuits and Systems Magazine - Q3 2020 - Contents
IEEE Circuits and Systems Magazine - Q3 2020 - 2
IEEE Circuits and Systems Magazine - Q3 2020 - 3
IEEE Circuits and Systems Magazine - Q3 2020 - 4
IEEE Circuits and Systems Magazine - Q3 2020 - 5
IEEE Circuits and Systems Magazine - Q3 2020 - 6
IEEE Circuits and Systems Magazine - Q3 2020 - 7
IEEE Circuits and Systems Magazine - Q3 2020 - 8
IEEE Circuits and Systems Magazine - Q3 2020 - 9
IEEE Circuits and Systems Magazine - Q3 2020 - 10
IEEE Circuits and Systems Magazine - Q3 2020 - 11
IEEE Circuits and Systems Magazine - Q3 2020 - 12
IEEE Circuits and Systems Magazine - Q3 2020 - 13
IEEE Circuits and Systems Magazine - Q3 2020 - 14
IEEE Circuits and Systems Magazine - Q3 2020 - 15
IEEE Circuits and Systems Magazine - Q3 2020 - 16
IEEE Circuits and Systems Magazine - Q3 2020 - 17
IEEE Circuits and Systems Magazine - Q3 2020 - 18
IEEE Circuits and Systems Magazine - Q3 2020 - 19
IEEE Circuits and Systems Magazine - Q3 2020 - 20
IEEE Circuits and Systems Magazine - Q3 2020 - 21
IEEE Circuits and Systems Magazine - Q3 2020 - 22
IEEE Circuits and Systems Magazine - Q3 2020 - 23
IEEE Circuits and Systems Magazine - Q3 2020 - 24
IEEE Circuits and Systems Magazine - Q3 2020 - 25
IEEE Circuits and Systems Magazine - Q3 2020 - 26
IEEE Circuits and Systems Magazine - Q3 2020 - 27
IEEE Circuits and Systems Magazine - Q3 2020 - 28
IEEE Circuits and Systems Magazine - Q3 2020 - 29
IEEE Circuits and Systems Magazine - Q3 2020 - 30
IEEE Circuits and Systems Magazine - Q3 2020 - 31
IEEE Circuits and Systems Magazine - Q3 2020 - 32
IEEE Circuits and Systems Magazine - Q3 2020 - 33
IEEE Circuits and Systems Magazine - Q3 2020 - 34
IEEE Circuits and Systems Magazine - Q3 2020 - 35
IEEE Circuits and Systems Magazine - Q3 2020 - 36
IEEE Circuits and Systems Magazine - Q3 2020 - 37
IEEE Circuits and Systems Magazine - Q3 2020 - 38
IEEE Circuits and Systems Magazine - Q3 2020 - 39
IEEE Circuits and Systems Magazine - Q3 2020 - 40
IEEE Circuits and Systems Magazine - Q3 2020 - 41
IEEE Circuits and Systems Magazine - Q3 2020 - 42
IEEE Circuits and Systems Magazine - Q3 2020 - 43
IEEE Circuits and Systems Magazine - Q3 2020 - 44
IEEE Circuits and Systems Magazine - Q3 2020 - 45
IEEE Circuits and Systems Magazine - Q3 2020 - 46
IEEE Circuits and Systems Magazine - Q3 2020 - 47
IEEE Circuits and Systems Magazine - Q3 2020 - 48
IEEE Circuits and Systems Magazine - Q3 2020 - 49
IEEE Circuits and Systems Magazine - Q3 2020 - 50
IEEE Circuits and Systems Magazine - Q3 2020 - 51
IEEE Circuits and Systems Magazine - Q3 2020 - 52
IEEE Circuits and Systems Magazine - Q3 2020 - 53
IEEE Circuits and Systems Magazine - Q3 2020 - 54
IEEE Circuits and Systems Magazine - Q3 2020 - 55
IEEE Circuits and Systems Magazine - Q3 2020 - 56
IEEE Circuits and Systems Magazine - Q3 2020 - 57
IEEE Circuits and Systems Magazine - Q3 2020 - 58
IEEE Circuits and Systems Magazine - Q3 2020 - 59
IEEE Circuits and Systems Magazine - Q3 2020 - 60
IEEE Circuits and Systems Magazine - Q3 2020 - 61
IEEE Circuits and Systems Magazine - Q3 2020 - 62
IEEE Circuits and Systems Magazine - Q3 2020 - 63
IEEE Circuits and Systems Magazine - Q3 2020 - 64
IEEE Circuits and Systems Magazine - Q3 2020 - 65
IEEE Circuits and Systems Magazine - Q3 2020 - 66
IEEE Circuits and Systems Magazine - Q3 2020 - 67
IEEE Circuits and Systems Magazine - Q3 2020 - 68
IEEE Circuits and Systems Magazine - Q3 2020 - Cover3
IEEE Circuits and Systems Magazine - Q3 2020 - 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