Abstract Classes and constraints?

In reply to dave_59:

I’m not currently using UVM, but the environment we created does support it, and it’ll eventually be used in a full UVM setup. I may take a look at the UVM factory to see how it’s done there.

I’m not sure how I’d go about extending the concrete classes just to create constraints. Currently, I have only about 4-5 concrete class definitions implementing the interface class. Some of the concrete classes are parameterized. So many class specialization “variants”. But 1000s of constructed objects. I don’t think I can think of any way of (sanely) creating/managing (many) new extended classes - just to add constraints. It all depends on the context. I need to mull this over a bit.

I’m glad you at least confirmed my suspicions, randomize() with {} clause is not OOP friendly. I just need to see if there’s any (even kludge) way of doing what I want.

Regards,

Mark