The Horizon J6 computing platform contains two DSP cores clocked at 1GHz and uses the Cadence's Tensilica Vision Q8 DSP IP.
The Vision Q8 DSP is dedicated to supporting algorithms such as computer vision or image processing, the Very Long Instruction Word (VLIW) and Single Instruction Multiple Data Stream (SIMD) can greatly increase the speed of computation. Vision Q8 DSP adopts 5-way VLIW architecture. Each instruction can contain two 64-byte loads or one 64-byte load and one 64-byte store at most. SIMD supports 1024bit operations, such as 128-way 8-bit integer, 64-way 16-bit integer, etc. For more information about the Vision Q8 DSP, see Cadence's Vision Q8 User Guide.
DSP boasts powerful computing power, and when used properly, deploying some computations that cannot be accelerated with BPU and are inefficient with ARM to DSP can greatly improve the inference performance of the model.
Xtensa Xplorer is an integrated development environment provided by Cadence for customers to develop software for their DSPs, which provides such functions as software development, compilation, debugging, simulation, profiling, hardware trace, etc. This section introduces only the installation of the Linux development environment. The installation and use of the Windows development environment can be found in the official documentation provided by Cadence.
You can get the DSP development package from Horizon Robotics, which contains the Xplorer-9.0.17-linux-x64-installer.bin and the Vision_Q8_linux.tgz installer.
By default, install Xtensa Develop Tools in the /opt/xtensa directory, but you can specify another directory as required. If you install it in the /opt/xtensa directory, a root permission is required. Execute the following command:
Unzip and extract the Vision_Q8_linux.tgz installation package, put it in the specified location under the Xtensa Develop Tools installation directory (e.g., /opt/xtensa/XtDevTools/install/builds/RI-2021.7-linux/ ), and then install it. You need to execute the following command:
In order to ensure that Xtensa Develop Tools can be used properly, you need to set the following environment variables:
The license should be set correctly before you use Xtensa Develop Tools, please contact your Horizon project contact person for application and configuration.
Execute the following two commands. If these two commands can be executed normally, the linux development environment is successfully installed.
For better DSP development, we recommend that you refer to the following documents.
After the compiler has been installed successfully, the following documents can be found in the paths XtDevTools/downloads/RI-2021.7/docs and XtDevTools/install/builds/RI- Found under 2021.7-linux/Vision_Q8/html/ISA:
| NO. | Document Name and Description | Document Catalog |
|---|---|---|
| 1 | Vision Q8 DSP introduction document | visionq8_ug.pdf |
| 2 | Dev Toolkit introduction document | sw_dev_toolkit_ug.pdf |
| 3 | Compiler introduction document | xtensa_xt_clang_compiler_ug.pdf |
| 4 | Xi Library document, located in the XI_Library_7.14.2.xws project Doc directory | XI_Library_UserGuide.pdf |
| 5 | Profiler document | gun_profiler_ug.pdf |
| 6 | Vision Q8 DSP instruction | NewISAhtml/index.html |