This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:sigmastudio:toolbox:basicdsp:signalsubtract [08 Mar 2017 13:55] – Venkatesan Krishnamoorthy | resources:tools-software:sigmastudio:toolbox:basicdsp:signalsubtract [09 Mar 2017 07:47] (current) – Venkatesan Krishnamoorthy | ||
---|---|---|---|
Line 4: | Line 4: | ||
\\ | \\ | ||
There are two kinds of subtraction supported. | There are two kinds of subtraction supported. | ||
- | - Real Subtraction | + | - Subtraction |
- | - Complex | + | - Subtraction |
- | ====Real Subtraction ==== | + | =====Subtraction |
The Subtract Block performs a subtraction operation on the input pins and outputs the difference result. (Minuend - Subtrahend = Difference)|{{signalsubtractpic1.png}}| | The Subtract Block performs a subtraction operation on the input pins and outputs the difference result. (Minuend - Subtrahend = Difference)|{{signalsubtractpic1.png}}| | ||
- | ===Input Pins=== | + | ====Input Pins==== |
^Name^Format [int/dec] - [control/ | ^Name^Format [int/dec] - [control/ | ||
|Input_Pin 0|any - any|Minuend term| | |Input_Pin 0|any - any|Minuend term| | ||
|Input_Pin 1|any - any|Subtrahend term| | |Input_Pin 1|any - any|Subtrahend term| | ||
- | ===Output Pins=== | + | ====Output Pins==== |
^Name^Format [int/dec] - [control/ | ^Name^Format [int/dec] - [control/ | ||
|Input_Pin 0|any - any|Difference term| | |Input_Pin 0|any - any|Difference term| | ||
- | ===Algorithm Description=== | + | ====Algorithm Description==== |
A standard subtraction operation is performed. When the algorithm is grown new input pins appear. These input pins represent more subtrahend terms so that the resulting output formula is:\\ | A standard subtraction operation is performed. When the algorithm is grown new input pins appear. These input pins represent more subtrahend terms so that the resulting output formula is:\\ | ||
Output_Pin 0 = Input_Pin 0 - (Input_Pin1 + Input_Pin2 + Input_Pin3 + ... Input_PinN) | Output_Pin 0 = Input_Pin 0 - (Input_Pin1 + Input_Pin2 + Input_Pin3 + ... Input_PinN) | ||
- | ===Example=== | + | ====Example==== |
The subtraction block can be used along with other arithmetic operators to realize many typical DSP functions. It is a basic building block that allows difference operations to be performed. | The subtraction block can be used along with other arithmetic operators to realize many typical DSP functions. It is a basic building block that allows difference operations to be performed. | ||
Line 31: | Line 31: | ||
\\ | \\ | ||
- | ===Algorithm Details=== | + | ====Algorithm Details==== |
|Toolbox Path|Basic DSP - Arithmetic Operations - Signal Subtract| | |Toolbox Path|Basic DSP - Arithmetic Operations - Signal Subtract| | ||
|Cores Supported|ADAU144x \\ ADAU176x \\ ADAU178x \\ ADAU170x \\ AD1940| | |Cores Supported|ADAU144x \\ ADAU176x \\ ADAU178x \\ ADAU170x \\ AD1940| | ||
Line 42: | Line 42: | ||
+ | =====Subtraction (Complex Signals) ===== | ||
+ | This algorithm subtracts the complex signals. (All real parts are subtracted to the first signal' | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | ====Input Pins==== | ||
+ | ^Name^Format [int/dec] - [control/ | ||
+ | |Pin 0: Operand 1 |complex| Input complex signal 1| | ||
+ | |Pin 1: Operand 2 |complex| Input Complex signal 2| | ||
+ | \\ | ||
+ | ====Output Pins==== | ||
+ | ^Name^Format [int/dec] - [control/ | ||
+ | |Pin 0: Output Signal| Complex | Complex output signal| | ||
+ | \\ | ||
+ | \\ | ||
+ | ====Grow Algorithm==== | ||
+ | input pins can be grown up to 8 channels. | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | ====Supported DSPs===== | ||
+ | ADAU145x (Block Schematic only) | ||
+ | \\ | ||
+ | \\ | ||
+ | ====Example Usage===== | ||
+ | This can be used to subtract two signals FFT's result as shown below. | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||