Frame 4 - WP552

AI Engine Programming: A Kahn Process Network Evolution (WP552)

Document ID
WP552
Release Date
2023-07-20
Revision
1.0 English
The fourth set of data started writing to the buffers (pong buffer – buf0d/buf1d) and the vadd kernel (node/actor) started processing frame 3. The addConstant kernel (node/actor) started processing frame 2. The fir_32 kernel (node/actor) and copy_in_out kernel (node/actor) started processing frame 1 as the input token is ready.
Note: The fir_32 and copy_in_out kernels are running parallel as the data flow graph is made in such a way to obtain the benefit of parallelism.
Figure 1. Frame 4
Table 1. Sending the Frame 4 – Tokens/Kernels Status
KPN Terminology Input Token for Vadd Node/Actor Input Token for addConstant Node/Actor Input Token for fir_32 Input Token for copy_in_out Node/ Actor Port Node/ Actor Port
AI Engine Buffer (ping/pong) Vadd

Buffer (ping/pong)

addConstant

Buffer (ping/pong)

Buffer (ping/pong)

copy_in_out

Buffer (ping/pong)

fir_32

Buffer (ping/pong)

buf0/

buf1

buf0d/

buf1d

buf2 buf2d buf3 buf3d Buf4 buf4d buf6 buf6d buf5 buf5d
Frame 1 Fill - Waiting - - Waiting - - - - Waiting - - Waiting - -
Frame 2 Token ready Frame 1 Fill Processing (Frame 1) Fill - Waiting - - - - Waiting - - Waiting - -
Frame 3 Fill Token ready Frame 2 Processing (Frame 2) Token ready Frame 1 Fill Processing (Frame 1) Fill - Fill - Waiting - - Waiting - -
Frame 4 Token ready Frame 3 Fill Processing (Frame 3) Fill Token ready Frame 2 Processing (Frame 2) Token ready Frame 1 Fill Token ready for Frame 1 Fill

Processing (Frame 1)

Fill -

Processing (Frame 1)

Fill -