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 ); };
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.
&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.
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.
n/a
n/a
iac_proj/prim_mux/pmuxmods.v contains the modPMUX module V definition.
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.
Brian Selle, Leon Thrane, Advanced Visual Systems Inc. Documentation - Ian Curington, Advanced Visual Systems Inc.
Paul G. Lever
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester United Kingdom M13 9PL
n/a