# Significance of 'contxt' Argument for create() functions of uvm\_component\_registry N uvm\_object\_registry

**URL:** <https://verificationacademy.com/forums/t/significance-of-contxt-argument-for-create-functions-of-uvm-component-registry-n-uvm-object-registry/38719>\
**Category:** UVM\
**Tags:** Significance-of-contxt-Argument-for-create-functions-of-uvm\_component\_registry-N-uvm\_object\_registry, UVM\
**Created:** [February 13, 2021, 6:20pm UTC](https://verificationacademy.com/forums/t/significance-of-contxt-argument-for-create-functions-of-uvm-component-registry-n-uvm-object-registry/38719 "2021-02-13T18:20:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Have\_A\_Doubt](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Have\_A\_Doubt](https://verificationacademy.com/forums/u/Have_A_Doubt)\
**Post date:** [February 13, 2021, 6:20pm UTC](https://verificationacademy.com/forums/t/significance-of-contxt-argument-for-create-functions-of-uvm-component-registry-n-uvm-object-registry/38719/1 "2021-02-13T18:20:29Z")

</div>

Within class uvm\_component\_registry and uvm\_object\_registry I Observe ::

```verilog

      static function T create (string name="", uvm_component parent=null, // Within uvm_object_registry 
                            string contxt="");

      static function T create(string name, uvm_component parent, string contxt=""); // Within uvm_component_registry 

```

[Q1] What’s the significance for ‘contxt’ argument ? Is there any application for the same ?

```
   One application I have seen is instance_override for sequences .  

```

[Q2] Since objects don’t have hierarchy , why the argument uvm\_component parent=null ?

---

<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:** [February 13, 2021, 8:53pm UTC](https://verificationacademy.com/forums/t/significance-of-contxt-argument-for-create-functions-of-uvm-component-registry-n-uvm-object-registry/38719/2 "2021-02-13T20:53:46Z")

</div>

_In reply to [Have\_A\_Doubt](https://verificationacademy.com/forums/t/significance-of-contxt-argument-for-create-functions-of-uvm-component-registry-n-uvm-object-registry/38719):_

Yes, the **contxt** argument is for the context of instance based factory overrides. (doesn’t it bug you that they couldn’t add one extra letter to spell it out?).

You would typically use **this** from the component you are creating the object from. But if you are in a sequence, you could use the **m\_sequencer** it’s running on. If you leave the argument **null** it assumes the global uvm\_top.

---

<div class="post-metadata">

**Author:** ![TC\_2017](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/t/53a042/32.png) [@TC\_2017](https://verificationacademy.com/forums/u/TC_2017)\
**Post date:** [December 6, 2025, 3:58pm UTC](https://verificationacademy.com/forums/t/significance-of-contxt-argument-for-create-functions-of-uvm-component-registry-n-uvm-object-registry/38719/3 "2025-12-06T15:58:29Z")

</div>

One such application :: [set\_inst\_override for uvm\_reg](https://verificationacademy.com/forums/t/how-to-set-inst-override-by-type-a-uvm-reg/51485)
