Add input or output ports

When creating new model components, you may define an interface, consisting of input or output ports, parameters, and shared model elements such as events, memories, and resources.

The first step is usually to create port objects for each model component of type module, primitive and FSM primitive. This section describes how to create input and output ports.


Ports are used to connect model instances for exchanging data objects. The kind of porthole and the type of data objects accepted or produced by the model component to which the port belongs must be defined.

Create ports and change their properties

Sine modulator example - Step 2