How to use constraint_mode to control one constraint in an override ovm_object

In reply to sages:

Yes Sages,
You are correct. I also believe casting is the best way. But another way of doing the same is - In base_test you can have object of type A (A_h) and in your local test create an object of type b (B_h), so that you can switch off the constraint using this handle. Post this you can assign the same handle to A_h.

  • Ashith