some verilog note
$finish
: 仿真器完成仿真并退出
$stop
: 仿真器停止仿真,给出 . 之后仿真继续
monitor and display
monitor once and it will output whenever the value changes
while display will output the value just at time it appears.
It is strong recommend that use display in testbench, not use it in
translate on
and translate off
$random(seed)
force 之后,只有release之后变量值才能变化,之前都被force掉
fork join 里面调用task 并行仿真