How do I connect inout ports?

In reply to ranga_smile:

I have done the same way as u specified , but in waveform my net connection to dut is not having value driven by logic data type.