# How can I change driver type in an agent, if both are extended from uvm\_driver

**URL:** <https://verificationacademy.com/forums/t/how-can-i-change-driver-type-in-an-agent-if-both-are-extended-from-uvm-driver/40484>\
**Category:** UVM\
**Tags:** UVM, override, uvm\_factory\
**Created:** [June 3, 2022, 3:08pm UTC](https://verificationacademy.com/forums/t/how-can-i-change-driver-type-in-an-agent-if-both-are-extended-from-uvm-driver/40484 "2022-06-03T15:08:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [June 8, 2022, 7:40pm UTC](https://verificationacademy.com/forums/t/how-can-i-change-driver-type-in-an-agent-if-both-are-extended-from-uvm-driver/40484/2 "2022-06-08T19:40:24Z")

</div>

_In reply to [akhil\_dv](https://verificationacademy.com/forums/t/how-can-i-change-driver-type-in-an-agent-if-both-are-extended-from-uvm-driver/40484):_

You can instantiate uvm\_driver in releases _after_ UVM 1.2 because none of the uvm\_ classes were registered with the factory prior to that.

But it would be better to create your own driver base class to handle common procedures like setting up your virtual interfaces, etc.

---

_[View the full topic](https://verificationacademy.com/forums/t/how-can-i-change-driver-type-in-an-agent-if-both-are-extended-from-uvm-driver/40484)._
