In reply to cgales:
In reply to yakirye:
Without a complete example showing your issue, it’s difficult to make any recommendations.
It seems that you are trying to impose a constraint in the post_randomize() function which needs to be utilized in the main randomize() call. What about the case where cls_out_doq_active_reg is all 0’s? It is impossible to randomize tmp_hw2sw_ring to a valid value if this occurs.
If you post your entire class and what you are trying to accomplish, perhaps a better approach could be provided.
‘cls_out_doq_active_reg’ is never zero (by constraint).
the error seems to be related to a kind of a syntax/elab issue.
unfortunally, i can’t provide the entire class as it is too sensitive…