xmsim is not exiting the simulation for this error. It is unusual for the simulator to not exit for an error. I have just started using uvm and this is occurring during the randomization step for a sequencer item.
I am using -EXIT on the command line.
I am using Xcelium 19.03-s013.
Any insights are appreciated. Thanks.
That's done by design because the randomisation failure is expected to be handled by the testbench. There are plenty of valid use cases where you expect randomisation to fail and you don't want that to reflect as a failed test. For example in CPU verification you try 1st pass to randomise all the "ideal" constraints, if it fails you disable some of the constraints and try again so that you still get an instruction generated, but it might be not quite your preferred one.If you really want the test to stop and fail due to over-constraint, simply upgrade it to an error using the xrun option "-xmfatal RNDCNSTE".
Thanks for the information, StephenH. This is very helpful.