This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | resources:tools-software:sigmastudio:toolbox:basicdsp:log2 [21 Jul 2016 07:30] – [Log2] Venkatesan Krishnamoorthy | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Log2 ====== | ||
+ | [[: | ||
+ | \\ | ||
+ | There are 2 versions of Log2 module. | ||
+ | |||
+ | - Log2 (Linear Interpolation) | ||
+ | - Log2 Accurate (Binary Algorithm) | ||
+ | {{ : | ||
+ | ===== Log2 (Linear Interpolation) ===== | ||
+ | |||
+ | This Log2 algorithm computes the integral part of Log2 accurately. Fractional part of the Log is calculated using Linear interpolation. This algorithm takes very less cycles and less accurate. | ||
+ | |||
+ | \\ | ||
+ | ====Input Pins==== | ||
+ | ^Name^Format [int/dec] - [control/ | ||
+ | |Pin 0: Input Data|decimal - audio|Input data to be converted to Log base 2| | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | ====Output Pins==== | ||
+ | ^Name^Format [int/dec] - [control/ | ||
+ | |Pin 0: Log value|decimal - control|log2(input)| | ||
+ | |||
+ | |||
+ | ===== Log2 Accurate (Binary Algorithm) ===== | ||
+ | |||
+ | This module uses a binary algorithm to compute the Log2. This is more accurate and takes more cycle. Number of iterations in the algorithm can be configured. Accuracy of the algorithm increases when the number of iterations is increased. | ||
+ | |||
+ | \\ | ||
+ | ====Input Pins==== | ||
+ | ^Name^Format [int/dec] - [control/ | ||
+ | |Pin 0: Input Data|decimal - audio|Input data to be converted to Log base 2| | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | ====Output Pins==== | ||
+ | ^Name^Format [int/dec] - [control/ | ||
+ | |Pin 0: Log value|decimal - control|log2(input)| | ||
+ | \\ | ||
+ | ====Configuration==== | ||
+ | Right Click on the module to configure the number of iterations. | ||
+ | |||
+ | {{ : |