This is an old revision of the document!
Zero Comparator
Input Pins
| Name | Format [int/dec] - [control/audio] | Function Description |
|---|---|---|
| Pin 0: Input | any - any | The input signal to compare to 0 |
Output Pins
| Name | Format [int/dec] - [control/audio] | Function Description |
|---|---|---|
| Pin 0: Output | int - control | The output signal of 0 or 1 in the designated bit position |
GUI Controls
| GUI Control Name | Default Value | Range | Function Description |
|---|---|---|---|
| Output Bit Designation | 28 | [28.0 Bit26] | Sets bit position of the output “1” flag. 28.0 is the default values which represents 1LSB. |
DSP Parameter Information
| GUI Control Name | Compiler Name | Function Description |
|---|---|---|
| Output Bit Designation | ZeroCompareAlg1output1 | Actual value written to DSP from the representation of the drop-down menu to select the bit position of the output “1” flag. |
Algorithm Description
The following table shows what the data output value will be for given input values, based on the selection from the Drop Down Display.

Example
The following schematic image shows both the Buffer and the Zero Comparator for a non-zero and zero input. There results of the algorithm are captured in the DSP Readback cell.

Algorithm Details
| Toolbox Path | Basic DSP - Logic - Invert - Zero Comparator | |
| Cores Supported | ADAU144x ADAU176x ADAU178x ADAU170x AD1940 |
|
| “Grow Algorithm” Supported | yes - see Algorithm Growth Information | |
| “Add Algorithm” Supported | yes - see Algorithm Addition Information | |
| Subroutine/Loop Based | no | |
| Program RAM | 4* | |
| Data RAM | 1* | |
| Parameter RAM | 1* | |
*Numbers are based on one instance of the algorithm with no additional “add” or “grow”


