Why my sub interface master_if cannot be found?


interface io_if has a sub-interface array master_if and slave_if, i set io_if from testbench to env use config_db, then set master to each agent. can someone tell me how to slove this probelm, thanks

this is my solution, is there better one

Please do not post pictures of your code. Post it as formatted text making it easy for others to read.