Detect randomization failure while using `uvm_do_with macro

I am using `uvm_do_wth (seq_name, {some constraints}). If the randomization fails, then there is no way to flag it. One had to manually check the log file to see if there is any constraint failure. Is there any way to resolve this issue?

In reply to jigar123:

It depends what you mean by “flag it”. The `uvm_do macros emit a uvm_warning with the ID: “RNDFLD”, so there are a number of ways to catch that warning.

We recommend not using the `uvm_do macros and instead inserting the exact code needed to meet your requirements.