# Inout port illegal connection error

**URL:** <https://verificationacademy.com/forums/t/inout-port-illegal-connection-error/36222>\
**Category:** UVM\
**Tags:** UVM, SystemVerilog, error, inout\
**Created:** [June 25, 2019, 12:20pm UTC](https://verificationacademy.com/forums/t/inout-port-illegal-connection-error/36222 "2019-06-25T12:20:34Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [June 25, 2019, 3:17pm UTC](https://verificationacademy.com/forums/t/inout-port-illegal-connection-error/36222/4 "2019-06-25T15:17:27Z")

</div>

_In reply to [nrllhclb](https://verificationacademy.com/forums/t/inout-port-illegal-connection-error/36222/3):_

See here an example:

```verilog
module des(input logic a, output logic b, inout wire c);

endmodule

interface intf();
  logic x;
  logic y;
  wire z;
  //logic z;
endinterface

module top();

intf iface();
des DUT(.a(iface.x), .b(iface.y), .c(iface.z));
endmodule

```

Replacing the wire in the interface with logic results in the error message:  
inout.sv(15): Illegal inout port connection for ‘c’ (3rd connection).

---

_[View the full topic](https://verificationacademy.com/forums/t/inout-port-illegal-connection-error/36222)._
