# \#uvm-factory-override

**URL:** https://verificationacademy.com/forums/tag/uvm-factory-override/7797.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [UVM FACTORY Example Usage](https://verificationacademy.com/forums/t/uvm-factory-example-usage/51498)

<div class="topic-metadata">

**Author:** [@Mahesh\_6](https://verificationacademy.com/forums/u/Mahesh_6)\
**Replies:** 2\
**Last updated:** [December 18, 2025, 1:13am UTC](https://verificationacademy.com/forums/t/uvm-factory-example-usage/51498 "2025-12-18T01:13:54Z")

</div>

Hi All, \`include "uvm\_macros.svh" import uvm\_pkg::\*; class packet extends uvm\_component; \`uvm\_component\_utils(packet) function new(string name, uvm\_component parent); super.new(name, parent); endfunctio…

---

## [Override by type with name conflicts](https://verificationacademy.com/forums/t/override-by-type-with-name-conflicts/47897)

<div class="topic-metadata">

**Author:** [@nimrodw1](https://verificationacademy.com/forums/u/nimrodw1)\
**Replies:** 1\
**Last updated:** [July 24, 2024, 12:06am UTC](https://verificationacademy.com/forums/t/override-by-type-with-name-conflicts/47897 "2024-07-24T00:06:29Z")

</div>

I can’t use set\_type\_override\_by\_type() if the parent class has a “name-duplicate” in another package. The packages and the classes: package a\_pkg; import uvm\_pkg::\*; class parent\_obj extends uvm\_object; \`…

---

## [How to override base sequence with virtual sequence from command line using factory?](https://verificationacademy.com/forums/t/how-to-override-base-sequence-with-virtual-sequence-from-command-line-using-factory/42153)

<div class="topic-metadata">

**Author:** [@Mahammadshahid\_Shaikh](https://verificationacademy.com/forums/u/Mahammadshahid_Shaikh)\
**Replies:** 14\
**Last updated:** [August 21, 2023, 4:35pm UTC](https://verificationacademy.com/forums/t/how-to-override-base-sequence-with-virtual-sequence-from-command-line-using-factory/42153 "2023-08-21T16:35:57Z")

</div>

I want to override base sequence written inside my base test with virtual sequence from command line argument using factory override, I have read a paper from Sunburst about factory but it is being explained from code us…

---

## [Factory type override of sequence item does not work](https://verificationacademy.com/forums/t/factory-type-override-of-sequence-item-does-not-work/41646)

<div class="topic-metadata">

**Author:** [@UVM\_LOVE](https://verificationacademy.com/forums/u/UVM_LOVE)\
**Replies:** 9\
**Last updated:** [June 6, 2023, 10:09am UTC](https://verificationacademy.com/forums/t/factory-type-override-of-sequence-item-does-not-work/41646 "2023-06-06T10:09:57Z")

</div>

Hi, Can Factory override the uvm\_sequence\_item ? Following code does not override the sequence item type used by the driver class. set\_type\_override\_by\_type(mem\_seq\_item::get\_type(), child\_seq\_item::get\_type()); I ca…

---

## [Factory Over-ride and Parameterization](https://verificationacademy.com/forums/t/factory-over-ride-and-parameterization/41441)

<div class="topic-metadata">

**Author:** [@Husni\_Mahdi](https://verificationacademy.com/forums/u/Husni_Mahdi)\
**Replies:** 1\
**Last updated:** [April 1, 2023, 7:50am UTC](https://verificationacademy.com/forums/t/factory-over-ride-and-parameterization/41441 "2023-04-01T07:50:09Z")

</div>

Hello everyone, I have been trying out factory override and have hit a dead-end I can not escape. I have two sequence items as below, class seq\_item extends uvm\_sequence\_item; rand logic rst…

---

## [New() v/s create](https://verificationacademy.com/forums/t/new-v-s-create/40678)

<div class="topic-metadata">

**Author:** [@Akhil\_Mehta](https://verificationacademy.com/forums/u/Akhil_Mehta)\
**Replies:** 3\
**Last updated:** [July 28, 2022, 10:55pm UTC](https://verificationacademy.com/forums/t/new-v-s-create/40678 "2022-07-28T22:55:10Z")

</div>

Hi, I am new to verification domain, specifically UVM testbench environments. I want to know the difference between new() and create (factory method). I know create method helps in factory overriding. If that’s the case…

---

## [Factory override of uvm\_sequence(uvm\_object) in one of the interfaces (agents)](https://verificationacademy.com/forums/t/factory-override-of-uvm-sequence-uvm-object-in-one-of-the-interfaces-agents/39831)

<div class="topic-metadata">

**Author:** [@MichaelP](https://verificationacademy.com/forums/u/MichaelP)\
**Replies:** 9\
**Last updated:** [November 22, 2021, 1:01pm UTC](https://verificationacademy.com/forums/t/factory-override-of-uvm-sequence-uvm-object-in-one-of-the-interfaces-agents/39831 "2021-11-22T13:01:09Z")

</div>

Hi VA, A DUT has similar 16 interfaces, meaning same uvm\_sequence\_item is wiggled on input pins. Is it possible to override and change the behavior of only one of the items? For example: I would like to set different …

---

## [Confused between $cast and factory override](https://verificationacademy.com/forums/t/confused-between-cast-and-factory-override/39558)

<div class="topic-metadata">

**Author:** [@UVM\_LOVE](https://verificationacademy.com/forums/u/UVM_LOVE)\
**Replies:** 8\
**Last updated:** [September 16, 2021, 8:36am UTC](https://verificationacademy.com/forums/t/confused-between-cast-and-factory-override/39558 "2021-09-16T08:36:09Z")

</div>

dear all, I’m trying to understand difference between $cast and override. And I came across good example as the below module test\_module (); \`include "uvm\_macros.svh" import uvm\_pkg::\*; class agent\_a extends uvm…

---

## [Set\_inst\_override for same component with different parameter values in UVM. Isn't possible ? or Is there any issue in the code?](https://verificationacademy.com/forums/t/set-inst-override-for-same-component-with-different-parameter-values-in-uvm-isnt-possible-or-is-there-any-issue-in-the-code/39110)

<div class="topic-metadata">

**Author:** [@desperadorocks](https://verificationacademy.com/forums/u/desperadorocks)\
**Replies:** 3\
**Last updated:** [May 24, 2021, 6:46pm UTC](https://verificationacademy.com/forums/t/set-inst-override-for-same-component-with-different-parameter-values-in-uvm-isnt-possible-or-is-there-any-issue-in-the-code/39110 "2021-05-24T18:46:07Z")

</div>

Hello All, I have a parameterized driver, with a type and struct as parameters. Say as given below. typedef struct { int hello; } drv\_struct\_s; parameter drv\_struct\_s drv\_struct\_default = '{hello=2}; class v\_dri…
