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: 4 How to TEST an Example Application
  • 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:22 PM Date Created
  • Views 1414 views
  • Likes 2 likes
  • Comments 1 comment
  • ultrazed-ev
  • ultrazed
  • xilinx
  • vitis platform
  • ultrazed-eg-iocc
  • ultrazed-eg-pciec
  • vitis
Related
Recommended

Learning Vitis: 4 How to TEST an Example Application

drozwood90
drozwood90
30 Apr 2020

Having previously gone through my previous blogs, you now have an output and want to test it!

Learning Vitis: 1 Setting up a Virtual Machine

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

Learning Vitis: 3 How to build an Example Application

 

For the UltraZed-EG IOCC, UltraZed-EG PCIeCC, and the UltraZed-EV, it is a rather straightforward process!

Using a compatible card reader, insert the card and associate it with your Virtual Machine

image

 

Copy the following files to the SDCARD root

binary_container_1.xclbin

BOOT.BIN

image.ub

README.txt (optional)

<executable>.exe

 

Note: recall from the previous blog, exclude the rootfs.tar.gz.  If you copy this over, the file will not be needed so it will be a waste of time.

image

In the case of this test, I am using the UltraZed-EG PCIeCC

image

 

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

 

For the purposes of this blog, I will not be talking about the details of setting up an Ultra96V2 SDCARD, but having two partitions, you will want to copy the following files to the BOOT partition and then extract the rootfs.tar.gz to the root partition:

image

image

image

After that is complete, make certain to run SYNC!

image

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

 

ENSURE you click the eject arrow and do NOT have a terminal with that folder open.  We need to ensure that Ubuntu has had time to SYNC the SDCARD.  Yes, you can FORCE this to run faster by actually running SYNC!

image

 

Place the card into your SDCARD slot on the UUT.

Ensure your device is set for SDCARD Boot (check user manual), then login

 

U/P: root/root

 

cd /run/media/mmcblk0p1 #(Ultra96)

cd /run/media/mmcblk1p1 #(UltraZed-EG/UltraZed-EV)

#--------------------------------------

export XILINX_XRT=/usr

 

./u96v2vadd.exe binary_container_1.xclbin #(Ultra96)

./uzegpcieccvadd.exe binary_container_1.xclbin #(UltraZed-EG PCIeCC)

./uzegioccvadd.exe binary_container_1.xclbin #(UltraZed-EG IOCC)

./uzevevccvadd.exe binary_container_1.xclbin #(UltraZed-EV)

 

The result will be something along the lines of this:

image

The great part is, the Avnet Vitis platforms are AI/ML enabled.  Previous tools (SDSoC) used SOFT Polling.  That is, once the application made a call into the hardware, the application would wait for the return - like any normal C-like call into a function.

As AI/ML requires so much MORE of the system, Vitis now supports the ability to perform a HARD interrupt.  That is the "polling(0)" message.  The great part about this, it is transparent to the end user!  Except you now get a small boost in performance for processing heavy accelerators such as resnet50.

 

For more information on this, my colleague Mario Bergeron did a great Hackster.IO project on using Vitis AI 1.0 with our platforms!

https://www.hackster.io/AlbertaBeef/vitis-ai-1-0-flow-for-avnet-vitis-platforms-2231f8

 

Buy Ultra96V2Buy Ultra96V2
Buy Ultra96V2 I-gradeBuy Ultra96V2 I-grade
Buy Ultra96v2 4A Power SupplyBuy Ultra96v2 4A Power Supply
Buy Ultra96V2 J-TAG PodBuy Ultra96V2 J-TAG Pod
Buy UltraZed-EG Starter KitBuy UltraZed-EG Starter Kit
Buy UltraZed-EV Starter KitBuy UltraZed-EV Starter Kit
  • Sign in to reply
  • 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 links, 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
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