Skip to main content

Abstract

Stochastic computing (SC) is a computing domain that exploits probability mathematics to perform arithmetic operations with a single logic gate. The recent IoT and edge computing trends bring up the SC technology introduced in the 1960s due to its power efficiency and error resilience properties. In SC, a stochastic number generator (SNG) converts binary numbers into stochastic streams via a weighted binary generator (WBG) and linear feedback shift register (LFSR). Those application-specific integrated circuit (ASIC) logic gates might not be optimised for the field-programmable gate array (FPGA), causing FPGA resources underutilisation. In contrast, FPGA friendly multiplexer (MUX) could generate stochastic streams directly from binary input with a specialised finite state machine (FSM). However, it is limited on state tracking when the binary resolution expands, bottlenecking the MUX-based SNG's scalability. This paper proposes a novel function block of Weighed Binary Converter (WBC) to port the traditional LFSR to MUX, eliminating FSM bottlenecking and improving MUX SNG's scalability than WBG SNG in FPGA. The designs are synthesised with Xilinx Vivado HLS targeted at Z7010 FPGA SoC. The result shows that WBC enables 50% resource reduction on 4-bit MUX SNG and 62.5% bus width reduction on 8-bit MUX SNG, speeding up the logic setup time by 15.1% and 7.3%, respectively, compared to the ASIC logic transcoded WBG SNG.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 259.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 329.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Sim, H., Lee, J.: A new stochastic computing multiplier with application to deep convolutional neural networks. In: Proceedings - Design Automation Conference, pp. 1–6 (2017)

    Google Scholar 

  2. Hojabr, R., Givaki, K., Tayaranian, S.M.R., et al.: SkippyNN: an embedded stochastic-computing accelerator for convolutional neural networks. In: Proceedings - Design Automation Conference. ACM, pp. 1–6 (2019)

    Google Scholar 

  3. Chen, T.H., Hayes, J.P.: Design of division circuits for stochastic computing. In: Proceedings of IEEE Computer Society Annual Symposium on VLSI, ISVLSI, pp. 116–121 (2016)

    Google Scholar 

  4. Chu, S.I.: New divider design for stochastic computing. IEEE Trans. Circ. Syst. II Exp. Briefs 67, 147–151 (2020)

    Google Scholar 

  5. Alaghi, A., Hayes, J.: Survey of stochastic computing. ACM Trans. Embedded Comput. Syst. 12(2s), 1–19 (2013)

    Article  Google Scholar 

  6. Ichihara, H., Ishii, S., Sunamori, D., et al.: Compact and accurate stochastic circuits with shared random number sources. In: 2014 32nd IEEE International Conference on Computer Design, ICCD 2014, pp. 361–366 (2014)

    Google Scholar 

  7. Kim, K., Lee, J., Choi, K.: An energy-efficient random number generator for stochastic circuits. In: Proceedings of the Asia and South Pacific Design Automation Conference, ASP-DAC, pp. 256–261 (2016)

    Google Scholar 

  8. Xie, Y., Liao, S., Yuan, B., et al.: Fully-parallel area-efficient deep neural network design using stochastic computing. IEEE Trans. Circ. Syst. II Exp. Briefs 64(12), 1382–1386 (2017). https://doi.org/10.1109/TCSII.2017.2746749

    Article  Google Scholar 

  9. Joe, H., Kim, Y.: Novel stochastic computing for energy-efficient image processors. Electronics (Switzerland) 8, 1–11 (2019)

    Google Scholar 

  10. Salehi, S.A.: Low-cost stochastic number generators for stochastic computing. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 28, 992–1001 (2020)

    Article  Google Scholar 

  11. Yang, M., Li, B., Lilja, D.J., et al.: Towards theoretical cost limit of stochastic number generators for stochastic computing. In: Proceedings of IEEE Computer Society Annual Symposium on VLSI, ISVLSI, , pp. 154–159. IEEE (2018)

    Google Scholar 

Download references

Acknowledgement

The author would like to acknowledge the Ministry of Education Malaysia’s financial assistance through Universiti Sains Malaysia RUI grant number 1001/P-ELECT/8014152.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Zaini Abdul Halim .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Lee, Y.Y., Abdul Halim, Z., Ab Wahab, M.N. (2022). Novel FPGA-Optimized Stochastic Number Generator for Stochastic Computing. In: Mahyuddin, N.M., Mat Noor, N.R., Mat Sakim, H.A. (eds) Proceedings of the 11th International Conference on Robotics, Vision, Signal Processing and Power Applications. Lecture Notes in Electrical Engineering, vol 829. Springer, Singapore. https://doi.org/10.1007/978-981-16-8129-5_94

Download citation

Publish with us

Policies and ethics