# Two interface driver mechnism

**URL:** <https://verificationacademy.com/forums/t/two-interface-driver-mechnism/37063>\
**Category:** UVM\
**Tags:** UVM, uvm\_driver\
**Created:** [January 23, 2020, 1:52pm UTC](https://verificationacademy.com/forums/t/two-interface-driver-mechnism/37063 "2020-01-23T13:52:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SARTH21](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@SARTH21](https://verificationacademy.com/forums/u/SARTH21)\
**Post date:** [January 23, 2020, 1:52pm UTC](https://verificationacademy.com/forums/t/two-interface-driver-mechnism/37063/1 "2020-01-23T13:52:11Z")

</div>

Hello ,  
Is it possible for a uvm\_driver to get values from one interface and drive it to the other . In conventional environments where a sequence is used (req\_items) to provide values to interface signals , instead of that an interface signals are used to provide values to another interface.I dont understand the role of tlm in this. iF Anyone can guide me with some points or pseudo-code it would be helpful . (Both interfaces are in different environments)

---

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [January 23, 2020, 2:06pm UTC](https://verificationacademy.com/forums/t/two-interface-driver-mechnism/37063/2 "2020-01-23T14:06:31Z")

</div>

_In reply to [sarth21](https://verificationacademy.com/forums/t/two-interface-driver-mechnism/37063):_

Sounds complicated what you want to do for a simple thing. A few questions to clarify your question:  
(1) what do you mean with ‘get values’? Is it seq\_items or is it signal values.  
(2) what is your second interface. Is it of the same type as the first one?

---

<div class="post-metadata">

**Author:** ![SARTH21](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@SARTH21](https://verificationacademy.com/forums/u/SARTH21)\
**Post date:** [January 24, 2020, 5:33am UTC](https://verificationacademy.com/forums/t/two-interface-driver-mechnism/37063/3 "2020-01-24T05:33:39Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/two-interface-driver-mechnism/37063/2):_

1. “get values” means one interface signals are directly driven to another . e.g  
inf2.wr\_enb2 \<= inf1.wr\_enb2 ;  
inf2.wr\_data2 \<= inf2.wr\_data2 ;  
I dont think it is possible to making a dummy trans file(based on the signal values of interface1 )and then driving it to interface2 (No seqs or tlm presence ).  
So is there something that allows this mechanism to happen .

2. Second interface is same as first (some signals are of different protocol so might require some manipulation ) but as connection of two interfaces is not possible directly I was thinking something like mentioned above.

---

<div class="post-metadata">

**Author:** ![Rahulkumar2](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/rahulkumar2/32/3675_2.png) [@Rahulkumar2](https://verificationacademy.com/forums/u/Rahulkumar2)\
**Post date:** [January 24, 2020, 6:23am UTC](https://verificationacademy.com/forums/t/two-interface-driver-mechnism/37063/4 "2020-01-24T06:23:53Z")

</div>

_In reply to [sarth21](https://verificationacademy.com/forums/t/two-interface-driver-mechnism/37063/3):_

> _In reply to [chr\_sue](https://verificationacademy.com/forums/t/two-interface-driver-mechnism/37063/3):_

1. Second interface is same as first (some signals are of different protocol so might require some manipulation ) but as connection of two interfaces is not possible directly I was thinking something like mentioned above.

you can connect two interface.

```verilog

interface my_intf;
  logic a;
  logic b;
endinterface 

module tbtop;

  my_intf i0();
  my_intf i1();
  assign i1.a = i0.a;
  assign i1.b = i0.b;

    initial begin
      #10;
      i0.a=1;
      #10;
    end
   
    initial begin
      $dumpfile("test.vcd");
      $dumpvars(0,tbtop);
    end
  
endmodule

```

I don’t understand why do you want to connect two interface?  
Why do you need two interface with same values?
