How we switch between dut and vip model in uvm if we are using dut and slave driver in it?

can anyone explain how to do it,apart from being declared it as active and passive…

In reply to Mounica reddy:

Could you please explain what you have and what do you want to know.

I have used slave config,in that if we are making slave driver(vip model) as passive, then dut is getting activated and if we are making it(vip model) as active, it is activating along with dut because of dut instance in top.

But that should not happen,if we are making slave driver as active ,only it should be active not dut.

In reply to Mounica reddy:

It is still unclear to me what you have. I try to explain what I understood.

You have a DUT which acts as a slave. Your UVM testbench is the master. And you have also a UVM slave which represents the DUT.
Your objective is to switch between having the UVM slave in your UVM environment and the DUT (rtl).

Is this correct?

exactly!!!

In reply to Mounica reddy:

In my eyes this means your UVM slave is not passive. It is reactive, i.e. if there is an indication for the slave he is doing something. Right?

yes,if the slave is in active,dut shouldn’t work but what is happening is, slave driver and dut both are working if i’m giving slave driver is active

In reply to Mounica reddy:

Please show the code fragment how you are disconnecting your DUT and activating the slave agent.
This will help me to give you an advice.