# \#parameterized-class

**URL:** https://verificationacademy.com/forums/tag/parameterized-class/5463.md

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

---

## [Making Testbench Emulation friendly](https://verificationacademy.com/forums/t/making-testbench-emulation-friendly/47674)

<div class="topic-metadata">

**Author:** [@jay.sipani](https://verificationacademy.com/forums/u/jay.sipani)\
**Replies:** 1\
**Last updated:** [June 20, 2024, 6:24pm UTC](https://verificationacademy.com/forums/t/making-testbench-emulation-friendly/47674 "2024-06-20T18:24:50Z")

</div>

Hi, Can I use parameterized UVM classes if I want to have an emulation friendly Testbench? Is emulator (say Veloce) able to process the parameterized classes correctly? If not, can you suggest an alternative to paramete…

---

## [Is there a way to get the different parameterized interfaces in the same classes with different parameters?](https://verificationacademy.com/forums/t/is-there-a-way-to-get-the-different-parameterized-interfaces-in-the-same-classes-with-different-parameters/41375)

<div class="topic-metadata">

**Author:** [@Vlemartin08](https://verificationacademy.com/forums/u/Vlemartin08)\
**Replies:** 1\
**Last updated:** [March 14, 2023, 2:11pm UTC](https://verificationacademy.com/forums/t/is-there-a-way-to-get-the-different-parameterized-interfaces-in-the-same-classes-with-different-parameters/41375 "2023-03-14T14:11:03Z")

</div>

Hi! I have this scenario where I need to instantiate the same agent class 3 times in my environment where each agent differs it parameters. In this case the parameter will be the depth of the register map. eg. \[10:0\] …

---

## [Parameterized class factory registration](https://verificationacademy.com/forums/t/parameterized-class-factory-registration/40119)

<div class="topic-metadata">

**Author:** [@shekher201778](https://verificationacademy.com/forums/u/shekher201778)\
**Replies:** 1\
**Last updated:** [March 4, 2022, 7:49am UTC](https://verificationacademy.com/forums/t/parameterized-class-factory-registration/40119 "2022-03-04T07:49:26Z")

</div>

Hi…when we use \`uvm\_component\_param\_utils(class\_name#(parammeter\_name)) to register with factory, it register this class with only type based factory & not with string based factory. So if we call get\_type\_name(), then i…

---

## [Copy function for Parameterized Class](https://verificationacademy.com/forums/t/copy-function-for-parameterized-class/38938)

<div class="topic-metadata">

**Author:** [@mussoi](https://verificationacademy.com/forums/u/mussoi)\
**Replies:** 1\
**Last updated:** [April 5, 2021, 1:54pm UTC](https://verificationacademy.com/forums/t/copy-function-for-parameterized-class/38938 "2021-04-05T13:54:26Z")

</div>

I am struggling to write a typical copy function of a parameterized class. class seq\_item #(parameter int AWIDTH=10, parameter int DWIDTH=16); rand bit\[AWIDTH-1 :0\] addr; rand bit\[DWIDTH-1 :0\] data; virtual func…

---

## [How to use parameterized class as a return type of function](https://verificationacademy.com/forums/t/how-to-use-parameterized-class-as-a-return-type-of-function/38004)

<div class="topic-metadata">

**Author:** [@jj\_bukhari](https://verificationacademy.com/forums/u/jj_bukhari)\
**Replies:** 2\
**Last updated:** [August 28, 2020, 4:47pm UTC](https://verificationacademy.com/forums/t/how-to-use-parameterized-class-as-a-return-type-of-function/38004 "2020-08-28T16:47:48Z")

</div>

hi all, I am getting the below error. Error-\[IND\] Identifier not declared slave\_write\_driver.sv, 78 Identifier 'ADDR\_WIDTH' has not been declared yet. If this error is not expected, please check if you have set …

---

## [Push real values into queue using parameterized class](https://verificationacademy.com/forums/t/push-real-values-into-queue-using-parameterized-class/31929)

<div class="topic-metadata">

**Author:** [@rakesh2learn](https://verificationacademy.com/forums/u/rakesh2learn)\
**Replies:** 2\
**Last updated:** [June 10, 2016, 3:14pm UTC](https://verificationacademy.com/forums/t/push-real-values-into-queue-using-parameterized-class/31929 "2016-06-10T15:14:48Z")

</div>

Problem: output of my queue is zero, instead I am expecting the queue to get filled with 6 random real values. Here is the parameterized base class defining my queue: class stack #(type T=int,int depth=10); rand T dat…

---

## [How to pass the "this" of a class which is a parameterized class, to the member class who instanced inside it](https://verificationacademy.com/forums/t/how-to-pass-the-this-of-a-class-which-is-a-parameterized-class-to-the-member-class-who-instanced-inside-it/31597)

<div class="topic-metadata">

**Author:** [@aug\_com](https://verificationacademy.com/forums/u/aug_com)\
**Replies:** 1\
**Last updated:** [March 10, 2016, 3:56pm UTC](https://verificationacademy.com/forums/t/how-to-pass-the-this-of-a-class-which-is-a-parameterized-class-to-the-member-class-who-instanced-inside-it/31597 "2016-03-10T15:56:21Z")

</div>

The question is just as the title, and I will give a demo to describe it more clear. typedef CA; class CB; string inst; CA parent; function new(string inst="CB", CA parent); this.inst = inst; …

---

## [How to generate one pointer for the parameterized class itself?](https://verificationacademy.com/forums/t/how-to-generate-one-pointer-for-the-parameterized-class-itself/31316)

<div class="topic-metadata">

**Author:** [@aug\_com](https://verificationacademy.com/forums/u/aug_com)\
**Replies:** 2\
**Last updated:** [December 15, 2015, 12:54am UTC](https://verificationacademy.com/forums/t/how-to-generate-one-pointer-for-the-parameterized-class-itself/31316 "2015-12-15T00:54:04Z")

</div>

Class a\_xaction #(int N\_SZ = 40, F\_SZ=100) extends a\_original\_c; //a lot of members extern virtual function a\_original\_c copy(a\_original\_c to=null); endclass function a\_original\_c a\_xaction ::copy(a\_original\_c to=nul…
