2.0.0
ST Edge AI Core for ISPU


ST Edge AI Core

ST Edge AI Core for ISPU


for ISPU target, based on ST Edge AI Core Technology 2.0.0



r1.1

Overview

ST Edge AI Core supports the ISPU, an ultralow-power, high-performance programmable core embedded inside ST’s sensors (https://www.st.com/content/st_com/en/ecosystems/MEMS-Sensors-Ecosystem-for-Machine-Learning.html).

For most topics on how to use ST Edge AI Core, you can refer to the common (not target specific) articles in this documentation. In addition, you can find some articles specific for the ISPU:

In the remainder of this article, some ISPU specific extensions to the command line of ST Edge AI Core are described.

Validate command extension

Specific options

--ucf

It is mandatory for validation on target ('validate --mode target' command) when the selected target is ISPU. The option takes as arguments the path to the UCF of the model to validate. The UCF containes the program to load to the ISPU to perform the validation. For how to generate the UCF, refer to On-target ISPU validation flow.

Generate command extension

Description

The generate command for ISPU generates both the files of the runtime library and the files of the specific converted model. The files are structured in inc, lib and src subfolders. This structure allows the generated code to be directly used in the validation and integration templates described in the articles “On-target ISPU validation flow” and “How to integrate generated code”.

$ stedgeai generate -m <model_file_path> --target ispu -o <output-directory-path>
...
 Copied runtime header files (90) to <output-directory-path>/inc/ai
 Copied runtime library files (1) to <output-directory-path>/lib/ai

 Generated files (5)
 ----------------------------------------------------------------------------------
 <output-directory-path>/inc/network_data.h
 <output-directory-path>/src/network_data.c
 <output-directory-path>/inc/network.h
 <output-directory-path>/src/network.c
 <output-directory-path>/inc/network_details.h

Creating txt report file <output-directory-path>/network_generate_report.txt
...

Additional resources

For additional resources, refer to ST’s GitHub repository for ISPU: https://github.com/STMicroelectronics/st-mems-ispu.