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 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <script type="text/javascript" src="tabs.js"></script>
13 <script type="text/javascript" src="footer.js"></script>
14 <script type="text/javascript" src="navtree.js"></script>
15 <link href="navtree.css" rel="stylesheet" type="text/css"/>
16 <script type="text/javascript" src="resize.js"></script>
17 <script type="text/javascript" src="navtreedata.js"></script>
18 <script type="text/javascript" src="navtree.js"></script>
19 <link href="search/search.css" rel="stylesheet" type="text/css"/>
20 <script type="text/javascript" src="search/searchdata.js"></script>
21 <script type="text/javascript" src="search/search.js"></script>
22 <script type="text/javascript">
23 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
24 $(document).ready(function() { init_search(); });
27 <script type="text/javascript" src="darkmode_toggle.js"></script>
28 <link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
29 <link href="extra_navtree.css" rel="stylesheet" type="text/css"/>
30 <link href="extra_search.css" rel="stylesheet" type="text/css"/>
31 <link href="extra_tabs.css" rel="stylesheet" type="text/css"/>
32 <link href="version.css" rel="stylesheet" type="text/css"/>
33 <script type="text/javascript" src="../../version.js"></script>
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
38 <table cellspacing="0" cellpadding="0">
40 <tr style="height: 55px;">
41 <td id="projectlogo" style="padding: 1.5em;"><img alt="Logo" src="cmsis_logo_white_small.png"/></td>
42 <td style="padding-left: 1em; padding-bottom: 1em;padding-top: 1em;">
43 <div id="projectname">CMSIS-Stream
45 <div id="projectbrief">Optimized pipelines for data stream processing</div>
47 <td> <div id="MSearchBox" class="MSearchBoxInactive">
49 <span id="MSearchSelect" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"> </span>
50 <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
51 onfocus="searchBox.OnSearchFieldFocus(true)"
52 onblur="searchBox.OnSearchFieldFocus(false)"
53 onkeyup="searchBox.OnSearchFieldChange(event)"/>
54 </span><span class="right">
55 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
59 <!--END !PROJECT_NAME-->
64 <!-- end header part -->
65 <div id="CMSISnav" class="tabs1">
67 <script type="text/javascript">
68 writeComponentTabs.call(this);
72 <script type="text/javascript">
73 writeSubComponentTabs.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.</p>
163 <p>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>
165 <img src="ML-Stack.png" alt=""/>
166 <div class="caption">
167 Example Machine Learning Stack</div></div>
168 </div></div><!-- PageDoc -->
169 </div><!-- contents -->
170 </div><!-- doc-content -->
171 <!-- start footer part -->
172 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
175 <script type="text/javascript">
177 writeFooter.call(this);