仿真通过system_tf传递参数
一、在code中调用系统函数$value$plusargs
包含两个参数,var需要在code声明,user_string是自定义;最后在run的时候,指定参数
eg:
code:
reg a;
integer s;
initial begin
s=$value$plusargs(“a=%d”,a);
end
% ./simv +a=100 <other option>
二、$test$plusargs
包含一个参数
if ($test$plusargs(“test001”))begin
.....
end
%.simv +test001
posted on 2023-06-15 14:58 YuhaoZhang 阅读(17) 评论(0) 收藏 举报