In reply to peegu: What’s your problem? This is UVM-1.2 code. Setup your simulator properly and it works perfectly.