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 <script type="text/javascript">
76 writeSubComponentTabs.call(this);
78 <!-- Generated by Doxygen 1.9.6 -->
79 <script type="text/javascript">
80 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
81 var searchBox = new SearchBox("searchBox", "search/",'.html');
85 <div id="side-nav" class="ui-resizable side-nav-resizable">
87 <div id="nav-tree-contents">
88 <div id="nav-sync" class="sync"></div>
91 <div id="splitbar" style="-moz-user-select:none;"
92 class="ui-resizable-handle">
95 <script type="text/javascript">
96 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
97 $(document).ready(function(){initNavTree('index.html',''); initResizable(); });
100 <div id="doc-content">
101 <!-- window showing the filter options -->
102 <div id="MSearchSelectWindow"
103 onmouseover="return searchBox.OnSearchSelectShow()"
104 onmouseout="return searchBox.OnSearchSelectHide()"
105 onkeydown="return searchBox.OnSearchSelectKey(event)">
108 <!-- iframe showing the search results (closed by default) -->
109 <div id="MSearchResultsWindow">
110 <div id="MSearchResults">
113 <div id="SRResults"></div>
114 <div class="SRStatus" id="Loading">Loading...</div>
115 <div class="SRStatus" id="Searching">Searching...</div>
116 <div class="SRStatus" id="NoMatches">No Matches</div>
122 <div><div class="header">
123 <div class="headertitle"><div class="title">CMSIS-Stream </div></div>
125 <div class="contents">
126 <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>
127 <h1><a class="anchor" id="autotoc_md0"></a>
128 Access to CMSIS-Stream</h1>
130 <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>
131 <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>
133 <h1><a class="anchor" id="autotoc_md1"></a>
136 <li>CMSIS-Stream enables a modular design that makes it easier to develop and maintain DSP pipelines.</li>
137 <li>The provided tools generate at build time an optimized scheduling of the processing nodes with minimized memory overhead.</li>
138 <li>Creates an easy to understand representation of the design visualized with a compute graph.</li>
140 <h1><a class="anchor" id="autotoc_md2"></a>
142 <p>The components of CMSIS-Stream are:</p>
144 <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>
145 <li><b>Tools</b> convert the Compute Graph with Python into processing steps at build-time with optimized schedule and memory usage.</li>
146 <li><b>Interfaces</b> header files, templates, and methods for data management (that works also on AMP systems).</li>
147 <li><b>Usage Examples</b> that help a software developer to get started.</li>
149 <h1><a class="anchor" id="autotoc_md3"></a>
150 Example Compute Graph</h1>
151 <p>The diagram below shows a Compute Graph with four nodes:</p>
153 <li>A source generating 5 values in with data type <code>q15</code> each time it is run.</li>
154 <li>A processing node (Filter) consuming and producing 7 values with data type <code>q15</code> each time it is run.</li>
155 <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>
156 <li>A sink consuming 10 values with data type <code>f32</code> each time it is run.</li>
159 <img src="Compute-Graph-Sample.png" alt=""/>
160 <div class="caption">
161 Sample Compute Graph</div></div>
162 <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>
163 <h1><a class="anchor" id="autotoc_md4"></a>
164 Complex DSP Pipelines</h1>
165 <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>
167 <img src="ML-Stack.png" alt=""/>
168 <div class="caption">
169 Example Machine Learning Stack</div></div>
170 </div></div><!-- PageDoc -->
171 </div><!-- contents -->
172 </div><!-- doc-content -->
173 <!-- start footer part -->
174 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
177 <script type="text/javascript">
179 writeFooter.call(this);