SYSTEM TASK EXAMPLES

examples on system task using blocking and non blocking assignments

In reply to Shivansh Bhardwaj:

It would help to explain what your concern was with these two different constructs.

In reply to Shivansh Bhardwaj:

It was in relation with verilog event regions and why we use program block in SV. I wanted examples on systemtask that shows it causes race conditions.

In reply to Shivansh Bhardwaj:

I’m not sure what you’re talking about. Race condition arise when when a variable is written in one process and access in another process in the same event region. There is nothing special about system tasks compared to any other statement; it ca read and write variables just like a function. And I recommend not using program blocks because they do not eliminate all race conditions