CODE
for ( kidx = 0; kidx < MEMSIZE; kidx++ ){
co_stream_read(input_stream, &MEM[kidx], sizeof(STREAMTYPE));
}
//oldpix = MEM[0];
for (nidx = 0; nidx < MEMSIZE; nidx++ ) {
oldpix = MEM[nidx];
co_stream_read(input_stream, &newpix, sizeof(STREAMTYPE));
co_stream_write(output_stream, &oldpix, sizeof(STREAMTYPE));
MEM[nidx] = newpix;
}
By the way if we uncomment the line with the oldpix variable the code is also running properly in hw simulation. In VHDL there is an additional state if the line is uncommented.
We are using Version 3.10.











