MATLAB: Using HDL Coder, how can I do partial streaming of a MATLAB loop

HDL Coderpartialpartiallystreamstreaming

The Optimize MATLAB Loops documentation page mentions that one can partially stream a loop using HDL Coder. How can I do this?

Best Answer

Partial streaming of a loop can be done by providing the optional second "streaming factor" argument. If it is not specified, then it takes a value equal to the number of iterations of the loop i.e. fully streamed:
coder.hdl.loopspec('stream', 2)