How about if you create a single interface with generic connections and then connect them to the required DUT pins at the testbench level? You can put your task inside the interface and use it as required.
How about if you create a single interface with generic connections and then connect them to the required DUT pins at the testbench level? You can put your task inside the interface and use it as required.