# Interface issue

**URL:** <https://verificationacademy.com/forums/t/interface-issue/28539>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog\
**Created:** [April 26, 2013, 1:14am UTC](https://verificationacademy.com/forums/t/interface-issue/28539 "2013-04-26T01:14:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vybhava](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/v/59ef9b/32.png) [@vybhava](https://verificationacademy.com/forums/u/vybhava)\
**Post date:** [April 26, 2013, 7:15am UTC](https://verificationacademy.com/forums/t/interface-issue/28539/2 "2013-04-26T07:15:18Z")

</div>

Here there are two problems. First, Signals defined in mem\_if does not have the direction. You need to use assign statement to connect. Second, data signal is bidirectional.

Example:

* * *

```
mem_if mem0if();
    assign mem0if.reset = Reset;
    assign mem0if.clock = Clock;
    assign mem0if.enable = Enable[0];
    assign mem0if.addr = Addr[7:0];
    //assign mem0if.data = Data; // This has to be taken care with more combo logic.
    assign mem0if.rwn = RWn;

```

* * *

---

_[View the full topic](https://verificationacademy.com/forums/t/interface-issue/28539)._
