Wiki

This version (11 Dec 2023 08:31) was approved by John Joseph.The Previously approved version (05 Dec 2022 12:40) is available.Diff

Return to parent page

Algorithm Designer

Algorithm Designer offers the flexibility to create a custom SigmaStudio+ block with runtime control over the parameters. SigmaStudio+ Algorithm Designer has two use cases:

  • Algorithm Designer can be used as Designer Control module which could be inserted in the schematic as a generic module. Designer Control can implement any algorithm and offer provision for run-time parameter tuning. Since edits can be made to the source code as well as parameters in the Designer Control and the schematic can be immediately compiled and executed, this is useful during the development phase of the module.
  • Algorithm Designer can generate a reusable SigmaStudio+ block in the form of a DLL from an Algorithm using CrossCore Embedded Studio tools. The resulting SigmaStudio+ Add-In library file (Plug-In) can be reused and redistributed just like built-in SigmaStudio+ Algorithms.

This page describes the steps required to use Algorithm Designer as Designer Control module as well as steps required to generate a custom SigmaStudio+ Plug-In using CrossCore Embedded Studio tools and Algorithm Designer.

The initial version of the Algorithm Designer supports only ADSP-215xx/ADSP-SC5xx series of processors. From SigmaStudioPlus 2.1.0 version onwards, the Algorithm Designer supports ADSP-214xx processors also.

Implementing Custom Algorithm using Algorithm Designer Module


Algorithm Designer Module is a generic module which can be inserted in the schematic. Once inserted in the schematic, this module can be used to directly implement custom block processing algorithms without the need of generating a Plug-In. Run-time control of parameters are also supported on the Algorithm Designer Module.

Insert Module and Launch Designer

This module is listed under “Designer” category in the tool-box. This module is available only on the block processing schematic. When inserted in the schematic, the module will have no input-output pins. The Algorithm Designer window can be launched by double clicking on the Algorithm Designer module inserted in the schematic.

Configure the module using Algorithm Designer

Algorithm Designer will be used to configure the algorithm source code and parameters of the Algorithm Designer Module. Steps involved are:

  1. Define Source
  2. Define Parameters
  3. Define Pins
  4. Define Memory
  5. Define Runtime Variables
  6. Assign Parameters

Refer to Designing Module for more details.

Compile the Schematic with Designer Control

Once the above steps are completed, the input-output pins on the Algorithm Designer module can be connected to the schematic. Link-Compile-Download the schematic. The Algorithm Designer window can be either left open or closed before compiling the schematic. Ensure to save the Designer project before closing the Algorithm Designer window.

Tune Custom Algorithm using Algorithm Designer

Tune Parameters
Module parameters can be modified by changing the runtime variables and runtime buffers. Since the module parameters are assigned with the runtime parameters, changing the runtime parameters changes the module parameters. Runtime variables can be modified using the numeric up-down control. Runtime buffers can be modified using the ‘Edit” button. After the table entries and edited, press ‘Update’ to send the updated parameters to the target.

Modify Source Code
Changes to the module source code can be made in the source editor within Algorithm Designer. Note that it is required to recompile the schematic once the source code has been modified.

Modify Memory Requirements
Note that it is required to recompile the schematic once the memory requirements have been modified in the Algorithm Designer.

Finalize the Module

Once the module is finalized, it can be built as a Plug-In and distributed. Click here for instructions to Generate Plug-In Assembly.


Generate Algorithm Plugin (DLL) using Algorithm Designer

Launch Algorithm Designer

Algorithm Designer can be launched in 2 ways.

  1. Using the algorithm Designer module as mentioned in previous section.
  2. Algorithm Designer can be also launched by selecting ToolsAlgorithm Designer from the menu bar.



Configure the module using Algorithm Designer

Algorithm Designer will be used to configure the source, pins, parameters, memory and UI of the new module. Refer to Designing Module for more details.

Generate Plug-In Assembly

Click here for instructions to Generate Plug-In Assembly

Coding Conventions

resources/tools-software/sigmastudiov2/usingsigmastudio/designermodule.txt · Last modified: 11 Dec 2023 08:22 by Chiranjeevi Palle