English

Design and Analysis of Efficient Maximum/Minimum Circuits for Stochastic Computing

Signal Processing 2018-07-19 v1

Abstract

In stochastic computing (SC), a real-valued number is represented by a stochastic bit stream, encoding its value in the probability of obtaining a one. This leads to a significantly lower hardware effort for various functions and provides a higher tolerance to errors (e.g., bit flips) compared to binary radix representation. The implementation of a stochastic max/min function is important for many areas where SC has been successfully applied, such as image processing or machine learning (e.g., max pooling in neural networks). In this work, we propose a novel shift-register-based architecture for a stochastic max/min function. We show that the proposed circuit has a significantly higher accuracy than state-of-the-art architectures at comparable hardware cost. Moreover, we analytically proof the correctness of the proposed circuit and provide a new error analysis, based on the individual bits of the stochastic streams. Interestingly, the analysis reveals that for a certain practical bit stream length a finite optimal shift register length exists and it allows to determine the optimal length.

Keywords

Cite

@article{arxiv.1807.06966,
  title  = {Design and Analysis of Efficient Maximum/Minimum Circuits for Stochastic Computing},
  author = {Michael Lunglmayr and Daniel Wiesinger and Werner Haselmayr},
  journal= {arXiv preprint arXiv:1807.06966},
  year   = {2018}
}
R2 v1 2026-06-23T03:05:55.885Z