OK and I have a DSP Readback on the output of a Signal Detection flag block, and the DSP Readback is set to 5.19 format. The flag alternates between 1.0 and 0.0 in the Readback. What number format should I say the flag output is in when I edit the wiki? Currently it says:
Name Format [int/dec] - [control/audio] Function Description
Pin 0: Trigger any - any Outputs a flag after no signal has been present for a given amount of time
Context:
"First-generation SigmaDSP processors, such as ADAU1701, do not read back with 28-bit accuracy. They only support 24-bit data, so small 28.0 format integers will be truncated and display as 0.000000000. To display 28.0 format integers on these DSPs, the value from Readback must be bit shifted, such as multiplying the value by 4 twice (since 16.0 does not exist in 5.23 format) and setting the DSP Readback to 24.0 format."
"So, in the case of most SigmaDSPs, audio representation is represented with A = 5 and B = 23. In other words, the number format is 5.23. Control signals and index table values generally require integer representation, and are therefore represented with A = 28 and B = 0. In other words, the format is 28.0."
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
To determine the appropriate number format to document for the flag output of the Signal Detection block in the wiki, let's analyze the situation based on the information provided and the behavior you're observing.
Key Observations:
DSP Readback Format:
You have set the DSP Readback to a 5.19 format, and the flag output alternates between 1.0 and 0.0. This indicates that the flag is being interpreted and displayed as a value in the 5.19 format, which is a fractional fixed-point format with 5 integer bits and 19 fractional bits.
Nature of the Flag:
The flag output of a Signal Detection block is typically a binary control signal, meaning it represents a logical state (e.g., 1 for "signal detected" and 0 for "no signal detected"). Control signals in SigmaDSP are often represented in a format that can handle integers, such as 28.0, but they may also be interpreted in other formats depending on how they are used or displayed.
SigmaDSP Number Formats:
As per the context, SigmaDSP processors use fixed-point number formats of the form A.B, where A is the number of integer bits (including the sign bit) and B is the number of fractional bits.
Audio signals are typically in 5.23 format (5 integer bits, 23 fractional bits), which is suitable for representing fractional values between -16 and +15.999....
Control signals and integers are typically in 28.0 format (28 integer bits, 0 fractional bits), which is suitable for representing whole numbers.
Readback Behavior:
The fact that the flag output is displayed as 1.0 and 0.0 in a 5.19 format suggests that the flag is being interpreted as a fractional value in the Readback block, even though it is fundamentally a binary control signal. This is likely because the Readback block is applying a scaling or interpretation based on its configured format (5.19 in this case).
Determining the Flag Output Format:
The flag output of the Signal Detection block is inherently a control signal, not an audio signal. Therefore, it is most likely generated by the DSP in a format suitable for control signals, such as 28.0. In the 28.0 format:
A value of 1 in 28.0 format represents the integer 1.
A value of 0 in 28.0 format represents the integer 0.
However, when you read this value using a DSP Readback block configured for 5.19 format, the DSP interprets the raw binary data as if it were in 5.19 format. In 5.19 format:
A value of 1 in the integer part (with all fractional bits set to 0) is displayed as 1.0.
A value of 0 in the integer part (with all fractional bits set to 0) is displayed as 0.0.
This behavior is expected because the Readback block is simply interpreting the raw binary data according to the format you specify (5.19), even though the actual data was generated in a different format (likely 28.0).
What Format Should You Document?
For the wiki, you should document the native format of the flag output, not the format it is being interpreted as in the Readback block. The native format of a control signal like a flag is typically 28.0 in SigmaDSP systems, as this is the standard format for control signals and integers (as stated in the context: "Control signals and index table values generally require integer representation, and are therefore represented with A = 28 and B = 0").
Recommended Wiki Entry:
Based on this analysis, you should document the flag output format as 28.0, since this is the format in which the Signal Detection block generates the flag. You can also add a note to clarify that the flag's value can be interpreted in other formats (like 5.19) depending on how it is read or displayed.
Here’s how you could update the wiki entry:
code
Name Format [int/dec] - [control/audio] Function Description
Pin 0: Trigger 28.0 - control Outputs a flag after no signal has been present for a given amount of time
Note: The flag output is a binary control signal in 28.0 format, where a value of 1 represents "signal detected" and 0 represents "no signal detected." When reading this value using a DSP Readback block, the displayed value may depend on the Readback block's configured format (e.g., 5.19 format will display the flag as 1.0 or 0.0).
Additional Notes:
Why Not Document as 5.19?
The 5.19 format is not the native format of the flag output; it is merely the format you are using to interpret the data in the Readback block. Documenting the flag output as 5.19 would be misleading because it implies that the Signal Detection block generates data in 5.19 format, which is not the case.
First-Generation SigmaDSP Readback Limitations:
The context mentions that first-generation SigmaDSPs (like ADAU1701) do not support 28-bit accuracy and truncate 28.0 format integers. However, this is not relevant to the flag output in this case, as the flag is a simple binary value (1 or 0), which can be accurately represented and read back even with 24-bit precision.
General Advice for Documentation:
When documenting signal formats in SigmaDSP, always describe the native format of the signal as generated by the block, not the format it might be interpreted as in downstream processing or display blocks. If necessary, add notes to clarify how the signal might be interpreted or scaled in different contexts.
By documenting the flag output as 28.0 format, you ensure that the wiki accurately reflects the behavior of the Signal Detection block and provides clear guidance to other users.