Skip to content

Commit d586bb2

Browse files
author
Rob Graessle
committed
Revert "Revert "Merge branch '2023.2' of https://gitenterprise.xilinx.com/abehbood/Vitis_Model_Composer into 2023.2""
This reverts commit a36d76b.
1 parent a36d76b commit d586bb2

File tree

363 files changed

+30969
-2124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

363 files changed

+30969
-2124
lines changed

Examples/AIENGINE/DSPlib/Dynamic_FFT/README.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
<html>
43
<head>
54
<title></title>
@@ -12,9 +11,10 @@ <h1 id="ai-engine-dynamic-point-fft">AI Engine Dynamic Point FFT</h1>
1211
function myFunction() {
1312

1413
var path = document.location.pathname;
15-
var directory = path.substring(path.indexOf('/'), path.lastIndexOf('/'));
14+
var directory1 = path.substring(path.indexOf('/'), path.lastIndexOf('/'));
15+
var directory = directory1.substring(directory1.lastIndexOf('/')+1);
1616

17-
commandURI="matlab:XmcExampleApi.openExample('Dynamic_FFT');"
17+
commandURI="matlab:XmcExampleApi.openExample('" + directory + "');"
1818

1919
document.location=commandURI
2020
}
@@ -148,7 +148,7 @@ <h2 id="knowledge-nuggets">Knowledge nuggets</h2>
148148
border-left-width: 3px;
149149
padding: 0 1em;
150150
color: #828282;
151-
border-left: 4px solid #e8e8e8;
151+
border-left: 3px solid #e8e8e8;
152152
padding-left: 15px;
153153
font-size: 18px;
154154
letter-spacing: -1px;
@@ -227,9 +227,15 @@ <h2 id="knowledge-nuggets">Knowledge nuggets</h2>
227227
a:visited {
228228
color: #0366d6; }
229229

230-
h1, h2, h3 {
230+
h2, h3 {
231231
border-bottom: 1px solid #eaecef;
232232
color: #111;
233-
/* Darker */ }</style>
233+
/* Darker */ }
234+
235+
h1 {
236+
color: black;
237+
border-bottom: 1px solid #eaecef;
238+
}
239+
</style>
234240
</body>
235241
</html>

Examples/AIENGINE/DSPlib/README.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
<html>
43
<head>
54
<title></title>
@@ -140,7 +139,7 @@ <h2 id="examples">Examples</h2>
140139
border-left-width: 3px;
141140
padding: 0 1em;
142141
color: #828282;
143-
border-left: 4px solid #e8e8e8;
142+
border-left: 3px solid #e8e8e8;
144143
padding-left: 15px;
145144
font-size: 18px;
146145
letter-spacing: -1px;
@@ -219,9 +218,15 @@ <h2 id="examples">Examples</h2>
219218
a:visited {
220219
color: #0366d6; }
221220

222-
h1, h2, h3 {
221+
h2, h3 {
223222
border-bottom: 1px solid #eaecef;
224223
color: #111;
225-
/* Darker */ }</style>
224+
/* Darker */ }
225+
226+
h1 {
227+
color: black;
228+
border-bottom: 1px solid #eaecef;
229+
}
230+
</style>
226231
</body>
227232
</html>

Examples/AIENGINE/DSPlib/fft/README.html

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
<html>
43
<head>
54
<title></title>
@@ -12,9 +11,10 @@ <h1 id="using-dsplib-ai-engine-fft-directly-from-the-library-browser">Using DSPL
1211
function myFunction() {
1312

1413
var path = document.location.pathname;
15-
var directory = path.substring(path.indexOf('/'), path.lastIndexOf('/'));
14+
var directory1 = path.substring(path.indexOf('/'), path.lastIndexOf('/'));
15+
var directory = directory1.substring(directory1.lastIndexOf('/')+1);
1616

17-
commandURI="matlab:XmcExampleApi.openExample('fft');"
17+
commandURI="matlab:XmcExampleApi.openExample('" + directory + "');"
1818

1919
document.location=commandURI
2020
}
@@ -24,13 +24,14 @@ <h1 id="using-dsplib-ai-engine-fft-directly-from-the-library-browser">Using DSPL
2424
<button type="button" style="background-color:#d0d028; font-size: 20px;" onclick="myFunction()">Open Design</button>
2525

2626
</html>
27-
<p>This example demonestrates using the AI Engine FFT block in Model Composer and comparing the results to the Simulink FFT block. </p>
27+
<p>This example demonstrates using the AI Engine FFT block in Vitis Model Composer and comparing the results to the Simulink FFT block. </p>
2828
<h2 id="knowledge-nuggets">Knowledge nuggets</h2>
2929
<p><img width="18" height="18" src="../Images/bulb.png"> Note the usage of the <a href="https://www.mathworks.com/help/matlab/ref/setenv.html">environment varibale</a> in MATLAB to more easily set the paths in the AIE Graph block mask.</p>
3030
<p><img width="18" height="18" src="../Images/bulb.png"> Note the usage of the <em>To Fixed Size</em> block to convert a variable size signal to a fixed size signal. This is needed to compare the output of the AIE block to the output of the FFT block from Simulink (which is a fixed size signal). Note this is only valid if the variable size signal is fully packed. Otherwise, the <em>To fixed size</em> block will insert zeros when samples are missing. To make sure this is not the case, you can check the status output of the <em>To fixed Size</em> block. </p>
31-
<p><img src="images/screenshot.PNG" alt="" /></p>
32-
<p>Image below depicts the output of DSPlib AI Engine FFT for a complex sinusoidal input:</p>
33-
<p><img src="images/dsplib_output.PNG" alt="" /></p>
31+
<p><img src="images/FFT_ExampleModel.png" alt="" /></p>
32+
<p>DSPlib AI Engine FFT and Simulink FFT comparison for a complex sinusoidal input:</p>
33+
<p><img src="images/FFT_Comparison.png" alt="" /><br />
34+
<img src="images/Error.png" alt="" /></p>
3435
<hr />
3536
<p>Copyright 2020 Xilinx</p>
3637
<p>Licensed under the Apache License, Version 2.0 (the "License");<br />
@@ -147,7 +148,7 @@ <h2 id="knowledge-nuggets">Knowledge nuggets</h2>
147148
border-left-width: 3px;
148149
padding: 0 1em;
149150
color: #828282;
150-
border-left: 4px solid #e8e8e8;
151+
border-left: 3px solid #e8e8e8;
151152
padding-left: 15px;
152153
font-size: 18px;
153154
letter-spacing: -1px;
@@ -226,9 +227,15 @@ <h2 id="knowledge-nuggets">Knowledge nuggets</h2>
226227
a:visited {
227228
color: #0366d6; }
228229

229-
h1, h2, h3 {
230+
h2, h3 {
230231
border-bottom: 1px solid #eaecef;
231232
color: #111;
232-
/* Darker */ }</style>
233+
/* Darker */ }
234+
235+
h1 {
236+
color: black;
237+
border-bottom: 1px solid #eaecef;
238+
}
239+
</style>
233240
</body>
234241
</html>

Examples/AIENGINE/DSPlib/fft/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
# Using DSPLib AI Engine FFT directly from the library browser
22

3-
This example demonestrates using the AI Engine FFT block in Model Composer and comparing the results to the Simulink FFT block.
3+
This example demonstrates using the AI Engine FFT block in Vitis Model Composer and comparing the results to the Simulink FFT block.
44

55
## Knowledge nuggets
66

77
:bulb: Note the usage of the [environment varibale](https://www.mathworks.com/help/matlab/ref/setenv.html) in MATLAB to more easily set the paths in the AIE Graph block mask.
88

99
:bulb: Note the usage of the *To Fixed Size* block to convert a variable size signal to a fixed size signal. This is needed to compare the output of the AIE block to the output of the FFT block from Simulink (which is a fixed size signal). Note this is only valid if the variable size signal is fully packed. Otherwise, the *To fixed size* block will insert zeros when samples are missing. To make sure this is not the case, you can check the status output of the *To fixed Size* block.
1010

11-
![](images/screenshot.PNG)
11+
![](images/FFT_ExampleModel.png)
1212

13-
Image below depicts the output of DSPlib AI Engine FFT for a complex sinusoidal input:
13+
DSPlib AI Engine FFT and Simulink FFT comparison for a complex sinusoidal input:
1414

15-
![](images/dsplib_output.PNG)
15+
![](images/FFT_Comparison.png)
16+
![](images/Error.png)
1617

1718
------------
1819
Copyright 2020 Xilinx
7.31 KB
Binary file not shown.
18.1 KB
Loading
Loading
Loading

Examples/AIENGINE/DSPlib/fir/README.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
<html>
43
<head>
54
<title></title>
@@ -12,9 +11,10 @@ <h1 id="using-dsplib-ai-engine-fir-directly-from-the-library-browser">Using DSPL
1211
function myFunction() {
1312

1413
var path = document.location.pathname;
15-
var directory = path.substring(path.indexOf('/'), path.lastIndexOf('/'));
14+
var directory1 = path.substring(path.indexOf('/'), path.lastIndexOf('/'));
15+
var directory = directory1.substring(directory1.lastIndexOf('/')+1);
1616

17-
commandURI="matlab:XmcExampleApi.openExample('fir');"
17+
commandURI="matlab:XmcExampleApi.openExample('" + directory + "');"
1818

1919
document.location=commandURI
2020
}
@@ -197,7 +197,7 @@ <h2 id="related-examples">Related Examples</h2>
197197
border-left-width: 3px;
198198
padding: 0 1em;
199199
color: #828282;
200-
border-left: 4px solid #e8e8e8;
200+
border-left: 3px solid #e8e8e8;
201201
padding-left: 15px;
202202
font-size: 18px;
203203
letter-spacing: -1px;
@@ -276,9 +276,15 @@ <h2 id="related-examples">Related Examples</h2>
276276
a:visited {
277277
color: #0366d6; }
278278

279-
h1, h2, h3 {
279+
h2, h3 {
280280
border-bottom: 1px solid #eaecef;
281281
color: #111;
282-
/* Darker */ }</style>
282+
/* Darker */ }
283+
284+
h1 {
285+
color: black;
286+
border-bottom: 1px solid #eaecef;
287+
}
288+
</style>
283289
</body>
284290
</html>

0 commit comments

Comments
 (0)