Load and Store From Memory - 2025.2 English - UG1079

AI Engine Kernel and Graph Programming Guide (UG1079)

Document ID
UG1079
Release Date
2025-11-26
Version
2025.2 English

AI Engine APIs let you read and write data from data memory, streaming data ports, and cascade streaming ports used by AI Engine kernels. For additional details on streaming APIs, see Streaming Data API. In the following example, the window readincr (window_readincr_v8(din)) API reads a window of complex int16 data into the data vector. Similarly, readincr_v8(cin) reads a sample of int16 data from the cin stream. writeincr (cas_out, v) writes data to a cascade stream output.

void func(input_window_cint16 *din, 
			input_stream_int16 *cin, 
			output_cascade<cacc48> *cas_out){
	v8cint16 data=window_readincr_v8(din);
	v8int16 coef=readincr_v8(cin);
	v4cacc48 v;
	…
	writeincr(cas_out, v);
}