# How can two interface have the same clock and reset?

**URL:** <https://verificationacademy.com/forums/t/how-can-two-interface-have-the-same-clock-and-reset/32126>\
**Category:** UVM\
**Tags:** UVM, Abstract-interface\
**Created:** [August 8, 2016, 3:29pm UTC](https://verificationacademy.com/forums/t/how-can-two-interface-have-the-same-clock-and-reset/32126 "2016-08-08T15:29:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 8, 2016, 7:04pm UTC](https://verificationacademy.com/forums/t/how-can-two-interface-have-the-same-clock-and-reset/32126/3 "2016-08-08T19:04:03Z")

</div>

_In reply to [saritr](https://verificationacademy.com/forums/t/how-can-two-interface-have-the-same-clock-and-reset/32126/2):_

All shared signals between interfaces should be made a ports of your interface.

```verilog
interface pakmx_if_in (input logic clk, input logic rst);
logic [7:0] data_in;
logic data_en;
logic packet_start;
logic packet_err;
logic busy;
endinterface
interface pakmx_if_out (input logic clk, input logic rst);
 logic ch_data_en;
logic ch_start;
logic [7:0] ch_data;
endinterface

module top;

logic clk, rst;

pakmx_if_in if_in(.*)
pakmx_if_out if_out(.*);

...
endmodule

```

If one interface is the source of the clk or reset, then change the   
input to   
output accordingly.

---

_[View the full topic](https://verificationacademy.com/forums/t/how-can-two-interface-have-the-same-clock-and-reset/32126)._
