In reply to Jonyc:
I don’t know what you mean by,
i need to have access enc/cfg/sequencer object etc…
If you didn’t search the forum(s) for this topic, then I recommend doing so, there are many postings on this. Try searching on “bind interface internal” or something like that. Below are links I found in a couple of minutes that discuss binding to the DUT.
https://verificationacademy.com/resources/technical-papers/the-missing-link-the-testbench-to-dut-connection
http://www.sunburst-design.com/papers/CummingsSNUG2009SJ_SVA_Bind.pdf
The answer is YES, you can ‘set’ the interface in the config_db. Just make sure the handle of the interface in the ‘set’ method is:
<dut_top_inst>.<submodule_inst>.<interface_inst>
where, interface_inst is the bind instance from using something like:
bind <submodule> <interface_type> <interface_inst>