.. _Add Port to Module from Selected Field:

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**. 

.. figure:: ../../images/vlogdt-addport-1.png


#. Select **Refactor > Add Port**.
#. You can optionally change the new generated port name.
#. Select a direction for the port and press **Preview** or **OK**. 

.. figure:: ../../images/vlogdt-addport-31.png



