Background: irun.
(1) Passing value while compilation:-define N=2.
Refer to this page:
https://stackoverflow.com/questions/27779959/how-to-pass-value-to-define-n
(2) Passing value while execution:+N=2. Then in initial block, invoke system task:$test$plusargs and $value$plusargs.
Refer to System Verilog Manual.
网友评论