.. _Add New Port to Module:

Add New Port to Module
======================

To add a new port to a module, place the editor cursor on the module name, :kbd:`Right+Click` and select **Refactor** > **Add port**.

In the **Add port wizard** you can tune the name, direction, type, and width of the new port.

.. figure:: ../../images/sv_refactor_add_port_wizard.png



Click **Ok** to perform the refactoring or **Preview**  to see the changes that are about to be performed in the source code. 

.. figure:: ../../images/sv_refactor_add_port_task_view.png



.. note:: 

 An empty port connection is added to all the instances of the selected module along with a FIXME comment which shows up in the Tasks View. See :ref:`Track Tasks using TODO Markers`

.. tip:: 

 In the Preview page you can select what changes should be performed.

