if($value$plusargs("BLOGGER_NAME_IS = %s", name))
$display("blogger's name is %s",name);
在验证平台(tb)中加上上述代码,然后在仿真运行的命令中(Makefile)加上如下的命令:
+BLOGGER_NAME_IS = Pengyuyan
最后验证平台会打印出:
blogger's name is Pengyuyan
initial begin:main_block
init seed=1;
if($value$pluasrgs("seed=%0d",seed))
display("**********seed=%d***********",seed);
end
测试的时候,平台会打印出来
"**********seed=1**********"