08 2018 档案

systemverilog中获取system environment
摘要:在systemverilog code中,获取系统环境变量有以下方式: 1. 用$直接获取:user_name = "$USER"; 2. 用sim option的方式:SIM_OPTS_+=+USER=${USER}, 然后用$value$plusargs("USER=%s",user_name) 阅读全文

posted @ 2018-08-29 16:39 lybinger 阅读(1473) 评论(0) 推荐(0)

实用random
摘要:int a; void'(randomize(a)); a = $urandom_range(0,100); a = $urandom%100; 阅读全文

posted @ 2018-08-28 11:27 lybinger 阅读(174) 评论(0) 推荐(0)

systemverilog $system("command")
摘要:可以Systemverilog语句中调用系统脚本,方法是通过调用$system("command"); $system()可以是function,也可以是task。 阅读全文

posted @ 2018-08-22 11:08 lybinger 阅读(2419) 评论(0) 推荐(0)

[vcs option] +prof -simprofile
摘要:+prof will be replaced by -simprofile in new release of VCS. compile time option. whit it, VCS generates a vcs.prof file during simulation, which cont 阅读全文

posted @ 2018-08-15 16:39 lybinger 阅读(3277) 评论(0) 推荐(0)

导航