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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Summer of FPGA
  • Challenges & Projects
  • Design Challenges
  • Summer of FPGA
  • More
  • Cancel
Summer of FPGA
Blog Security Hardware Accelerator #4 Use Vitis and Make the CMOD-S7 work
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: fyaocn
  • Date Created: 8 Dec 2021 12:54 AM Date Created
  • Views 908 views
  • Likes 6 likes
  • Comments 0 comments
Related
Recommended

Security Hardware Accelerator #4 Use Vitis and Make the CMOD-S7 work

fyaocn
fyaocn
8 Dec 2021

1 Prepare Xilinx Shell Architecture (XSA) file for Vitis

After successfully create the first Block Diagram , it is time to perpare the Xilinx Shell Architecture (XSA) file for Vitis

1.1 Click the Validate Design buttonin the Diagram pane's toolbar (or press the F6 key) to check the integraty of the design, there is one mistake in the design.

image

Fortunately, it is minor one and can be solved automately. The address of GPIO is not set proper in last step. Just press OK.

image

1.2 One HDL wrapper must be created for the block design. This process translates the block design into a source file that can be read by the Vivado tools, and is used to build the actual design.

Open the Sources pane and locate the block design file (.bd) under the Design Sources dropdown. Right click on it and select Create HDL Wrapper.

image

Select auto-update, there is not much to do for most programmers. It takes some time to finish, I let the computer run and did not record the time to complete.

image

1.3 Build a Vivado Project

At this point, the Vivado Project is ready to be built, by running it through Synthesis and Implementation, and finally generating a bitstream. It can be done manually in Flow Navigator, it is easy to Click the Generate Bitstream button in the Program and Debug section directly .

image

A dialog will pop up with several options for how Synthesis and Implementation should be run. Most should be left as defaults. Just press  OK one by one.

image

image

image

When complete, a dialog will pop up that presents several options for what to do next.

Here shows the manul update steps,

image

image

but there are errors in implementation

image

Revise the design and update the implementation until it passed.

1.4 Then Export a Fixed Post-Synthesis Hardware Platform

Click Export → Export Hardware in the File menu to export the hardware design.

Choose a name for the Xilinx Shell Architecture (XSA) file, export the xsa file

1.5 Redo again after correct errors

Create HDL Wrapper, it takes a lot time, I put it run overnight. The run

image

Run synthesis,

image

Run implementation after synthesis completed.

image

got implementation designs,

image

imageimage

image

Then Generate Bitstream,

imageimage

Generate fixed hardware platform in xsa file

imageimageimageimage

2 Launch Vitis and coding

2.1 Launch Vitis

image

Create new platform project

image

image

use xsa export in vivada project

imageimageimage

after import platform , create one new project based on one template

imageimage

 

image

here is sample hello program in C++ with printf for uart output. build the project

image

Download and run the program, the hello world is print out in UART console,

image

Now revise the code with GPIO set in vivado, put led01 on,

image

bingo, it works,

image

3 Now the full development chain is shown clearly. The FPGA provides super flexible in coding whatever in hardware or software part.

Do any modification as one is willing to. 

  • Sign in to reply
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