Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
playground:vivado_github_demo_startup_rework [2017/05/05 16:15] – [2. Find the Location of the TCL Script] Arthur Brown | playground:vivado_github_demo_startup_rework [2021/06/09 00:32] – Arthur Brown | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Using Github | + | ====== Using Digilent |
===== Overview ===== | ===== Overview ===== | ||
- | Digilent provides | + | |
+ | Digilent provides projects through Github that are designed to demonstrate different | ||
At the end of this tutorial you will have your demo project running on your board. | At the end of this tutorial you will have your demo project running on your board. | ||
Line 10: | Line 12: | ||
=== Hardware === | === Hardware === | ||
- | | + | |
+ | | ||
* **USB Cables** | * **USB Cables** | ||
=== Software === | === Software === | ||
+ | |||
* **Xilinx Vivado 2016.X** | * **Xilinx Vivado 2016.X** | ||
* //Vivado 2016.4 is used in this tutorial// | * //Vivado 2016.4 is used in this tutorial// | ||
* **Digilent Board Support Files** | * **Digilent Board Support Files** | ||
- | * //Follow the **[[vivado: | + | * //Follow the **[[vivado: |
--> Projects Supported by this Tutorial# | --> Projects Supported by this Tutorial# | ||
- | ^ Platform ^ Project Name ^ Uses SDK ^ Wiki Link ^ Github | + | ^ Platform ^ Project Name ^ Uses SDK ^ Wiki Page ^ Github |
- | | Arty | Pmod VGA Demo | No | [[https:// | + | | Arty | Pmod VGA Demo | No | [[/ |
+ | | Zybo | DMA Audio Demo | Yes | [[/ | ||
<-- | <-- | ||
- | |||
- | |||
<WRAP round important 660px> | <WRAP round important 660px> | ||
===Important=== | ===Important=== | ||
- | For further requirements, | + | For further requirements, such as a serial terminal, external power supply, or other hardware, please review the project' |
</ | </ | ||
----- | ----- | ||
- | |||
=====Tutorial===== | =====Tutorial===== | ||
====1. Download the Project ZIP from the Digilent Github ==== | ====1. Download the Project ZIP from the Digilent Github ==== | ||
- | >1.1) From the demo repository landing page, select the **release** link. | + | |
+ | This step describes how to download a release from the Digilent Github, you can alternatively just download the project archive directly by clicking the link in the Projects Supported table above. The archive can be placed wherever you want, and will need to be extracted with **Right click -> Extract All**. | ||
+ | |||
+ | --> Download from Github# | ||
+ | |||
+ | >1.1) From the demo repository landing page, for which a link is provided in the Projects Supported table above, select the **release** link. | ||
> | > | ||
> | > | ||
- | > | + | > |
> | > | ||
- | >< | + | >< |
===Important=== | ===Important=== | ||
- | Make sure that you download the project-version.zip, not the source code archive. | + | Make sure that you download the project-2016.4-x.zip, not the source code archive. |
</ | </ | ||
> | > | ||
Line 54: | Line 61: | ||
>1.3) All of the necessary files are included within each project folder, with relative file paths established, | >1.3) All of the necessary files are included within each project folder, with relative file paths established, | ||
+ | |||
+ | <-- | ||
----- | ----- | ||
- | ====2. Find the Location of the TCL Script ==== | ||
- | Within the project folder there will be several subfolders named " | ||
- | Go into the proj folder, right click the “create_project” file and select “Properties”. | ||
- | Highlight and copy the file's location. | ||
- | ====3. Create | + | |
- | >3.1) Open Vivado | + | ====2. Open the Project ==== |
+ | |||
+ | Select the “SDK Hardware Handoff” option if your project supports Vivado SDK and you want to jump directly in, otherwise select the “Vivado” option. Review the Supported Projects table above to determine if the project is an SDK project. | ||
+ | |||
+ | --> SDK Hardware Handoff# | ||
+ | |||
+ | >2.1) Find and Launch | ||
> | > | ||
- | >FIXME //add image// | + | >{{: |
+ | |||
+ | >2.2) Click **Ok** to finish launching SDK. | ||
+ | |||
+ | <-- | ||
+ | |||
+ | --> Vivado# | ||
- | >3.2) cd into the proj directory of your extracted demo folder. | + | >2.1) Within the project folder there will be several subfolders named “hw_handoff”, |
> | > | ||
- | >FIXME //add image// | + | >{{: |
- | >3.3) Enter the command | + | >2.2) Open Vivado and find the Tcl Console on the bottom of the window. |
+ | > | ||
+ | >< | ||
+ | ===Important=== | ||
+ | Vivado will not recognize paths that include back slashes, be very careful to make sure that it is properly converted. | ||
+ | </WRAP> | ||
+ | > | ||
+ | > | ||
- | >3.4) The project will now be open in Vivado, you can navigate through | + | >2.3) Enter the command “source ./ |
+ | |||
+ | <-- | ||
----- | ----- | ||
- | ====4. Generate a Bitstream ==== | ||
- | >4.1) Click **Generate Bitstream** on the left hand menu towards the bottom. | + | |
+ | ====3. Generate Bitstream ==== | ||
+ | |||
+ | Skip this step if you previously selected the "SDK Hardware Handoff" | ||
+ | |||
+ | --> Generate Bitstream# | ||
+ | |||
+ | >3.1) Click **Generate Bitstream** on the left hand menu towards the bottom. | ||
+ | > | ||
+ | >< | ||
+ | ===Tip=== | ||
+ | If your computer has multiple CPU cores, you can increase the number of jobs to make this process faster. | ||
+ | </ | ||
+ | > | ||
+ | > | ||
+ | |||
+ | >3.2) When this process has finished, which may take a while, in the “Bitstream Generation Completed” dialog you will be presented with several options. You can **Open Implemented Design** to view how your design will be placed onto the FPGA. **View Reports** will show you a number of different diagnostics on your project, including how the resources of your board will be used. **Open Hardware Manager** is used to program | ||
+ | > | ||
+ | > | ||
+ | |||
+ | <-- | ||
----- | ----- | ||
- | /* if no sdk */ | + | ====4. Import SDK Projects ==== |
- | ====5. Program | + | Skip this step if your project doesn' |
- | >5.1) Open Hardware | + | --> SDK Hardware |
- | >5.2) Open New Target | + | >4.1) In SDK's main page, click the **Import Projects** button. |
+ | > | ||
+ | > | ||
- | >5.3) Local Server | + | >4.2) In the " |
+ | > | ||
+ | > | ||
- | >5.4) Finish | + | >4.3) In the " |
+ | > | ||
+ | > | ||
- | >5.5) Program Device | + | >4.4) Find and select the “sdk” subdirectory of your project and click **Ok**. |
+ | > | ||
+ | > | ||
- | ----- | + | >4.5) Back in " |
- | /* end if */ | + | <-- |
- | /* if sdk */ | + | --> Launch from Vivado# |
- | ====5. Launch Vivado SDK ==== | + | >4.1) If the " |
- | >Export Hardware - Include Bitsream | + | >4.2) In the top toolbar, select **File -> Export -> Export Hardware**. |
+ | > | ||
+ | > | ||
- | >Launch SDK | + | >4.3) Make sure that the " |
+ | > | ||
+ | > | ||
- | ----- | + | >4.4) In the top toolbar, select File -> Launch SDK, make sure that " |
+ | > | ||
+ | > | ||
- | ====6. Compile ==== | + | >4.5) In SDK, from the top toolbar, select **File -> Import**. |
+ | > | ||
+ | > | ||
- | >Import? | + | >4.6) In the " |
+ | > | ||
+ | > | ||
- | >Build All | + | >4.7) In the " |
+ | > | ||
+ | > | ||
+ | |||
+ | >4.8) Make sure that the application and application board support package (BSP) projects are checked, then click **Finish**. | ||
+ | > | ||
+ | > | ||
+ | > | ||
+ | >< | ||
+ | ===Tip=== | ||
+ | Many apparent errors at this stage can be solved by right-clicking the bsp project and selecting Re-generate BSP Sources. | ||
+ | </ | ||
+ | |||
+ | <-- | ||
----- | ----- | ||
+ | |||
+ | ====5. Run the Project ==== | ||
- | ====7. Program | + | If you have opened your project in SDK in previous steps, select |
- | >Make sure that your board is turned on and connected to the host PC via both the JTAG USB port and the UART USB port. | + | --> SDK# |
- | >On the top toolbar, click the Program FPGA button. | + | >5.1) Ensure your board is turned on and connected to your computer with a USB cable. |
- | >Click Program | + | >5.2) Revisit the project' |
- | ----- | + | >5.3) Select **Program FPGA** from the Xilinx Tools dropdown in the toolbar. Then click **Program**. |
+ | > | ||
+ | > | ||
- | ====7. Program | + | >5.4) Right click on the application project - the one that doesn' |
+ | > | ||
+ | > | ||
- | >Select your Pmods project and click the Run As… button. Select Launch | + | >5.5) The project |
- | ----- | + | <-- |
- | /* end if */ | + | --> Vivado# |
+ | >5.1) Ensure your board is turned on and connected to your computer with a USB cable. | ||
+ | >5.2) Revisit the project' | ||
+ | >5.3) In the Generate Bitstream Complete dialog, select "Open Hardware Manager", | ||
+ | > | ||
+ | > | ||
- | --> Test# | + | >5.4) Select **Open Target** from the green bar at the top. In the drop down menu that this creates, select **Open New Target**. |
+ | > | ||
+ | > | ||
- | <WRAP round important 660px> | + | >5.5) Make sure that **Local server** is selected in the " |
+ | > | ||
+ | > | ||
+ | |||
+ | >5.6) Make sure that your board shows up in the " | ||
+ | > | ||
+ | > | ||
+ | |||
+ | >5.7) Select **Program Device** from the green bar, then select your device from the dropdown list (there will usually only be one device listed). | ||
+ | > | ||
+ | ><WRAP round important 660px> | ||
===Important=== | ===Important=== | ||
- | Important thing here. | + | If nothing shows up in the " |
</ | </ | ||
+ | > | ||
+ | > | ||
- | <WRAP round tip 650px> | + | >5.8) The project will now be programmed and running on your board and you can return to the project' |
- | ===Tip=== | + | |
- | Use a tip box for tips. | + | |
- | </ | + | |
<-- | <-- | ||
+ | |||
+ | ----- | ||