The constraint solver is solving without any issues,when the ‘hard’ keyword is removed. See this link.
What is the reason to specify the ‘hard’ explicitly? By default constraints are hard.
Yes, I didn’t fully understand the root of the issue. So, I just posted the solution in the hope that it helps to continue with your work. Also, when you remove ‘hard’ again VCS solves without any issues, even in the case of v_rand_en equal to zero.
Here are some more observations I didn’t post earlier:
I couldn’t find any keyword such as ‘hard’ in SV-2012 LRM. All the examples in LRM has only ‘soft’ to differentiate soft constraints.
When I choose IRUN in the eda playground example link I shared, it throws some compile error for ‘hard’ keyword too.
Where-as VCS gives constraint failure. So, it makes me think that VCS is doing something extra on top of SV LRM.
So, better to talk to your EDA Vendor, or wait for the experts in this forum to comment.