element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
FPGA
  • Technologies
  • More
FPGA
Blog Learning Vitis: 2 How to Download and "install" a pre-built platform
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join FPGA to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: drozwood90
  • Date Created: 30 Apr 2020 3:17 PM Date Created
  • Views 2204 views
  • Likes 3 likes
  • Comments 2 comments
  • ultrazed-ev
  • ultrazed
  • xilinx
  • vitis platform
  • ultrazed-eg-iocc
  • ultrazed-eg-pciec
  • vitis
Related
Recommended

Learning Vitis: 2 How to Download and "install" a pre-built platform

drozwood90
drozwood90
30 Apr 2020

If you have not setup Vitis, you should first go back and visit my last blog where I talk about setting up the build environment.

Learning Vitis: 1 Setting up a Virtual Machine

 

Once you are caught up, if you have used SDSoC, or SDACCEL, you can skip this paragraph.  If not, let me help bring you up to speed.

Vitis, like previous generations of Software Acceleration techniques leverages HLS to allow you the user to write more simple C like code to create software accelerators.

The basic idea is that you create a piece of C code (or other supported language), then tag the code for acceleration and Vitis will take that code, and based on your defined performance needs create a solution space that utilizes the resources of your target platform to meet those needs.  What is a platform?  That is a definition of your target hardware.  You can generate your own or you can use one of the provided platforms that Avnet maintains.  The idea is, you create / validate / vet a single solution, then with a few clicks, can deploy this solution to many platforms.  The nice part is you do not have to worry about resources.  Maybe one solution uses UltraRam, but another cannot so the tool leverages BRAMS.

image

Regardless, you can take the same solution and target many different products through only a few mouse clicks.

 

So, how do we use this with Vitis?

Vitis has a few methods to do this.  One is through the command line and one is through the GUI.

 

-----------------

 

The first step is to have a place to keep all of our platforms.  I suggest creating a folder ~/platforms or leveraging the platform_repo folder created when running the Avnet Vitis make scripting

 

You can also

    • download the platforms and extract them to a folder (if you get them from someone else)
    • copy from your /vitis/platform_repo BUILD folder (if you use the Avnet build scripting)
    • even just USE the output folder from your platform generation!

 

The way the Avnet build scripts work, all platforms default to /vitis/platform_repo for easy use by customers as well as leveraging that repository for your own builds!

 

You can locate the "Vitis PetaLinux Platform" on the Product support pages under the Reference Designs Tab

image

Ultra96v2

UltraZed-EG PCIeCC

UltraZed-EG IOCC

UltraZed-EV EVCC

 

I have also compiled a list of all supported platforms / BSP and other downloads for the Designed By Avnet products on this blog:

2019.2 Designed by Avnet Support

 

Here I have extracted the UltraZed-EG IOCC platform into my platforms repository.

image

 

-----------------

 

The first way to work with the platforms, is using the GUI:

Create a new Application Project...

image

 

Fill in the Project name

image

Click Next, THEN click the +

image

Navigate to your folder where you extracted the platform folder and now all platforms that you have on your system will show up!

image

-----------------

 

The next method is using the command line.

 

Having followed the Virtual Machine  setup guide, you should have 3 setup / settings commands that you run prior to launching Vitis.

source /tools/petalinux-v2019.2-final/settings.sh
source /tools/Xilinx/Vitis/2019.2/settings64.sh
source /opt/xilinx/xrt/setup.sh

Those 3 commands work really well to get you a basic setup.  However, in your build environment, if you are using a shared drive full of platforms to choose from, you might not want to click through the GUI over and over.  A quick and easy way to DEFAULT Vitis to a specific folder is to use the PLATFORM_REPO_PATHS environment variable.

 

For example, setting this variable like this:

export PLATFORM_REPO_PATHS=/home/training/platforms

will actually default the GUI to always include platforms that are located in that folder!  This would be the same as CLICKING all of the above steps in the GUI each time, except the tool does this each time it is loaded.  As this is Linux, you could point this to any number of servers/shares/cloud drives, etc...as long as it is mapped to a folder and you have permissions to point to it.  NOTE, for performance reasons, I suggest that this is a local folder or at the very least a HIGH speed link.  In my testing, OVERALL my largest build machines end up taking  the most time on IO access so anything to reduce this helps!

 

Look forward to my next Learning Vitis blog! We will talk about how to build an example application!

 

Buy Ultra96V2
Buy Ultra96V2 I-grade
Buy Ultra96v2 4A Power Supply
Buy Ultra96V2 J-TAG Pod
Buy UltraZed-EG Starter Kit
Buy UltraZed-EV Starter Kit
  • Sign in to reply

Top Comments

  • albertabeef
    albertabeef over 5 years ago +1
    Great write-up Dan ! I did not know about the PLATFORM_REPO_PATHS environment variable, thanks for the info ! Regards, Mario.
  • drozwood90
    drozwood90 over 4 years ago

    Hi all,

    I wanted to make it easier to find the various Vitis articles.  And while you can certainly just search, or use the above link, here is a nice easy list for you!

    Learning Vitis: 1 Setting up a Virtual Machine

    Learning Vitis: Build Environment Quickie 1 - See forever!

    Learning Vitis: 2 How to Download and "install" a pre-built platform

    Learning Vitis: Build Environment Quickie 2 - Wide Terminal?!

    Learning Vitis: 3 How to build an Example Application

    Learning Vitis: Build Environment Quickie 3 - A Tidy Shop is a Productive Shop

    Learning Vitis: 4 How to TEST an Example Application

    Learning Vitis: Build Environment Quickie 5 - Monitor the World?

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • albertabeef
    albertabeef over 5 years ago

    Great write-up Dan !

    I did not know about the PLATFORM_REPO_PATHS environment variable, thanks for the info !

    Regards,

    Mario.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube