1 of 12

TRUE‐BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

Mehran Moghadam1, Shelby Williams2, Abu Kaisar Mohammad Masum2,�M. Hassan Najafi1, Sercan Aygun2, and Magdy Bayoumi2

1Electrical, Computer, and Systems Engineering Department, Case Western Reserve University, Cleveland, OH, USA

2School of Computing and Informatics, University of Louisiana at Lafayette, Lafayette, LA, USA

1

2 of 12

  • Introduction
    • Stochastic Computing
  • Motivation for True Randomness
  • Overview of TRUE-BSG
  • Design Details
  • Performance Evaluations
  • Hardware Cost & Energy Efficiency
  • Application – Image Compositing
  • Conclusion

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

2

Outline

3 of 12

Stochastic Computing (SC)

    • Re-emerging computing paradigm – approximate computing
    • Long bit-stream representation vs binary representation
    • No bit significant - Equal weight for all digits
    • Mapping Scalar value to the probability of occurring ‘1’s in the bit-stream
    • Arithmetic operations via simple logic gates
      • Multiplication via single AND gate considering uncorrelated inputs

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

3

11110000, 10101010, 11001010,…

 

1

0

1

0

1

0

1

0

x=0.5

Comparator

RNG

SC Bit-Streams

Binary to SC conversion

(00000100)2

Base-2

Most- and least-significant bits

 

 

 

 

 

 

 

 

01010110

01111101

01010100

 

 

 

 

R

 

 

Introduction

4 of 12

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

4

Limitations of Existing Random Number Generators (RNGs):

• Pseudo-RNGs (e.g., LFSRs): Deterministic, risk bias and correlation.

• Quasi-RNGs (e.g., Sobol sequences): Improved randomness yet incur high hardware cost.

True Random Number Generators (TRNGs):

• Exploit unpredictable physical phenomena (thermal/quantum noise).

• Deliver high entropy and minimal correlation, ideal for SC.

Need: A fast, energy-efficient TRNG tailored for SC applications.

Motivations for True Randomness

5 of 12

Core Idea:

  • Integrates a high-quality TRNG based on ring oscillators.

Key Attributes:

  • Speed: Generates random bits at 1 Gbps (GHz speed vs. MHz for state-of-the-art works).
  • Quality: Provides true randomness with high entropy.
  • Efficiency: Offers energy-efficient bit-stream generation suited for resource-constrained systems.

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

5

Overview of TRUE-BSG

6 of 12

TRNG Architecture:

  • Utilizes ring oscillators with multiplexers and nine selection bits.

Modes of Operation:

  • MetaStability (MS): Initializes by setting outputs to a known state.
  • Ring Oscillator Modes (RO3 & RO5): �Switch modes to extract randomness via metastability and jitter.

Operation Flow:

  • Mode transitions (MS → RO3/RO5 → MS) extract high-entropy bits for SC bit-stream generation.

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

6

Design Details

7 of 12

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

7

Novel approach for Generating desired SC bit-streams

from a single TRNG stream

Comparison of SC bit-stream generation accuracy

Performance Evaluation

Mean Absolute Error (MAE) decreases with increased bit-stream length.

Converting 100,000 inputs in [0,1] into SC bit-streams.

8 of 12

Performance Evaluation of MAE

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

8

SC Arithmetic Operations:

  • Comparable accuracy to Software-based built-in RNG with improved true randomness.

9 of 12

Hardware Cost & Energy Efficiency of Number Generators

Synthesis Results (45nm Technology):

  • Area: 223 µm²
  • Energy: 34 fJ per random bit

Comparison:

  • 8-bit LFSR: 167 µm²; 299 fJ per bit
  • 8-bit Sobol: 941 µm²; 600 fJ per bit

Advantage:

  • Significant energy savings (8.8× to 17.6× lower energy per bit) with competitive area footprint.

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

9

10 of 12

Application – Image Compositing

Case Study:

  • Image compositing (blending foreground and background) using a MUX.

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

10

11 of 12

Conclusion & Impact

Contributions:

  • TRNG-based bit-stream generator delivering fast (1 Gbps), energy-efficient, high-quality randomness.
  • Enhances SC accuracy and robustness while lowering hardware energy costs.

Implications:

  • Ideal for next-generation low-power, fault-tolerant, highly parallel SC systems (edge and resource-constrained applications).

Future Directions:

  • Further integration with SC architectures and exploration of additional application domains.

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

11

12 of 12

TRUE-BSG: A True Random Bit-Stream Generator for Fast and Efficient Stochastic Computing

12

Thanks for your attention!

Questions:

Mehran Moghadam

moghadam@case.edu

This paper: