# How use interface in verification of a module that has not use interface?

**URL:** <https://verificationacademy.com/forums/t/how-use-interface-in-verification-of-a-module-that-has-not-use-interface/41113>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, interface\
**Created:** [December 20, 2022, 12:05pm UTC](https://verificationacademy.com/forums/t/how-use-interface-in-verification-of-a-module-that-has-not-use-interface/41113 "2022-12-20T12:05:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moein75](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Moein75](https://verificationacademy.com/forums/u/Moein75)\
**Post date:** [December 20, 2022, 12:05pm UTC](https://verificationacademy.com/forums/t/how-use-interface-in-verification-of-a-module-that-has-not-use-interface/41113/1 "2022-12-20T12:05:30Z")

</div>

I want to do standard verification for a module.  
It is not used interface in this module and it has a lot of inputs and outputs.  
what is the best way to use the interface in the testbench?

---

<div class="post-metadata">

**Author:** ![graeme\_jessiman](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/graeme_jessiman/32/1201_2.png) [@graeme\_jessiman](https://verificationacademy.com/forums/u/graeme_jessiman)\
**Post date:** [December 20, 2022, 1:10pm UTC](https://verificationacademy.com/forums/t/how-use-interface-in-verification-of-a-module-that-has-not-use-interface/41113/2 "2022-12-20T13:10:55Z")

</div>

You just break out the interface signals in the DUT instantiation

e.g. below the slave signals are connected to a Slave interface  
and the master signals are ocnnected to a Master interface

switch DUT(.clk(clk),  
.rst(rst),  
.slv\_din(SB\_rhs\_agent\_bus.slv\_din),  
.slv\_din\_en(SB\_rhs\_agent\_bus.slv\_din\_en),  
.slv\_dout(SB\_rhs\_agent\_bus.slv\_dout),  
.slv\_dout\_en(SB\_rhs\_agent\_bus.slv\_dout\_en),  
.mstr\_din(SB\_lhs\_agent\_bus.mstr\_din),  
.mstr\_din\_en(SB\_lhs\_agent\_bus.mstr\_din\_en),  
.mstr\_dout(SB\_lhs\_agent\_bus.mstr\_dout),  
.mstr\_dout\_en(SB\_lhs\_agent\_bus.mstr\_dout\_en)  
);
