This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:sigmastudiov2:modules:gain:singlevolumeshared [07 May 2021 06:42] – [DSP Parameter Computation] Nikhin Shetty | resources:tools-software:sigmastudiov2:modules:gain:singlevolumeshared [13 May 2021 05:58] (current) – [DSP Parameters] Nikhin Shetty | ||
---|---|---|---|
Line 33: | Line 33: | ||
^Name^Type^Description^ | ^Name^Type^Description^ | ||
|------------------------------|------------------------------------------------------------|------------------------------| | |------------------------------|------------------------------------------------------------|------------------------------| | ||
- | |Output< | + | |Output< |
Note: | Note: | ||
* <fc # | * <fc # | ||
Line 45: | Line 45: | ||
| CustomVal | | CustomVal | ||
|IsDBChosen|True|True/ | |IsDBChosen|True|True/ | ||
- | |NumChannels|1|20|Num of input and output channels. Change in this value requires re-compilation| | + | |NumChannels|1| |
\\ | \\ | ||
===== DSP Parameters ===== | ===== DSP Parameters ===== | ||
^ Parameter Name ^ Description ^ ADSP-214xx/ | ^ Parameter Name ^ Description ^ ADSP-214xx/ | ||
- | | ---------------------------------------- | + | | ------------------------ | ------------------------------------------------------------------------------------------------------ | ---------------------------------------- | ---------------------------- | |
|Gain|change the level of the input signal|Float| FixPoint8d24 | | |Gain|change the level of the input signal|Float| FixPoint8d24 | | ||
|SlewRate|Controls the transition time of the signal from one level to another level| Float| NA | | |SlewRate|Controls the transition time of the signal from one level to another level| Float| NA | | ||
- | | slew_mode | Slew mode and value for HW slew (only for HW slew) | NA | Integer | + | | slew_mode | Slew mode and value for HW slew (only for HW slew) | NA | Integer32 |
| alpha | scales the value based on Slew mode and value for HW slew (only for HW slew) | NA | FixPoint8d24 | | | alpha | scales the value based on Slew mode and value for HW slew (only for HW slew) | NA | FixPoint8d24 | | ||
| om_alpha | scales the value based on Slew mode and value for HW slew (only for HW slew) | NA | FixPoint8d24 | | | om_alpha | scales the value based on Slew mode and value for HW slew (only for HW slew) | NA | FixPoint8d24 | | ||
\\ | \\ | ||
===== DSP Parameter Computation ===== | ===== DSP Parameter Computation ===== | ||
- | |---------------------------------|------------------------------------------| | + | |---------------------------------|---------------------------------------------------------------------------| |
- | | SlewRate | = | + | | SlewRate | = Math.Pow(2, (-1 * StepSize)) | |
| Gain | = Math.Pow(10, | | Gain | = Math.Pow(10, | ||
- | | tc| = 0.04 * Math.Pow(2, (_slewRate - 1)) / 1000| | + | | tc | = 0.04 * Math.Pow(2, (_slewRate - 1)) / 1000| |
- | |alpha |=Math.Exp(-1 / (tc * fs))| | + | |alpha | = Math.Exp(-1 / (tc * FS))| |
- | |om_alpha |= 1 - alpha| | + | |om_alpha | = 1 - alpha| |
\\ | \\ |