.. _Update Module Instance:

Update Module Instance
======================

Problems are reported when a module instance does not match the module definition (has missing or extra port connections).

Place the editor cursor on a problem's line and press :kbd:`Ctrl+1`, select **Update instance to match module definition** from the list of quick fix proposals and press  :kbd:`Enter`.

.. figure:: ../../images/common/sv_quick_fix_update_module_instance_list.png

The extra ports are removed and all the missing ports are added at the end of the instance port list.

.. figure:: ../../images/common/sv_quick_fix_update_module_instance_after.png

.. tip::
   
   You may change the newly added port connections. Press **Tab** key to switch between the edit boxes, and  :kbd:`Enter` when done.

.. note::

	The quick fix only works for named port connections.
