# How can I assign one interface to another interface without manually connecting all signals?

**URL:** <https://verificationacademy.com/forums/t/how-can-i-assign-one-interface-to-another-interface-without-manually-connecting-all-signals/33735>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, Interfaces\
**Created:** [November 21, 2017, 5:44pm UTC](https://verificationacademy.com/forums/t/how-can-i-assign-one-interface-to-another-interface-without-manually-connecting-all-signals/33735 "2017-11-21T17:44:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mike\_mentor](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@mike\_mentor](https://verificationacademy.com/forums/u/mike_mentor)\
**Post date:** [April 28, 2021, 7:39pm UTC](https://verificationacademy.com/forums/t/how-can-i-assign-one-interface-to-another-interface-without-manually-connecting-all-signals/33735/5 "2021-04-28T19:39:10Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/how-can-i-assign-one-interface-to-another-interface-without-manually-connecting-all-signals/33735/4):_

> _In reply to [arquer](https://verificationacademy.com/forums/t/how-can-i-assign-one-interface-to-another-interface-without-manually-connecting-all-signals/33735/4):_  
> Sorry, there is no way to tie two interfaces together.

For a module with an input interface port, can the interface wires be retimed  
using a single assignment clocked process like this:

```verilog
always_ff @(posedge clk)
  my_interface_port_q <= my_intrface_port;

```

Based on this thread, my guess is no.  
Based on that if there is an interface port that needs to be retimed, all fields need to be broken out one at time like this:

```verilog
always_ff @(posedge clk)
  begin
  first_sig_q <= my_inteface_port.first_sig;
  second_sig_q <= my_interface_port.second_sig;
  // ....
  end

```

Does that make sense that the signals have to be broken out to be retimed, or am I missing some easy way to retime all the signals in an interface?

A packed struct can be retimed, maybe this indicates a case where a packed struct port would be preferred over an interface.

---

_[View the full topic](https://verificationacademy.com/forums/t/how-can-i-assign-one-interface-to-another-interface-without-manually-connecting-all-signals/33735)._
