SYNOPSIS
loadrt demux [count=N|names=name1[,name2…]] [personality=P1[,P2…]]
DESCRIPTION
This component creates a number of output bits defined by the personality command-line parameter. One of these bits will be set based on interpreting the bit-inputs as a binary number and then adding on the integer input. Most uses will use only one or the other, but it is possible to use the bits as a "shift" if required. An optional operating mode is enabled by setting the bargraph parameter to true. In this case all bits up to the selected bit will be set, as might be required for an LED bargraph display.
|
Note
|
You cannot select the last bargraph bit when personality is set to 2^N using only N selection bits. There are 2^N+1 states in a N-bit bargraph and you can only represent 2^N values using N bits ([0..2^N-1]). This is especially a problem when personality is 32 because you only have five selection bits. If you need 2^N outputs in the bargraph, then you should probably use the sel-uint input pin. If you require sel-bit-MM inputs, then the largest functional personality is 31. |
FUNCTIONS
- demux.N
PINS
- demux.N.sel-bit-MM bool in (MM=00..04)
-
Binary-number bit selectors
- demux.N.sel-uint uint in
-
Integer selection input
- demux.N.out-MM bool out (MM=00..(personality)-1)
-
The set of output bits
PARAMETERS
- demux.N.bargraph bool rw (default: 0)
SEE ALSO
AUTHOR
Andy Pugh
LICENSE
GPL 2+