Documentation Center

  • 評価版
  • 製品アップデート

Release Gate

Allow one pending entity to arrive when event occurs

Library

Gates

Description

This block permits the arrival of one pending entity when a signal-based event or function call occurs; at all other times, the entity input port of the block is unavailable. By definition, the opening of the gate permits one pending entity to arrive if the entity is able to advance immediately to the next block.

No simulation time passes between the opening and subsequent closing of the gate. The gate opens and then closes in the same time instant. If no entity is already pending when the gate opens, then the gate closes without processing any entities.

The Open gate upon parameter determines the type of event that opens the gate:

  • Sample time hits of a signal

  • Edges in a trigger signal

  • Changes in the numerical value of a signal

  • Function calls

For more details, see Open a Gate Instantaneously.

Ports

Entity Input Ports

LabelDescription
INPort for arriving entities.

Signal Input Ports

LabelDescription
tsWhen this signal has an update, the gate opens. This signal must be an event-based signal. You see this port only if you set Open gate upon to Sample time hit from port ts.
trWhen this signal satisfies the specified trigger criteria, the gate opens. This signal must be an event-based signal. You see this port only if you set Open gate upon to Trigger from port tr.
vcWhen this signal satisfies the specified value-change criteria, the gate opens. This signal must be an event-based signal. You see this port only if you set Open gate upon to Change in signal from port vc.
fcnWhen this signal carries a function call, the gate opens. This signal must be an event-based function call. You see this port only if you set Open gate upon to Function call from port fcn.

Entity Output Ports

LabelDescription
OUTPort for departing entities.

Signal Output Ports

LabelDescriptionTime of Update When Statistic Is On
#dNumber of entities that have departed from this block since the start of the simulation.After entity departure

The initial output value is 0. This value is in effect from the start of the simulation until the first update by the block.

Dialog Box

Release Gate Tab

Open gate upon

Determines the type of event that causes the gate to open instantaneously.

Trigger type, Type of change in signal value

Trigger type determines whether rising, falling, or either type of trigger edge causes the gate to open. You see this field only if you set Open gate upon to Trigger from port tr.

Type of change in signal value determines whether rising, falling, or either type of value change causes the gate to open. You see this field only if you set Open gate upon to Change in signal from port vc.

Resolve simultaneous signal updates according to event priority

Select this option to prioritize the gate-opening event explicitly, relative to other simultaneous events in the simulation. If you do not select this option, the event has priority SYS1 on the event calendar. For details, see Resolve Simultaneous Signal Updates.

Event priority

The priority of the gate-opening event, relative to other simultaneous events in the simulation. For details, see Specify Event Priorities to Resolve Simultaneous Signal Updates. You see this field only if you select Resolve simultaneous signal updates according to event priority.

Statistics Tab

These parameters determine whether the block produces data at signal output ports or omits those ports.

Number of entities departed

Allows you to use the signal output port labeled #d.

Was this topic helpful?