In reply to SriGanesh D:
I don’t think so that there could be any other way than that, because traditionally it’s being a method to connect DUT and tb that is via interface.
Further it must be on your application that what you wanted to implement. .