Inout signal error in uvm interface

I think your requirement is not so clear from the description you have given.
Please elaborate in detail about the problem you are facing.