Click here to return to the Arithmetic and Logic page
Zero Comparator
Description
The Zero Comparator block takes any input and compares the value to 0. If the input signal is non-zero, the output will be zero. If the input is zero, the output will be a flag of “1” in the bit position designated by the drop-down box
Targets Supported
Name | ADSP-214xx | ADSP-215xx/SC5xx | ADAU145x/146x |
—————————— | ——————-- | ——————————-- | —————————- |
ZeroComparator | B/S | B/S | S |
Pins
Name | Type | Description |
————————————— | —————————- | ————————————— |
Input0 | Audio | Input channel 0 |
Output
Name | Type | Description |
————————————— | —————————- | ————————————— |
Output0 | Audio | Output channel 0 |
Configurable Parameters
GUI Parameter Name | Default Value | Range | Function Description |
————————————— | ——————————- | ————————————-- | ——————————————————————-- |
Selected Bit | Bit:0 | Bit:30 | Sets bit position of Output'1' Flag. |
NumChannels | 1 | 20 | Number of input channels. Change in this requires recompilation |
DSP Parameters
Parameter Name | Description | ADSP-214xx/215xx/SC5xx | ADAU145x/146x |
—————————— | ——————————————————————— | ————————————————-- | ————————————-- |
CompValue | Compute & set the bit position value | FixInt32 | FixInt32 |