The first event detection

| Vectorized | C |
in the palette on the schematic

Implements a reset-priority RD-trigger model that detects the first event (occurrence of an edge of the input signal) on the data input ports (D-ports, i.e., 2nd, 3rd, and subsequent ports if available). The block is discrete. This is a variant of the D-trigger implementation. It memorizes which one of the events (logical one) applied to the D-inputs occurred first. After the event occurs, a logical one is formed at the corresponding output and the states of all outputs are fixed until the reset signal R occurs, the setting of which resets all outputs to 0, and the removal of which returns the block to operation. If more than one event occurs simultaneously, the state of the block outputs does not change until only one signal acts on the inputs, which will be considered as the first. The number of input signal ports is configured in the block properties. It corresponds to the same number of outputs. There is also always a reset control port R.

The example of the following diagram shows synchronized time diagrams confirming the operation of the block according to the above described algorithm.

Рисунок 1. Test diagram for the first event detection block

Рисунок 2. Operation of the first event detection block

Input ports

  • R – trigger reset input port;
  • data_n – n-th data input port.

Output ports

  • outport_n – n-th output port.

Properties

  • Signal ports number – nunber of input and output ports;
  • Do not react at several events at once – enable ignoring simultaneous occurrence of several events.

Parameters

none