Is the randomize() method virtual in SystemVerilog?
Is the randomize() method virtual in SystemVerilog?
Model answer
Yes. randomize() is a built-in virtual method of every class. When it is called through a base class handle that refers to a derived object, the derived object's random variables and constraints are all used. It cannot be overridden by the user. To add custom steps, use pre_randomize() and post_randomize() .