The size of the window (in bytes) is declared with the connect<window<WINDOOW_SIZE>>
construct. The bfCascadeChain
data flow graph establishes the window connections between the input and output ports of the graph and the input ports of the beamforming kernels.
// Make connections for input data and coefficient
for(unsigned i=0;i<len;i++){
connect<window<IN_COEF_WINSZ>>(cin[i], core[i].in[0]);
connect<window<IN_DATA_WINSZ>>(din[i], core[i].in[1]);
}
// Connect Output
connect<window<OUT_DATA_WINSZ>>(core[(len-1)*(1-(yoff&1))].out[0], out);
The window sizes of the coefficient, data, and output ports are as follows:
Window Size Name | Window Size (bytes) | Number of 32-bit complex data samples |
---|---|---|
IN_DATA_WINSZ | 3072 | 768 |
IN_COEF_WINSZ | 2048 | 512 |
OUT_DATA_WINSZ | 3072 | 768 |