Explain the Verilog event scheduler
Explain the Verilog event scheduler
Model answer
Simulation time advances in **time slots**. Inside one slot, events are processed region by region: {|l|l|}\hline Region & Events\\ \hline Active & blocking assignments, RHS of NBA, continuous assignments, \$display\\ \hline Inactive & \#0\ blocking assignments\\ \hline NBA & update of LHS of non-blocking assignments\\ \hline Postponed & \$strobe,\ \$monitor\ (end of time slot)\\ \hline Flow: Active → Inactive → NBA → (new events loop back to Active) → Postponed → next time slot. Order of events *within* the Active region is non-deterministic, which is the root of most Verilog races. \