Development tool and method based on audio DSP chip algorithm

By using a development tool based on audio DSP chips, a graphical interface is used to build algorithm logic files and dynamically compile them to generate small static libraries. This solves the problems of resource constraints and memory waste in the development of audio DSP chip algorithms, achieving an efficient development process and reducing development costs.

CN121578993APending Publication Date: 2026-02-27JUDI (SHANGHAI) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511771255.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-28
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

In the development of existing audio DSP chip algorithms, it is difficult to achieve efficient deployment and optimization of complex algorithms under resource constraints. Furthermore, memory resources are wasted significantly during the development process, and communication and coordination costs between customers and chip manufacturers are high, resulting in low development efficiency.

Method used

It adopts development tools based on audio DSP chips, including UI tools, external algorithm libraries and DSP frameworks. The algorithm logic files are built through a graphical interface, and small static libraries are dynamically compiled to reduce memory usage and support flexible management and customized development of the algorithm library.

Benefits of technology

It reduces memory consumption, simplifies the development process, reduces the need for cooperation between customers and chip manufacturers, improves development efficiency, and reduces maintenance difficulty and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121578993A_ABST
    Figure CN121578993A_ABST
Patent Text Reader

Abstract

A development tool based on an audio DSP chip algorithm comprises a UI tool, an external algorithm library and a DSP framework, and the UI tool comprises a basic algorithm module, a graphical algorithm building module, an algorithm flow chart conversion configuration file module, an algorithm list generation module, an algorithm compiling intermediate file decryption module and an algorithm dynamic compiling module; the external algorithm library comprises a basic algorithm library, an intermediate file compiling module and an intermediate file encryption module; the DSP framework comprises a source code SDK (Software Development Kit) and a static library calling framework. The invention further discloses a development method based on the audio DSP chip algorithm. According to the method, the algorithm library and the tool chain are modified, the algorithm list needing to be used is output and dynamically compiled, the firmware size and memory consumption are reduced, and due to the change of the development process, the cooperation between customers and an original chip factory can be reduced, the development process is simplified, the development efficiency is improved, the maintenance difficulty is reduced, and thus the development cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of chip technology and relates to chip development technology, specifically to a development tool and method based on audio DSP chip algorithms. Background Technology

[0002] Audio digital signal processors (DSPs), as specialized microprocessors designed for real-time audio signal processing, have been widely used in consumer electronics, communications, automotive electronics, and professional audio equipment. With the rapid development of high-resolution audio, spatial audio, and intelligent audio devices, the complexity of modern audio processing algorithms is increasing exponentially, placing higher demands on the algorithm development platforms and methods for audio DSP chips. The core challenge in developing audio DSP chip algorithms lies in how to efficiently deploy and optimize complex audio algorithms within limited resource constraints (such as processor computing power, storage space, and power consumption budget), while ensuring real-time performance and sound fidelity.

[0003] In the field of audio DSP chip algorithm development, the algorithm portion is usually kept secret due to the high development cost. DSP chip manufacturers typically provide customers with an open-source SDK, static algorithm library, and toolchain for customized development.

[0004] Because different customers require different basic algorithm modules, and algorithm static library providers typically offer full algorithm libraries, even unused algorithm modules can still consume valuable memory resources. For DSP chips with limited memory resources, it is even more necessary to customize and release different algorithm static libraries to meet the needs of different manufacturers, greatly increasing the development and management workload of chip manufacturers.

[0005] Different customers require different lists of algorithms. Even the same customer may continuously adjust the algorithm, and the required list of algorithms will also change. Each change requires going through the process again. At the same time, during the development process, the development of customers and chip manufacturers is highly interdependent, which increases communication and coordination costs and reduces development efficiency. Summary of the Invention

[0006] To address the technical deficiencies of existing technologies, this invention discloses a development tool and method based on audio DSP chip algorithms.

[0007] The development tool based on audio DSP chip algorithms described in this invention includes a UI tool, an external algorithm library, and a DSP framework. The UI tool includes a basic algorithm module, a graphical algorithm building module, an algorithm flowchart to configuration file conversion module, an algorithm manifest generation module, an algorithm compilation intermediate file decryption module, and an algorithm dynamic compilation module. The basic algorithm module stores various basic algorithms. The graphical algorithm building module allows developers to combine basic algorithms visually through a graphical interface, generating algorithm logic files for the developed algorithms. The algorithm flowchart to configuration file conversion module converts the algorithm logic files into internal programs that can be recognized and run by the DSP chip. The algorithm compilation intermediate file decryption module calls the basic algorithm encrypted file to decrypt it. The algorithm dynamic compilation module dynamically compiles the decrypted file to obtain a smaller static library containing only the basic algorithms used in the algorithm logic files. The external algorithm library includes a basic algorithm library, a HIFI platform intermediate file compilation module, and an intermediate file encryption module; the HIFI platform intermediate file compilation module compiles intermediate files corresponding to all basic algorithms in the basic algorithm library, and the intermediate file encryption module compiles and forms basic algorithm encrypted files. The DSP framework includes a source code SDK and a static library calling framework.

[0008] Preferably, the UI tool is installed on a PC and connected to the DSP chip via the PC's serial port.

[0009] Preferably, the HIFI platform intermediate file compilation module compiles all the basic algorithms in the basic algorithm library into intermediate files in OBJ format.

[0010] This invention also discloses a development method based on an audio DSP chip algorithm, which, using the aforementioned development platform, includes the following steps: Step 1. Set up the basic algorithm module to obtain the basic algorithm encryption file; Step 2. Use UI tools to generate the internal program for DSP chip development: Step 2.1 On the UI tool running on the PC, use the graphical algorithm building module to call the basic algorithm module, draw the algorithm logic diagram, and generate the algorithm logic file and algorithm list corresponding to the algorithm logic diagram. Step 2.2: Convert the algorithm logic file into an internal program that can be recognized and run by the DSP chip through the algorithm flowchart conversion configuration file module; Step 2.3 According to the algorithm list, the algorithm compilation intermediate file decryption module calls the corresponding basic algorithm encryption file compiled from the basic algorithm library on the PC to decrypt the file.

[0011] Step 2.4 The algorithm dynamic compilation module dynamically compiles the basic algorithm to obtain a smaller static library containing only the basic algorithm used in the algorithm logic file; Step 2.5: Transfer the chip internal running program obtained in Step 2.2 and the static library obtained in Step 2.4 to the DSP chip; Step 3. DSP chip operating steps: The static library, algorithm flowchart conversion configuration file module generates the chip's internal running program, and the original DSP framework are compiled and packaged into firmware, which is then burned into the DSP chip for further development.

[0012] Preferably, step 1 specifically includes: Step 1.1. Algorithm engineers use any computer language such as Matlab or Python to build basic algorithms; Step 1.2. Convert the basic algorithm into C language code; Step 1.3. Compile the C language code using a compiler. After compilation, store the code in the basic algorithm library and generate an icon for each basic algorithm that can be called by the graphical algorithm building module. Step 1.4. The HIFI platform intermediate file compilation module compiles all the basic algorithms into intermediate files, which are then encrypted by the intermediate file encryption module to form the basic algorithm encrypted file.

[0013] Preferably, in step 3, before transmitting the firmware to the DSP chip for flashing, the user modifies the DSP chip SDK source code and static library calling framework under the DSP framework according to their own needs.

[0014] Compared to existing technologies, this invention modifies the algorithm library and toolchain, outputs the list of algorithms to be used and performs dynamic compilation, reducing firmware size and memory consumption. Due to the change in development process, it can reduce cooperation between customers and chip manufacturers, simplify the development process, improve development efficiency, reduce maintenance difficulty, and thus reduce development costs. Attached Figure Description

[0015] Figure 1 This is a schematic diagram illustrating a specific implementation of the development tool based on the audio DSP chip algorithm described in this invention; Figure 2 This is a schematic diagram illustrating a specific implementation of the development method based on audio DSP chip algorithms described in this invention. Detailed Implementation

[0016] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0017] This invention is mainly applied to the development of DSP chips, such as... Figure 1 As shown, the development tool based on audio DSP chip algorithm described in this invention includes a UI (user interface) tool, an external algorithm library, and a DSP framework. The UI tool and the external algorithm library are generally installed on a PC and connected to the DSP chip via a serial port. The DSP framework is set up inside the DSP chip.

[0018] The UI tool includes a basic algorithm module, a graphical algorithm building module, an algorithm flowchart to configuration file conversion module, an algorithm manifest generation module, an algorithm compilation intermediate file decryption module, and an algorithm dynamic compilation module. The basic algorithm module stores various basic algorithms. The graphical algorithm building module allows developers to combine basic algorithms visually on a graphical interface to generate algorithm logic files for the developed algorithms. The algorithm flowchart to configuration file conversion module converts the algorithm logic files into internal programs that can be recognized and run by the DSP chip. The external algorithm library is deployed on an external terminal such as a PC. The external algorithm library includes a basic algorithm library, a HIFI platform intermediate file compilation module, and an intermediate file encryption module. The basic algorithm library stores multiple fundamental algorithms. When adding new fundamental algorithms, tools such as MATLAB and Python can be used for verification and simulation, continuously developing and updating the basic algorithms. Each fundamental algorithm module has a corresponding algorithm program that can be executed within the DSP chip. The chip calls the internal algorithm program by inputting the program into the chip to run the algorithm. The external algorithm library is used to facilitate users to write and develop programs on a PC.

[0019] The developed basic algorithms are converted into C language source code through the HIFI platform. The intermediate file compilation module of the HIFI platform compiles all the basic algorithms in the basic algorithm library into OBJ files that are easy to encrypt and decrypt later. Each basic algorithm corresponds to one OBJ file. After being encrypted by the intermediate file encryption module, the basic algorithm encrypted file is formed and stored in the PC's memory.

[0020] In this invention, a specific implementation of the UI tool is as follows: Figure 2As shown, the UI tool is deployed on an external terminal such as a PC and includes a basic algorithm module, a graphical algorithm building module, an algorithm flowchart conversion configuration file module, an algorithm compilation intermediate file decryption module, and an algorithm dynamic compilation module. The basic algorithm module stores various basic algorithms. The graphical algorithm building module allows developers to combine basic algorithms through visual operations on a graphical interface, generating algorithm logic files and algorithm lists for the developed algorithms. The algorithm flowchart conversion configuration file module converts the algorithm logic files into internal running programs that can be recognized and executed by the DSP chip.

[0021] The basic algorithm module stores various fundamental algorithms, such as addition, subtraction, multiplication, division, iteration, and Fourier transform used in DSP development. It also stores the display symbols, port definitions, and algorithm definitions for these algorithms in the UI tools. Based on the basic algorithm settings that the DSP chip under development might use, the basic algorithm module includes all the fundamental algorithms required by the DSP chip itself during normal operation.

[0022] The graphical algorithm building module is a software module on the PC with a graphical interface, used by DSP developers to build algorithms. Through the graphical algorithm building module, DSP developers can directly call various algorithm symbols in the basic algorithm module, and combine basic algorithms in a visual manner on the graphical interface to generate algorithm logic files for the developed algorithms. The algorithm logic files can be built and modified on the PC using conventional operations such as keyboard and mouse, realizing the combination of different basic algorithms, and presented to developers in a graphical form.

[0023] The algorithm logic file generated by the graphical algorithm building module is a parameterized configuration file that can be directly recognized and run by the DSP chip without further language compilation. The algorithm flowchart conversion configuration file module converts the algorithm logic file built by DSP developers through the graphical algorithm building module into an internal chip program that can be recognized and run by the DSP chip.

[0024] The graphical algorithm building module simultaneously generates an algorithm list. Based on the generated algorithm list, the algorithm compilation intermediate file decryption module calls the corresponding basic algorithm encryption file generated by the basic algorithm library on the PC and decrypts the file.

[0025] Because the source code of the algorithm is highly confidential, DSP chip manufacturers usually do not release the source code to customers. If all the basic algorithm modules are compiled and transmitted to the DSP chip, the memory usage of the DSP chip cannot be reduced. Therefore, the intermediate files are compiled and encrypted, which can preserve the confidentiality of the algorithm and provide support for subsequent dynamic compilation. Only the algorithms that need to be used are compiled, thus reducing memory usage.

[0026] The algorithm dynamic compilation module will generate corresponding compilation scripts for the decrypted files, call the local cross-compiler on the PC to dynamically compile the basic algorithms, generate program files that can be directly run by the DSP chip, and obtain a small static library containing only the basic algorithms used in the algorithm logic files.

[0027] Before transmitting the firmware to the DSP chip, users can modify the source code of the DSP chip SDK (Software Development Kit) and the static library calling framework under the DSP framework according to their own needs, or they can not modify the SDK source code, but compile and package the static library, the chip internal running program generated by the algorithm flowchart conversion configuration file module, and the original DSP framework into firmware, and then burn it into the DSP chip for subsequent development.

[0028] The DSP framework includes a source code SDK (Software Development Kit) and a static library calling framework, used to call static libraries and run DSP software programs at the underlying level. The source code SDK and static library calling framework are modules that come with the DSP chip after development; this invention does not involve specific improvements.

[0029] The DSP chip development method based on the above platform includes the following steps: Step 1. Set up the basic algorithm module; Step 1.1. Algorithm engineers use any computer language such as Matlab or Python to build basic algorithms; Step 1.2. Convert the basic algorithm into C language code; Step 1.3. Compile the C language code using a compiler. After compilation, store the code in the basic algorithm library and generate an icon for each basic algorithm that can be called by the graphical algorithm building module. Step 1.4. The HIFI platform intermediate file compilation module compiles all basic algorithms into intermediate files, which are then encrypted by the intermediate file encryption module to form encrypted files of the basic algorithms. By storing all the basic algorithms in the form of modules and generating icons in step 1, DSP developers no longer need to write and compile the basic algorithms. In subsequent software upgrades and updates, as long as the basic algorithms are not updated, the basic algorithm modules will not need to be updated, which reduces the development difficulty and shortens the development cycle.

[0030] The resulting encrypted basic algorithm file can be used later to protect the technical confidentiality of DSP chip manufacturers.

[0031] Step 2. Use UI tools to generate the internal program for DSP chip development: Step 2.1 On the UI tool running on the PC, use the graphical algorithm building module to call the basic algorithm module, draw the algorithm logic diagram, and generate the algorithm logic file and algorithm list corresponding to the algorithm logic diagram. Step 2.2: Convert the algorithm logic file into an internal program that can be recognized and run by the DSP chip through the algorithm flowchart conversion configuration file module; Step 2.3 According to the algorithm list, the algorithm compilation intermediate file decryption module calls the corresponding basic algorithm encryption file compiled from the basic algorithm library on the PC to decrypt the file.

[0032] Step 2.4 The algorithm dynamic compilation module dynamically compiles the basic algorithm to obtain a smaller static library containing only the basic algorithm used in the algorithm logic file; Step 2.5: Transfer the chip internal running program obtained in Step 2.2 and the static library obtained in Step 2.4 to the DSP chip; In this step, DSP developers can directly call the basic algorithm module through the graphical algorithm building module and draw the algorithm logic block diagram. This significantly reduces the technical skill requirements for developers, and even those without DSP code development experience can generate algorithms for DSP chips without writing any code. The graphically displayed algorithm is easy to understand, modify, and update.

[0033] By generating a smaller static library, only a small number of essential algorithms can be compiled and run in the DSP's memory, reducing the memory usage when the DSP chip is running programs.

[0034] Step 3. DSP chip operating steps: Before transmitting the firmware to the DSP chip, users can modify the source code of the DSP chip SDK (Software Development Kit) and the static library calling framework under the DSP framework according to their own needs, or they can not modify the SDK source code, but compile and package the static library, the chip internal running program generated by the algorithm flowchart conversion configuration file module, and the original DSP framework into firmware, and then burn it into the DSP chip for subsequent development.

[0035] Compared to existing technologies, this invention modifies the algorithm library and toolchain, outputs the list of algorithms to be used and performs dynamic compilation, reducing firmware size and memory consumption. Due to the change in development process, it can reduce cooperation between customers and chip manufacturers, simplify the development process, improve development efficiency, reduce maintenance difficulty, and thus reduce development costs.

[0036] The foregoing descriptions are preferred embodiments of the present invention. Unless there is a clear contradiction between the preferred embodiments or a prerequisite for a particular preferred embodiment, the preferred embodiments can be arbitrarily combined and used. The embodiments and specific parameters described are only for clearly illustrating the inventor's invention verification process and are not intended to limit the scope of patent protection of the present invention. The scope of patent protection of the present invention shall still be determined by its claims. Similarly, any equivalent structural changes made based on the description and drawings of the present invention shall also be included within the scope of protection of the present invention.

Claims

1. A development tool based on audio DSP chip algorithms, comprising a UI tool, an external algorithm library, and a DSP framework, characterized in that, The UI tool includes a basic algorithm module, a graphical algorithm building module, an algorithm flowchart to configuration file conversion module, an algorithm manifest generation module, an algorithm compilation intermediate file decryption module, and an algorithm dynamic compilation module. The basic algorithm module stores various basic algorithms. The graphical algorithm building module allows developers to combine basic algorithms visually on a graphical interface to generate algorithm logic files for the developed algorithms. The algorithm flowchart to configuration file conversion module converts the algorithm logic files into internal programs that can be recognized and run by the DSP chip. The algorithm compilation intermediate file decryption module calls the basic algorithm encrypted file to decrypt the file. The algorithm dynamic compilation module dynamically compiles the decrypted file to obtain a smaller static library containing only the basic algorithms used in the algorithm logic file. The external algorithm library includes a basic algorithm library, a HIFI platform intermediate file compilation module, and an intermediate file encryption module; the HIFI platform intermediate file compilation module compiles intermediate files corresponding to all basic algorithms in the basic algorithm library, and the intermediate file encryption module compiles and forms basic algorithm encrypted files. The DSP framework includes a source code SDK and a static library calling framework.

2. The development tool based on audio DSP chip algorithms as described in claim 1, characterized in that, The UI tool is installed on a PC and connects to the DSP chip via the PC's serial port.

3. The low-code development platform based on audio DSP chip algorithms as described in claim 1, characterized in that, The intermediate file compilation module of the HIFI platform compiles all the basic algorithms in the basic algorithm library into intermediate files in OBJ format.

4. A development method based on an audio DSP chip algorithm, characterized in that, Using the development tool according to any one of claims 1 to 3, the method includes the following steps: Step 1. Set up the basic algorithm module to obtain the basic algorithm encryption file; Step 2. Use UI tools to generate the internal program for DSP chip development: Step 2.1 On the UI tool running on the PC, use the graphical algorithm building module to call the basic algorithm module, draw the algorithm logic diagram, and generate the algorithm logic file and algorithm list corresponding to the algorithm logic diagram. Step 2.2: Convert the algorithm logic file into an internal program that can be recognized and run by the DSP chip through the algorithm flowchart conversion configuration file module; Step 2.3 According to the algorithm list, the algorithm compilation intermediate file decryption module calls the corresponding basic algorithm encryption file compiled from the basic algorithm library on the PC to decrypt the file.

5. Step 2.4 The algorithm dynamic compilation module dynamically compiles the basic algorithm to obtain a smaller static library containing only the basic algorithm used in the algorithm logic file; Step 2.5: Transfer the chip internal running program obtained in Step 2.2 and the static library obtained in Step 2.4 to the DSP chip; Step 3. DSP chip operating steps: The static library, algorithm flowchart conversion configuration file module generates the chip's internal running program, and the original DSP framework are compiled and packaged into firmware, which is then burned into the DSP chip for further development.

6. The development method based on audio DSP chip algorithm as described in claim 4, characterized in that, Step 1 specifically includes: Step 1.

1. Algorithm engineers use any computer language such as Matlab or Python to build basic algorithms; Step 1.

2. Convert the basic algorithm into C language code; Step 1.

3. Compile the C language code using a compiler. After compilation, store the code in the basic algorithm library and generate an icon for each basic algorithm that can be called by the graphical algorithm building module. Step 1.

4. The HIFI platform intermediate file compilation module compiles all the basic algorithms into intermediate files, which are then encrypted by the intermediate file encryption module to form the basic algorithm encrypted file.

7. The development method based on audio DSP chip algorithm as described in claim 4, characterized in that, In step 3, before transmitting the firmware to the DSP chip for flashing, the user modifies the DSP chip SDK source code and static library calling framework under the DSP framework according to their own needs.