Other ST Functions
Double-click the operator test case definition file in the testcases/st/OpType/{SoC Version} or testcases/st/OpType/aicpu_kernel folder or right-click the file and choose OpType_case_timestamp.json from the shortcut menu. The ST template configuration window is displayed with Design and Text views. For details about the configuration description, see Fields in the TBE Operator ST Case Definition File and Fields in the AI CPU ST Operator Test Case Definition File.
More Functions
- Switching between the Design and Text views
If there is no incorrect configuration information in the Design view, the changes will be automatically synchronized to the Text view when you switch to the Text view. The reverse is also true.

- Adding a test case
On the operator test case definition page, click Add. The dialog box shown in the following figure is displayed, prompting you to input the Case Name.

Case Name is a string combination of digits, letters, and underscores (_).
Click OK to add the created case to the bottom of the Design Cases dialog box. The fields of the new case are empty and need to be configured. For details about the configuration rules, see Fields in the TBE Operator ST Case Definition File.
- Deleting a test case
In the operator test case definition dialog box, click
on the right of a case to delete the case.
- Copying and adding an operator input
On the operator test case definition page, click
on the right of Input[xx] to copy Input[xx] as a new Input[xx]. Alternatively, click
to add an operator input. Modify the parameters based on the site requirements.
If the operator ST project supports dynamic multi-shape operators, when the operator input of x1 is copied, the Name parameter must be named in the x10, x11, x12, ..., format. When the operator input of x2 is copied, the Name parameter must be named in the x20, x21, x22, ..., format.

- Deleting an operator input
In the operator test case definition dialog box, click
on the right of Input[xx] to delete Input[xx].
- Running one or more test cases
In the operator test case definition dialog box, select one or more cases and click Run.

- Modifying and running ST source code
- Generating source code
After the ST is successful, the ST source code is generated in ./testcases/st/out/OpName/src.
- Modifying source code
You can modify the source code as required to implement custom requirements and functions.
- Running source code
Right-click ./testcases/st/out/<operator name> and choose Run St Source from the shortcut menu to run the modified source code.
If you run the ST from another entry, the modified source code will be overwritten. Therefore, back up the source code in advance.
- Generating source code