In reply to chr_sue:
if I want to randomize the ‘ready’ signal on the bus, how can I implement in my driver?
I currently do it in this way:
define a rand variable ready in the class driver_cfg, create a substance of driver_cfg in the build_phase of driver class, then use driver_cfg.randmize() with {constraint of ready}, but I don’t know how to implement in the constraint.