SN2
Stochastic
Output
Figure 2.17: Apply 10–bit Weighted Binary SNG in stochastic
computation
FF29
FF28
x
FF27
FF26
FF25
FF23
Second binary number
Stochastic Output
FF22
y
FF20
FF19
.
.
.
FF10
FF9
. s
.
.
FF1
FF0
30-Stages LFSR
Figure 2.18: Stochastic scale adder based on 10–bit Weighted
Binary SNG in stochastic computation
is devided by three 10–tuples (each tuple includes 10 stages as
shown in Fig.2.18), three
10–WBtt and an MUX for stochastic scale addition. We set
as follows
-
First ten stages combines with binary value of Selection signal
to be as inputs for the first 10–WBtt. This one will produce
Selection signal in Stochastic encoding s.
-
Second 10–tuple and the first binary number are the inputs for
the second 10–WBtt which generates stochastic format y
of second element in our scale adder.
-
Third 10–WBtt uses the last 10–tuple and the first
element in binary form to create its stochastic representation.
Note that maximum length condition of LFSR is still ensured, i.e, the
primitive polynomial f (x) =
x29 + x28 + x26 + x25 is considered in
calculating the feedback path.