Wiki

The most recent version of this page is a draft.DiffThis version is outdated by a newer approved version.DiffThis version (21 Jul 2016 07:30) was approved by Venkatesan Krishnamoorthy.The Previously approved version (20 Jul 2016 14:47) is available.Diff

This is an old revision of the document!


Log2

Click here to return to the Basic DSP section.

There are 2 versions of Log2 module.

  1. Log2 (Linear Interpolation)
  2. 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

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: Input Datadecimal - audioInput data to be converted to Log base 2



Output Pins

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: Log valuedecimal - controllog2(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

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: Input Datadecimal - audioInput data to be converted to Log base 2



Output Pins

NameFormat [int/dec] - [control/audio]Function Description
Pin 0: Log valuedecimal - controllog2(input)


Configuration

Right Click on the module to configure the number of iterations.

resources/tools-software/sigmastudio/toolbox/basicdsp/log2.1469079039.txt.gz · Last modified: 21 Jul 2016 07:30 by Venkatesan Krishnamoorthy