SELECTAB
From STX Wiki
Jump to navigationJump to search
SELECTAB - 2 channel multiplexer
Usage:
SELECTAB A B SEL
Inputs:
| A, B | data input A and B (number or vector, see I/O configuration table) |
| SEL | selection and/or condition |
Outputs:
| Y | output for selected data input (same type as A) |
Function:
This atom implements a direct or conditional 2-channel multiplexer controlled via the input SEL. The input SEL is checked at the beginning of each evaluation cycle.
Table 23: Multiplexer method selected by input SEL
| value of SEL | value copied to Y |
| 0 or A | input A is copied to output Y |
| 1 or B | input B is copied to output Y |
| 2 or MINIMUM | Min(A, B) is copied to Yfor vectors, the operation is applied element by element! |
| 3 or MAXIMUM | Max(A, B) is copied to Yfor vectors, the operation is applied element by element! |
Table 24: Possible I/O configurations:
| type of input A | type of input B | type of output Y | assignment |
| Number | number | number | Y is set to A or B |
| Vector | number | vector | Y[i] is set to A[i] or B |
| vector | vector | vector | Y[i] is set to A[i] or B[i] |