modPMUX

Synopsis

The module modPMUX takes an array of Express primitives and outputs the value and index of the element that changed.


module modPMUX <src_file = "prim_mux.cxx"> {
  group+IPort2 &input[];
  prim+OPort2 output <val_state=2>;
  int+OPort2 selectedItem <val_state=2>; 
  cxxmethod+req update (
    .input+read+notify+req,
    .output+write+nonotify,
    .selectedItem+write+nonotify 
  );
};

Description

The module modPMUX takes an array of Express primitives of differing types and outputs the value and index of the element that changed. The type of the output matches the primitive type of the element that has changed.

Inputs

&input[]

The input array of primitives. This is an input of multiple individual primitive objects i.e., multiple connections to the input port. It does not process array objects, group objects or group arrays.

Outputs

output

Output element that changed in the input. Type of output changes to the type of the changed element.

selectedItem

The index of the changed element.

Utility Macros

n/a

Example

n/a

Files

iac_proj/prim_mux/pmuxmods.v contains the modPMUX module V definition.

Other Notes

The low-level PrimitiveMUXMods library containing the module modPMUX does not specify a process. By default the express process will be used.

The module returns the first element in the array that has changed. If more than one element changes, only the first is reported.

Authors

Brian Selle, Leon Thrane, Advanced Visual Systems Inc.
Documentation - Ian Curington, Advanced Visual Systems Inc.

Modifications

Paul G. Lever

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL

See Also

n/a