In reply to ramankaur09:
There is a lot of missing information. Can you put your example on EDA Playground?
You seem to be assigning a value to ‘intf.data_out’ in your driver. Is this signal connected to an output of your DUT? If so, you will get multiple drivers and ‘X’ values.