| ||
class my_driver #(int data_width=32) extends uvm_driver #(my_seq_item); protected virtual my_interface #(data_width) my_vif; //... endclass class my_agent #(int data_width=32) extends uvm_agent; my_driver#(data_width) my_drv; //... endclass class my_env extends uvm_env; my_agent #(16) agent_w16; my_agent #(32) agent_w32; //... endclass