推荐星级:
  • 1
  • 2
  • 3
  • 4
  • 5

SystemVerilog验证方法实例random_generator

更新时间:2019-09-10 06:25:46 大小:4M 上传用户:sun2152查看TA发布的资源 标签:systemverilog 下载积分:1分 评价赚积分 (如何评价?) 打赏 收藏 评论(0) 举报

资料介绍

We have seen how to generate random numbers. But the numbers range from-

(2**32-1) to 2**32. Most of the time, the requirement don't need this range.

For example, take a memory. The address starts from 0 to some 1k or

1m. Cenerating a random address which DUT is not supporting is meaningless.

In verilog there are no constructs to constraint randomization. Fallowingexample demonstrated how to generate random number between 0 to 10. Using

% operation, the remainder of any number is always between 0 to 10.

The above example shows the generation of numbers from 0 to N. Some specification require the range to start from non Zero number. MIN +{$random}

%((MAX-MIN) will generate random numbers between MIN and MAX.


部分文件列表

文件名 大小
SystemVerilog验证方法实例random_generator.pdf 4M

全部评论(0)

暂无评论

上传资源 上传优质资源有赏金

  • 打赏
  • 30日榜单
  • 我来看看怎 打赏5.00元   3天前

    用户:xzxbybd

  • 21ic下载 打赏310.00元   3天前

    用户:zhengdai

  • 21ic下载 打赏310.00元   3天前

    用户:gsy幸运

  • 21ic下载 打赏310.00元   3天前

    用户:小猫做电路

  • 21ic下载 打赏270.00元   3天前

    用户:liqiang9090

  • 21ic下载 打赏210.00元   3天前

    用户:w178191520

  • 21ic下载 打赏210.00元   3天前

    用户:kk1957135547

  • 21ic下载 打赏110.00元   3天前

    用户:w1966891335

  • 21ic下载 打赏110.00元   3天前

    用户:w993263495

  • 21ic下载 打赏100.00元   3天前

    用户:1111111ffgg

  • 21ic下载 打赏40.00元   3天前

    用户:jh03551

  • 21ic下载 打赏30.00元   3天前

    用户:WK520077778

  • 21ic下载 打赏30.00元   3天前

    用户:sun2152

  • 21ic下载 打赏15.00元   3天前

    用户:x15580286248

  • 21ic下载 打赏25.00元   3天前

    用户:xzxbybd

  • 21ic下载 打赏25.00元   3天前

    用户:ytt006

  • 21ic下载 打赏10.00元   3天前

    用户:poplarly

  • 21ic下载 打赏20.00元   3天前

    用户:muguang28

  • 21ic下载 打赏10.00元   3天前

    用户:konglongcong

  • 21ic下载 打赏10.00元   3天前

    用户:铁蛋锅

  • 21ic下载 打赏20.00元   3天前

    用户:muguang28

推荐下载