Skip to content

Commit 34e52ce

Browse files
author
Erin Truax
committed
Updated UG1236 for 2018.3
1 parent f9f71e8 commit 34e52ce

Some content is hidden

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

73 files changed

+2248
-1174
lines changed

platform-creation-tutorial/1stsvg.svg

+298
Loading

platform-creation-tutorial/Lab1-Creating-DSA-for-Zynq-7000-SoC-Processor-Design.md

-574
This file was deleted.

platform-creation-tutorial/Lab1-Creating-DSA-for-Zynq-MPSoC-Processor-Design.md

+635
Large diffs are not rendered by default.

platform-creation-tutorial/Lab2-Creating-Software-Components.md

+84-251
Large diffs are not rendered by default.

platform-creation-tutorial/Lab3-Creating-Custom-Platform-Using-the-SDx-IDE.md

+31-195
Original file line numberDiff line numberDiff line change
@@ -9,227 +9,62 @@
99
</tr>
1010
<tr>
1111
<td width="17%" align="center"><a href="README.md">Introduction</a></td>
12-
<td width="16%" align="center"><a href="Lab1-Creating-DSA-for-Zynq-7000-SoC-Processor-Design.md">Lab1: Creating the DSA for a Zynq-7000 SoC Processor Design</a></td>
13-
<td width="17%" align="center"><a href="Lab2-Creating-Software-Components.md">Lab 2: Creating Software Components for the Platform</a></td>
14-
<td width="17%" align="center">Lab 3: Creating a Custom Platform Using the SDx IDE</td>
12+
<td width="16%" align="center"><a href="Lab1-Creating-DSA-for-Zynq-MPSoC-Processor-Design.md">Lab1: Creating the DSA for a Zynq UltraScale+ MPSoC Processor Design</a></td>
13+
<td width="17%" align="center"><a href="Lab2-Creating-Software-Components.md">Lab 2: Creating the SDSoC Platform</a></td>
14+
<td width="17%" align="center">Lab 3:Using Your Custom Platform</td>
1515
</tr>
1616
</table>
1717
</div>
1818

1919

20-
## Lab 3: Creating a Custom Platform Using the SDx&trade; IDE
20+
## Lab 3: Using Your Custom Platform
2121

22-
<details><summary><big><strong>Step 1: Invoking the SDx IDE and Creating a Platform Project</strong></big></summary>
22+
1. On the SDx IDE menu, select **File \> New \> SDx Application Project** to begin creating a new Application project.
2323

24-
#### On a Linux host machine:
25-
26-
At the shell prompt, type the following commands:
27-
28-
1. `source <Xilinx_Install_Directory>/SDx/<Version>/settings64.{sh,csh}`
29-
2. `sdx`
30-
31-
The first command sets the environment variables before launching the SDx IDE and the second command launches the SDx IDE.
32-
33-
#### On a Windows host machine:
34-
35-
For a Windows host machine, use one of the following methods to launch Vivado&reg;
36-
37-
- Click the Vivado desktop icon.
38-
39-
- From the Start menu, select Xilinx Design Tools \> Vivado 2018.2 \> Vivado 2018.2.
40-
41-
- From a Command prompt window, type the following commands:
42-
43-
1. `<Xilinx_Install_Directory>/SDx/<Version>/settings64.bat`
44-
2. `sdx`
45-
46-
The first command sets the environment variables prior to launching the SDx IDE and the second command launches the SDx IDE.
47-
48-
SDx IDE prompts you to set a directory location for an SDx workspace. The SDx workspace contains the platform and application projects developed by you.
49-
50-
1. For this lab enter `/tmp/sdx_workspace` for the Workspace as shown in the following figure.
51-
52-
![](./images/image46.png)
53-
54-
>:pushpin: **NOTE:**
55-
>We are re-using the same SDx workspace as in Lab 2.
56-
57-
1. Click **OK**.
58-
59-
1. In the SDx IDE Welcome screen, select **Create SDx Project**.
60-
61-
As an alternative, the SDx IDE menu selection **File \> New \> SDx Project** can be used.
62-
63-
1. Select **Platform** on the Project Type dialog.
64-
65-
![](./images/image70.png)
66-
67-
You will create an SDSoC&trade; platform and populate it with the hardware and software components created in the earlier labs.
68-
69-
1. Click **Next**.
70-
71-
1. On the Platform Specification dialog.
72-
73-
1. Click **Browse** to select **/tmp/sdx\_workspace/zynq7\_board.dsa** for the Hardware specification file.
74-
75-
1. Leave the default to select Import software platform components.
76-
77-
1. Click **Finish**.
78-
79-
![](./images/image71.png)
80-
</details>
81-
82-
<details><summary><big><strong>Step 2: Defining System Configuration</strong></big></summary>
83-
84-
The zynq7\_board project is created and can be accessed through the Project Explorer or Assistant windows. The Editor Area window shows the four steps that we will use to generate the zynq7\_board platform.
85-
86-
![](./images/image72.png)
87-
88-
1. Click **(1) Define System Configuration**.
89-
90-
1. Enter **standalone** in the Name text box.
91-
92-
2. Display Name will be auto-filled with same name.
93-
94-
3. Enter **standalone configuration for the zynq7\_board** in the Description text box.
95-
96-
4. For Boot Directory, click **Browse** to navigate to the **/tmp/sdx_workspace/boot** folder.
97-
98-
5. For Bif File, click **Browse** to navigate to the **/tmp/sdx_workspace/boot/platform.bif** file path.
99-
100-
![](./images/image73.png)
101-
102-
6. Click **OK**.
103-
104-
![](./images/image74.png)
105-
106-
</details>
107-
<details>
108-
<summary><big><strong>Step 3: Adding Processor Domain</strong></big></summary>
109-
110-
1. Click **(2) Add Processor Group/Domain**.
111-
112-
1. Enter **a9_standalone** in the Name text box.
113-
114-
2. Display Name will be auto-filled with same name.
115-
116-
3. Select **standalone** from the OS dropdown list.
117-
118-
4. Select **ps7_cortexa9_0** from the Processor dropdown list.
119-
120-
5. Select **C/C++** from the Supported Runtimes dropdown list.
121-
122-
6. For Linker Script, click **Browse** to navigate to the **/tmp/sdx_workspace/boot/lscript.ld** file path.
123-
124-
![](./images/image75.png)
125-
126-
7. Click **OK**.
127-
128-
![](./images/image76.png)
129-
</details>
130-
<details>
131-
<summary><big><strong>Step 4: Generating Platform</strong></big></summary>
132-
133-
1. Click **(3) Generate Platform**.
134-
The following message is displayed.
135-
![](./images/image77.png)
136-
137-
2. Click **OK**.
138-
![](./images/image78.png)
139-
</details>
140-
141-
<details>
142-
<summary><big><strong>Step 5: Adding Custom Platform to Repository</strong></big></summary>
143-
144-
145-
1. Click **(4) Add to Custom Repositories**.
146-
147-
This will add the newly created platform to the list of platform choices we can use to build SDSoC applications.
148-
149-
![](./images/image79.png)
150-
151-
2. Project Explorer and Assistant windows show the new zynq7_board platform.
152-
153-
![](./images/image80.png)
154-
155-
</details>
156-
<details>
157-
<summary><big><strong>Step 6: Creating an SDx Application Targeting the Custom Platform</strong></big></summary>
158-
159-
1. On the SDx IDE menu, select **File \> New \> SDx Project** to begin creating a new Application project.
160-
161-
1. Select **Application** on the Project Type dialog.
162-
163-
You will now create an SDx application for the custom SDSoC platform we generated.
164-
165-
![](./images/image81.png)
166-
167-
1. Click **Next**.
168-
169-
1. In the Create a New SDx Project dialog, type **sdx\_app1** as the Project name.
24+
1. In the Create a New SDx Application Project dialog, type **sdx\_app1** as the Project name.
17025

17126
1. Click **Next**.
17227

17328
![](./images/image82.png)
17429

175-
1. In the Platform dialog, select **Platform**.
30+
1. In the Platform dialog, select **Add Custom Platform** command (the '+' icon).
31+
32+
This opens the Specify Custom Platform Location dialog box, letting you navigate to the platform folder. If you were following the instructions in this tutorial, you will find the platform at /tmp/sdx_workspace/zcu102_board/export/zcu102_board.
17633

177-
1. Click the **zynq7_board [custom]** platform name.
34+
![](./images/image79.png)
17835

179-
![](./images/image83.png)
36+
1. After adding the **zcu102_board** platform, select it in the Platform dialog box, and click **Next**.
18037

181-
1. Accept the default settings in the System configuration dialog box.
38+
1. Accept the default settings in the System Configuration dialog box:
18239

183-
- System configuration: **standalone**
40+
- System configuration: **sysconfig1**
18441
- Runtime: **C/C++**
185-
- Domain: **a9_standalone**
186-
- CPU: ps7_cortexa9_0
42+
- Domain: **standalone on psu_cortexa53**
43+
- CPU: psu_cortexa53_0
18744
- OS: standalone
188-
- Output type: **Executable (elf)**
189-
- Check **Allow hardware acceleration**
19045

46+
![](./images/image80.png)
47+
To generate a Linux application, the LinuxConfig system can be selected.
19148
1. Click **Next**.
19249

193-
![](./images/image84.png)
194-
195-
1. On the Templates dialog, click the **SDx Examples** button to update available templates.
50+
1. On the Templates dialog, select **Array Partitioning** and click **Finish**.
19651

19752
![](./images/image85.png)
19853

199-
1. On the SDx Examples dialog, you can browse the available examples. Downloaded templates will be available as templates while creating a new project.
200-
201-
![](./images/image86.png)
202-
203-
1. Click **Download** to download the **SDSoC Examples** from a repository.
204-
205-
![](./images/image87.png)
206-
207-
1. Click **OK**.
208-
209-
![](./images/image88.png)
210-
211-
1. Select **Array Partitioning** and Click **Finish**.
212-
213-
![](./images/image89.png)
54+
**Note:** To get or update the example applications, you can click click the **SDx Examples** button. Refer to the *SDSoC Develpment Environment User Guide* (UG1027) for more information.
21455

21556
The newly created SDSoC application `sdx_app1` is shown in the Project Explorer view and the Assistant view.
21657

21758
>:pushpin: **NOTE:**
21859
>The Assistant view shows a hardware accelerated function named `matmul_partition_accel` which is part of the Array Partitioning example.
21960
220-
![](./images/image90.png)
221-
222-
1. The Editor view show settings for `sdx_app1` in the Application Project Settings window.
61+
1. The Editor view shows settings for `sdx_app1` in the Application Project Settings window.
22362

22463
![](./images/image91.png)
22564

226-
1. In the Assistant view, expand **sdx_app1 [SDSoC]**.
227-
228-
1. Right-click **Debug [Hardware]** and select **Build**.
65+
1. In the Assistant view, expand **sdx_app1 [SDSoC]**, and right-click **Debug [Hardware]** and select **Build**.
22966

230-
![](./images/image92.png)
231-
232-
1. Assistant view provides build results through links to the following:
67+
1. The Assistant view provides build results through links to the following:
23368

23469
- Compilation log
23570

@@ -239,23 +74,24 @@ The zynq7\_board project is created and can be accessed through the Project Expl
23974

24075
![](./images/image93.png)
24176

242-
1. You can also scroll through the Console window to view the individual build steps which are captured in the **sds.log**.
77+
1. You can also scroll through the Console window to view the transcript of the build process which is captured in the **sds.log**.
24378

24479
![](./images/image94.png)
24580

24681
1. In the Assistant view, right-click **SD Card Image** and select **Open > Open in File Browser** to open a view to the SD Card contents on the disk. The `sd_card` directory is located in the SDx workspace at `/tmp/sdx_workspace/sdx_app1/Debug/sd_card`.
24782

248-
1. Copy SD card directory contents to the root directory of a FAT32 formatted SD card and boot a ZC702 board using this SD card to run and view the sdx\_app1 UART output on a terminal program.
249-
250-
1. You can use the same board setup and boot procedure as in the hello\_world example in Lab 2.
83+
![](./images/image95.png)
25184

252-
![](./images/image97.png)
253-
</details>
85+
You can copy the SD card directory contents to the root directory of a FAT32 formatted SD card and boot a ZCU102 platform using this SD card to run and view the sdx\_app1 UART output on a terminal program.
25486

25587
### Conclusion
25688

257-
In completing Lab 3, you have successfully created a custom SDSoC platform that targets the ZC702 board with a standalone software runtime environment. You have also built the SDSoC array partitioning example on top of the custom SDSoC platform (zynq7\_board). A ZC702 board was used to validate the array partitioning hardware accelerator by booting the board from an SD card and observing the application output messages.
89+
In completing Lab 3, you have successfully created a custom SDSoC platform that targets the Zynq UltraScale+ MPSoC with a standalone software runtime environment. You have also built the SDSoC array partitioning example on top of the custom SDSoC platform (zcu102_board).
25890

91+
### End Tutorial
25992

93+
## Related information
94+
- <a href="Lab1-Creating-DSA-for-Zynq-MPSoC-Processor-Design.md">Lab1: Creating the DSA for a Zynq UltraScale+ MPSoC Processor Design</a>
95+
- <a href="Lab2-Creating-Software-Components.md">Lab 2: Creating the SDSoC Platform</a>
26096
<hr/>
261-
<p align="center"><sup>Copyright&copy; 2018 Xilinx</sup></p>
97+
<p align="center"><sup>Copyright&copy; 2019 Xilinx</sup></p>

0 commit comments

Comments
 (0)