Add Port to Module from Selected Field
You can use the Add Port to Module to add a selected field as a port easy and fast.
Right click field wire1 in module A.
Select Refactor > Add Port.
You can optionally change the new generated port name.
Select a direction for the port and press Preview or OK.