# Disconnect the RTL driver during simualtion

**URL:** <https://verificationacademy.com/forums/t/disconnect-the-rtl-driver-during-simualtion/37690>\
**Category:** SystemVerilog\
**Tags:** multiple-drivers, Dave-Rich, SystemVerilog\
**Created:** [June 7, 2020, 11:27am UTC](https://verificationacademy.com/forums/t/disconnect-the-rtl-driver-during-simualtion/37690 "2020-06-07T11:27:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![muneebullashariff](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@muneebullashariff](https://verificationacademy.com/forums/u/muneebullashariff)\
**Post date:** [June 7, 2020, 11:27am UTC](https://verificationacademy.com/forums/t/disconnect-the-rtl-driver-during-simualtion/37690/1 "2020-06-07T11:27:08Z")

</div>

Is it possible to disconnect an RTL block during simulation?

Please refer the diagram via the below link:

> **[Disconnect RTL Driver](https://docs.google.com/document/d/1yWcMvIAForxnhhd-0f7uMDi9bI3s_jNAPTW3OmBKONw/edit?usp=sharing)**
>
> This Doc is private

As depicted, the DUT interface is driven by 2 blocks:

1. UVM spi agent (driver) and
2. RTL spi Driver

The spi interface needs to be driven either by RTL spi driver OR UVM spi driver

Traditional Approach:  
I can use an `ifdef to prevent the instantiation of the RTL spi driver block so that the interface is driven only by the UVM driver.  
The problem with this approach is when a test fails with uvm spi driver and if I need to use the RTL spi driver, I need to re-compile.

Recompiling will not guarantee the reproduction of the scenario (randomization) even if we use the seed number.

Requirement:  
It’ll be great to compile the RTL spi driver.  
Then control the driving of the spi interface either from the UVM driver or RTL driver based on the simulation directive. This way I can use any driver, without having to recompile.

Could you please guide me in this regard?

Thank you,  
Muneeb Ulla Shariff

---

<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:** [June 7, 2020, 4:41pm UTC](https://verificationacademy.com/forums/t/disconnect-the-rtl-driver-during-simualtion/37690/2 "2020-06-07T16:41:14Z")

</div>

_In reply to [muneebullashariff](https://verificationacademy.com/forums/t/disconnect-the-rtl-driver-during-simualtion/37690):_

You need to explain further how the two different drivers are expected to drive the same stimulus. If the stimulus of both are generated from the same uvm\_sequences, there should be no issues with random stability when re-compiling RTL.

At a minimum, you can put a wrapper around your RTL driver that inserts tr-state buffers to disconnect the outputs.
