In reply to vadivelan014:
See replies and links in https://verificationacademy.com/forums/systemverilog/assigning-interface-net-type-signals-class