module test;
int rtl_times;
bit rtl_switch;
initial begin
if($value$plusargs("user_times=%d",rtl_times))begin
$display("canli get the param from user is %d",rtl_times);
end
else begin
$display("canli not get the param from user");
end
if($test$plusargs("user_switch"))begin
$display("has user_switch");
end
else begin
$display("no rtl_switch");
end
end
endmodule
$value$plusargs(“user_times=%d“,rtl_times)
最新推荐文章于 2023-12-20 20:43:53 发布