在 VHDL 中获取 Unix 时间或纪元
为了在我的测试平台中引入一些随机性,我想使用以当前 Unix 时间或纪元为种子的伪随机数。 VHDL 中有一个(不可综合的 ofc)函数吗?我需要它在 VHDL 2008 中工作。
To introduce some randomness in my testbench I would like to use pseudo-random numbers seeded with the current Unix time or epoch. Is there a (non-synthesizable ofc) function in VHDL for that? I need it to work in VHDL 2008.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么不在用于运行模拟的同一命令行上简单地传递通用参数值? bash 示例:
Why not simply passing a generic parameter value on the same command line you use to run the simulation? Example with
bash
: