Disabling processes from within a function

In reply to haykp:

  1. SV allows the use of the disable
  2. i can see cases where it is clear and convenient to fire one or more threads. This is particularly true for systems-level modeling.
  3. an easy example: thread1 does a large transfer of data.
    Thread2 does a check on the transfer or some other activity (e.g. A cpu interrupt) and based on thread2 conditions decides to kill the thread1 activity.
    By creating the concurrent separate threads, those thresds are easier to write and understand as they run independently from each other.

Ben systemverilog.us