# Runtime change in configuration class

**URL:** <https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966>\
**Category:** SystemVerilog\
**Tags:** EDA-Playground, SystemVerilog, configuration\
**Created:** [August 17, 2020, 2:44pm UTC](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966 "2020-08-17T14:44:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_123](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@A\_123](https://verificationacademy.com/forums/u/A_123)\
**Post date:** [August 17, 2020, 2:44pm UTC](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/1 "2020-08-17T14:44:32Z")

</div>

How can we change runtime configuration of configuration class?  
I’m working on IIS protocol VIP. I took configuration class in environment. Configuration class is having data width, no\_transaction, and sampling edge variables. i want to change this configuration values on runtime using single testcase. How can i do it?  
(i’m using EDA playground with VCS tool)

---

<div class="post-metadata">

**Author:** ![juhi\_p](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@juhi\_p](https://verificationacademy.com/forums/u/juhi_p)\
**Post date:** [August 17, 2020, 6:00pm UTC](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/2 "2020-08-17T18:00:36Z")

</div>

what I know as per my experience is that configuration class should contain values which are same/constant through out simulation.In UVM, before end\_of\_elaboration phase, you can configure as per your need. if you want to change something at run time, then you can use run time arguments which are $test$plusargs and $value$plusargs.

---

<div class="post-metadata">

**Author:** ![A\_123](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@A\_123](https://verificationacademy.com/forums/u/A_123)\
**Post date:** [August 17, 2020, 7:29pm UTC](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/3 "2020-08-17T19:29:35Z")

</div>

_In reply to [juhi\_p](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/2):_

Hi juhi\_p,

do you have any example?

---

<div class="post-metadata">

**Author:** ![juhi\_p](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@juhi\_p](https://verificationacademy.com/forums/u/juhi_p)\
**Post date:** [August 17, 2020, 7:32pm UTC](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/4 "2020-08-17T19:32:32Z")

</div>

_In reply to [K\_123](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/3):_

what exactly you want to do? I can create small example for demonstration.

---

<div class="post-metadata">

**Author:** ![A\_123](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@A\_123](https://verificationacademy.com/forums/u/A_123)\
**Post date:** [August 17, 2020, 7:49pm UTC](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/5 "2020-08-17T19:49:46Z")

</div>

_In reply to [juhi\_p](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/4):_

Yes, that would be helpful

---

<div class="post-metadata">

**Author:** ![juhi\_p](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@juhi\_p](https://verificationacademy.com/forums/u/juhi_p)\
**Post date:** [August 18, 2020, 9:44am UTC](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/6 "2020-08-18T09:44:36Z")

</div>

_In reply to [K\_123](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/5):_

[small\_uvm\_tb - EDA Playground](https://www.edaplayground.com/x/63a6) . check here.

---

<div class="post-metadata">

**Author:** ![A\_123](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@A\_123](https://verificationacademy.com/forums/u/A_123)\
**Post date:** [August 18, 2020, 12:19pm UTC](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/7 "2020-08-18T12:19:05Z")

</div>

_In reply to [juhi\_p](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/6):_

Thanks juhi\_p,

actually i’m working on systemverilog (i forgot to tell you earlier) but i’m trying to figure out from your code. and you used $value$plusargs but it works on command line arugument only. if you have any suggestion please tell.

---

<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:** [August 18, 2020, 7:01pm UTC](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/8 "2020-08-18T19:01:11Z")

</div>

_In reply to [K\_123](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/7):_

What do you mean to say you’re not using UVM? If that’s so then we’re not sure what you mean by configuration class. Can you show us an example?

---

<div class="post-metadata">

**Author:** ![A\_123](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@A\_123](https://verificationacademy.com/forums/u/A_123)\
**Post date:** [August 18, 2020, 7:57pm UTC](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/9 "2020-08-18T19:57:03Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/runtime-change-in-configuration-class/37966/8):_

I’m working on i2s protocol VIP using systemverilog.  
this is the link of my configuration class. i’m using all this configuration in my transaction, generator and driver.

> **[EDA Playground](https://edaplayground.com/x/3ZWv)**
>
> Edit, save, simulate, synthesize SystemVerilog, Verilog, VHDL and other HDLs from your web browser.
