华南理工大学学报(自然科学版) ›› 2013, Vol. 41 ›› Issue (11): 1-7.doi: 10.3969/j.issn.1000-565X.2013.11.001

• 电子、通信与自动控制 •    下一篇

基于FPGA 的高斯分布随机数的生成

姚若河 徐新才   

  1. 华南理工大学 电子与信息学院,广东 广州 510640
  • 收稿日期:2013-04-24 修回日期:2013-07-01 出版日期:2013-11-25 发布日期:2013-10-11
  • 通信作者: 姚若河(1961-),男,教授,博士生导师,主要从事集成电路系统设计、半导体物理及器件研究. E-mail:phrhyao@scut.edu.cn
  • 作者简介:姚若河(1961-),男,教授,博士生导师,主要从事集成电路系统设计、半导体物理及器件研究.
  • 基金资助:

    国家自然科学基金资助项目( 61274085)

Generation of Gaussian Random Number Based on FPGA

Yao Ruo-he Xu Xin-cai   

  1. School of Electronic and Information Engineering,South China University of Technology,Guangzhou 510640,Guangdong,China
  • Received:2013-04-24 Revised:2013-07-01 Online:2013-11-25 Published:2013-10-11
  • Contact: 姚若河(1961-),男,教授,博士生导师,主要从事集成电路系统设计、半导体物理及器件研究. E-mail:phrhyao@scut.edu.cn
  • About author:姚若河(1961-),男,教授,博士生导师,主要从事集成电路系统设计、半导体物理及器件研究.
  • Supported by:

    国家自然科学基金资助项目( 61274085)

摘要: 为提高对高斯分布概率密度函数的近似精度,提出一种基于Ziggurat 算法的新的高斯分布随机数生成算法.新算法将高斯分布概率密度函数分成顶部、中部、尾部3 个子区域分别进行矩形嵌套分层分割,分割后以正比于矩形面积的概率随机选择一个矩形区域,生成概率密度函数为对应矩形的随机数点( x,y) ,其横坐标x 为输出的高斯分布随机数. 针对仿真中出现的极值情况,进一步对尾部区域进行了优化处理.此外,基于XilinxVirtex 4 完成了改进后算法的硬件设计. 仿真结果表明,新算法结构简单,易于FPGA 硬件实现,生成的随机数能通过高斯分布特性和随机性统计检验.

关键词: 现场可编程门阵列, 随机数生成, 高斯分布, Ziggurat 算法

Abstract:

In order to improve the approximation precision of the Gaussian probability density function ( PDF) ,anew generation algorithm of Gaussian random number is proposed based on the Ziggurat algorithm.In this algorithm,the Gaussian PDF is divided into three subareas including the top,the middle and the tail regions,and thesubareas are further partitioned into rectangles via nested segmentation.After that,one of the rectangles is randomlychosen with the probability being in direct proportion to the rectangle area,and the random points ( x,y),whosePDF is identical to the rectangle,are generated,with x being the output as a Gaussian random number.Moreover,the tail region is treated separately to take into consideration the extreme values occurring in the simulation.Thenew algorithm is implemented on Xilinx Virtex 4,and the simulated results indicate that the proposed algorithmwith simple structure is easy to implement on FPGA,and that the generated random numbers can successfully passthe statistical tests of Gaussian distribution and randomness.

Key words: field-programmable gate arrays, random number generation, Gaussian distribution, Ziggurat algorithm

中图分类号: