You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CMSIS-DSP/ComputeGraph/examples
Christophe Favergeon dfb67ee993 Started to rework the documentation for the ComputeGraph examples. 3 years ago
..
example1 Started to rework the documentation for the ComputeGraph examples. 3 years ago
example2 Started to rework the documentation for the ComputeGraph examples. 3 years ago
example3 Started to rework the documentation for the ComputeGraph examples. 3 years ago
example4 Started to rework the documentation for the ComputeGraph examples. 3 years ago
example5 Started to rework the documentation for the ComputeGraph examples. 3 years ago
example6 Started to rework the documentation for the ComputeGraph examples. 3 years ago
example7 Started to rework the documentation for the ComputeGraph examples. 3 years ago
example8 Started to rework the documentation for the ComputeGraph examples. 3 years ago
example9 Started to rework the documentation for the ComputeGraph examples. 3 years ago
example10 Started to rework the documentation for the ComputeGraph examples. 3 years ago
simple Started to rework the documentation for the ComputeGraph examples. 3 years ago
CMakeLists.txt Added a new simpler example for the compute graph. 3 years ago
README.md Started to rework the documentation for the ComputeGraph examples. 3 years ago
References.md Improvement to compute graph 3 years ago

README.md

How to build the examples

In folder ComputeGraph/example/build, type the cmake command:

cmake -DHOST=YES \
   -DDOT="path to dot.EXE" \
   -DCMSISCORE="path to cmsis core include directory" \
   -G "Unix Makefiles" ..

The Graphviz dot tool is requiring a recent version supporting the HTML-like labels.

If cmake is successful, you can type make to build the examples. It will also build CMSIS-DSP for the host.

If you don't have graphviz, the option -DDOT can be removed.

If for some reason it does not work, you can go into an example folder (for instance example1), and type the commands:

python graph.py 
dot -Tpdf -o test.pdf test.dot

It will generate the C++ files for the schedule and a pdf representation of the graph.

Note that the Python code is relying on the CMSIS-DSP PythonWrapper which is now also containing the Python scripts for the Synchronous Data Flow.

For example3 which is using an input file, cmake should have copied the input test pattern input_example3.txt inside the build folder. The output file will also be generated in the build folder.

example4 is like example3 but in pure Python and using the CMSIS-DSP Python wrapper (which must already be installed before trying the example). To run a Python example, you need to go into an example folder and type:

python main.py

example7 is communicating with OpenModelica. You need to install the VHTModelica blocks from the VHT-SystemModeling project on our GitHub