1 <!-- HTML header for doxygen 1.9.6-->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=11"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>CMSIS-Stream: CMSIS-Stream</title>
9 <link href="doxygen.css" rel="stylesheet" type="text/css"/>
10 <link href="tabs.css" rel="stylesheet" type="text/css"/>
11 <link href="extra_navtree.css" rel="stylesheet" type="text/css"/>
12 <link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
13 <link href="extra_search.css" rel="stylesheet" type="text/css"/>
14 <script type="text/javascript" src="jquery.js"></script>
15 <script type="text/javascript" src="dynsections.js"></script>
16 <script type="text/javascript" src="printComponentTabs.js"></script>
17 <script type="text/javascript" src="footer.js"></script>
18 <script type="text/javascript" src="navtree.js"></script>
19 <link href="navtree.css" rel="stylesheet" type="text/css"/>
20 <script type="text/javascript" src="resize.js"></script>
21 <script type="text/javascript" src="navtreedata.js"></script>
22 <script type="text/javascript" src="navtree.js"></script>
23 <link href="search/search.css" rel="stylesheet" type="text/css"/>
24 <script type="text/javascript" src="search/searchdata.js"></script>
25 <script type="text/javascript" src="search/search.js"></script>
26 <script type="text/javascript">
27 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
28 $(document).ready(function() { init_search(); });
31 <script type="text/javascript" src="darkmode_toggle.js"></script>
32 <link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
33 <link href="extra_navtree.css" rel="stylesheet" type="text/css"/>
34 <link href="extra_search.css" rel="stylesheet" type="text/css"/>
35 <link href="version.css" rel="stylesheet" type="text/css" />
36 <script type="text/javascript" src="../../version.js"></script>
39 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
41 <table cellspacing="0" cellpadding="0">
43 <tr style="height: 55px;">
44 <td id="projectlogo" style="padding: 1.5em;"><img alt="Logo" src="cmsis_logo_white_small.png"/></td>
45 <td style="padding-left: 1em; padding-bottom: 1em;padding-top: 1em;">
46 <div id="projectname">CMSIS-Stream
48 <div id="projectbrief">Optimized pipelines for data stream processing</div>
50 <td> <div id="MSearchBox" class="MSearchBoxInactive">
52 <span id="MSearchSelect" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"> </span>
53 <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
54 onfocus="searchBox.OnSearchFieldFocus(true)"
55 onblur="searchBox.OnSearchFieldFocus(false)"
56 onkeyup="searchBox.OnSearchFieldChange(event)"/>
57 </span><span class="right">
58 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
62 <!--END !PROJECT_NAME-->
67 <!-- end header part -->
68 <div id="CMSISnav" class="tabs1">
70 <script type="text/javascript">
71 writeComponentTabs.call(this);
75 <!-- Generated by Doxygen 1.9.6 -->
76 <script type="text/javascript">
77 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
78 var searchBox = new SearchBox("searchBox", "search/",'.html');
82 <div id="side-nav" class="ui-resizable side-nav-resizable">
84 <div id="nav-tree-contents">
85 <div id="nav-sync" class="sync"></div>
88 <div id="splitbar" style="-moz-user-select:none;"
89 class="ui-resizable-handle">
92 <script type="text/javascript">
93 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
94 $(document).ready(function(){initNavTree('index.html',''); initResizable(); });
97 <div id="doc-content">
98 <!-- window showing the filter options -->
99 <div id="MSearchSelectWindow"
100 onmouseover="return searchBox.OnSearchSelectShow()"
101 onmouseout="return searchBox.OnSearchSelectHide()"
102 onkeydown="return searchBox.OnSearchSelectKey(event)">
105 <!-- iframe showing the search results (closed by default) -->
106 <div id="MSearchResultsWindow">
107 <div id="MSearchResults">
110 <div id="SRResults"></div>
111 <div class="SRStatus" id="Loading">Loading...</div>
112 <div class="SRStatus" id="Searching">Searching...</div>
113 <div class="SRStatus" id="NoMatches">No Matches</div>
119 <div><div class="header">
120 <div class="headertitle"><div class="title">CMSIS-Stream </div></div>
122 <div class="contents">
123 <div class="textblock"><p><a class="anchor" id="mainpage"></a> <b>CMSIS-Stream</b> is a Python package that provides methods, interfaces, and tools to optimize data block streaming between processing steps of a DSP/ML application.</p>
124 <h1><a class="anchor" id="autotoc_md0"></a>
125 Access to CMSIS-Stream</h1>
127 <li><a href="https://github.com/ARM-software/cmsis-stream"><b>CMSIS-Stream GitHub Repo</b></a> - provides templates, usage examples, and access to documentation.</li>
128 <li><a href="https://pypi.org/project/cmsis-stream/"><b>CMSIS-Stream Python package</b></a> - provides easy access to tools via standard Python delivery system.</li>
130 <h1><a class="anchor" id="autotoc_md1"></a>
133 <li>CMSIS-Stream enables a modular design that makes it easier to develop and maintain DSP pipelines.</li>
134 <li>The provided tools generate at build time an optimized scheduling of the processing nodes with minimized memory overhead.</li>
135 <li>Creates an easy to understand representation of the design visualized with a compute graph.</li>
137 <h1><a class="anchor" id="autotoc_md2"></a>
139 <p>The components of CMSIS-Stream are:</p>
141 <li><b>Compute Graph</b> is the decomposition of the application in a directed graph that shows the data flow between processing nodes. It describes the data formats, FIFO buffers, data streams, and processing steps using a Python script file.</li>
142 <li><b>Tools</b> convert the Compute Graph with Python into processing steps at build-time with optimized schedule and memory usage.</li>
143 <li><b>Interfaces</b> header files, templates, and methods for data management (that works also on AMP systems).</li>
144 <li><b>Usage Examples</b> that help a software developer to get started.</li>
146 <h1><a class="anchor" id="autotoc_md3"></a>
147 Example Compute Graph</h1>
148 <p>The diagram below shows a Compute Graph with four nodes:</p>
150 <li>A source generating 5 values in with data type <code>q15</code> each time it is run.</li>
151 <li>A processing node (Filter) consuming and producing 7 values with data type <code>q15</code> each time it is run.</li>
152 <li>A processing node (Detector) consuming 5 values with data type <code>q15</code> and producing 2 values with data type <code>f32</code> each it is run.</li>
153 <li>A sink consuming 10 values with data type <code>f32</code> each time it is run.</li>
156 <img src="Compute-Graph-Sample.png" alt=""/>
157 <div class="caption">
158 Sample Compute Graph</div></div>
159 <p>This Compute Graph is described with a Python script file that defines the nodes and their connections. This Python script computes a C++ implementation with static schedule and correctly sized memory buffers between each node. Nodes that are implemented in C are integrated using C++ wrappers.</p>
160 <h1><a class="anchor" id="autotoc_md4"></a>
161 Complex DSP Pipelines</h1>
162 <p>CMSIS-Stream gives the developer a toolbox that allows to create optimized DSP pipelines, that are for example required to optimize machine learning (ML) software stacks. With a Compute Graph complex DSP pipelines like shown in the diagram below can be described. By optimizing signal conditioning and feature extraction, the complexity of the ML classifier. More DSP pre-processing helps therefore lowering the overall performance that is required for a ML application.</p>
164 <img src="ML-Stack.png" alt=""/>
165 <div class="caption">
166 Example Machine Learning Stack</div></div>
167 </div></div><!-- PageDoc -->
168 </div><!-- contents -->
169 </div><!-- doc-content -->
170 <!-- start footer part -->
171 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
174 <script type="text/javascript">
176 writeFooter.call(this);