For this tutorial, we have the version of the updated code in the component named tutorial_example_final. We can select this component and run C SIMULATION. After a few moments, the console reports “C_simulation finished successfully”. Expand the REPORTS and click on Code Analyzer.
It contains the updates previously mentioned and pipelines directives for the innermost-loops, and a pragma dataflow at the top to make sure that we are using dataflow. C-Synthesis will confirm that when we run it.
The screenshot below shows the Code Analyzer graph for tutorial_example on the left and the Code Analyzer graph for tutorial_example_final on the right.
At a glance, we can see that we have fewer processes and fewer channels as predicted by our investigations.
We also show the Dataflow Viewer output on the bottom right after running C SYNTHESIS: you can notice the process extracted are the same.