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
  • 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
      •  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
Digilent, a National Instruments Company
  • Products
  • Manufacturers
  • Digilent, a National Instruments Company
  • More
  • Cancel
Digilent, a National Instruments Company
Blog Digilent Arty S7 FPGA board-- Interfacing PmodNAV sensor.
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Digilent, a National Instruments Company to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: embeddedguy
  • Date Created: 18 Nov 2020 10:24 AM Date Created
  • Views 8524 views
  • Likes 5 likes
  • Comments 5 comments
  • arty-s7
  • embedd system design
  • fpga_projects
  • fpga
  • digillent
Related
Recommended

Digilent Arty S7 FPGA board-- Interfacing PmodNAV sensor.

embeddedguy
embeddedguy
18 Nov 2020

First, I would like to thank element14 for providing me one of the ten boards for the Arty-s7 series webinar. I was glad to be a part of the webinar and attended all three. I was also learning FPGA because of their several advantages and flexibility they provide. When I started, I just had thought that FPGA's can emulate the Microcontrollers. It can just become a microcontroller with users loading .bitstream file onto them, which contains the entire complied design of a Microcontroller. It also has many advantages and features to offer. I would like to list some of the advantages of FPGA's.

 

The webinars for Arty-s7 had three parts:

  • Installing the Vivado design suite and Xilinx tools
  • Running the hello world application on the Arty-s7 board
  • Interfacing P-mod(peripheral module) IP sensor to one of the P-mod connector

 

The Arty-s7 comes with Spartan-7 FPGA from Xilinx. The spartan FPGA from Xilinx provides many latest features and supports Vivado 2017.3 and newer. It has Arduino connectors and also P-mod connectors for a more streamlined design experience. Arty-s7 is designed to be Microblaze ready and comes with ready to use free Xilinx webpack licensing with the Vivado design suite.

 

imageimage

 

The Installation of the Vivado is not that trivial. You can also choose between Windows or Linux platforms.

There could be a larger download depending on the packages you select.

 

The first webinar was about the installation of Vivado. The second part was about running the basic Hello_world program.

In this blog, I will first explain how I have run the last project, which was about interfacing and accessing sensor values from the P_mod_NAV sensor.

 

For Lab3 the first step was to start the Vivado IDE and make a design with Microblaze.

The Lab2 has already explained in detail the design with Microblaz and run the hello_world application.

So when you open the Vivado your Block diagram should look something like the following screenshot.

image

The next step is to install the IP's(Intelectual Property) from the repository.

These IP's will have block and design files, as well as documentation for each of the IP's, downloaded in a .zip file.

 

https://github.com/Digilent/vivado- library/archive/v2020.1.zip

 

 

image

Next, go to the Project->Settings->IP->Repository and click on the + icon and navigate to the downloaded repository containing IPs.

This will add about 66 IP's and 4 Interfaces.

imageimage

 

Now, it is time to edit the block design and add the P-Mod_NAV block into the existing Microblaze design and make the necessary connections.

First, add the block by clicking on the + icon and searching for the pmodNAV. Then run the connection automation which will automatically connect the Pmod_NAV to the Microblaze design.

Then connect all the interrupts as shown in the lab_3 pdf(step15).

 

imageimageimageimage

The final block design should look like the following.

 

image

 

The next step will be to validate the block design and generate the bitstream. Once the bitstream has been generated, a window will open with few options. Click on cancel.

imageimage

Next, go to the File->Export Hardware, then click yes to overwrite the module file.

 

imageimage

Next, Launch Vitis IDE from the tools->Launch Vitis IDE menu.

Create a new application named lab3. Click next

Then go the create a new platform from hardware and select the newly created .xsa file.

Create an empty application and click finish.

 

imageimage

 

image

 

Now, the Lab3 download from the webinar link already contains the main file to be used to run the example code. Copy that file to the newly created Vitis application.

In the /src folder you should be able to see the main.c file.

Next, open the file in Vitis IDE.

Next, open the terminal to view the output.

Then connect the Pmod_NAV in the JA connector.

select P-modnav_ststem from Vitis IDE and click on Build.

select from the Xilinx-> Program FPGA.

imageimage

imageimage

 

Then Run->Run As-> Launch Hardware to view the sensor values.

Enjoy!!

imageimage

  • Sign in to reply

Top Comments

  • Andrew J
    Andrew J over 4 years ago +2
    Nice and detailed. What's your general thoughts on this?
  • embeddedguy
    embeddedguy over 4 years ago in reply to Andrew J +2
    Thanks, @Andrew Johnson This was a nice experience to work with. Digilant provides good documentation for their product. While working on this small project it could have been a good idea if one knows…
  • Andrew J
    Andrew J over 4 years ago in reply to embeddedguy +1
    It’s something I have on my to-do list but not for now - I just maintain an interest in what others are doing with these things. Why Windows and not Linux?
  • Andrew J
    Andrew J over 4 years ago in reply to embeddedguy

    Good to know, thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • embeddedguy
    embeddedguy over 4 years ago in reply to Andrew J

    With windows, it will run without errors but with Linux, I had seen many errors. Other people also got errors on Ubuntu!!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Andrew J
    Andrew J over 4 years ago in reply to embeddedguy

    It’s something I have on my to-do list but not for now - I just maintain an interest in what others are doing with these things.  Why Windows and not Linux?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • embeddedguy
    embeddedguy over 4 years ago in reply to Andrew J

    Thanks, @Andrew Johnson

     

    This was a nice experience to work with. Digilant provides good documentation for their product.

    While working on this small project it could have been a good idea if one knows in detail which step is doing what in Vivado design.

    Unlike MCUs this was about first creating a Microblaze design and then running an application on that, this was astounding.

    If you are also doing this workshop try using Win instead of Linux.!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Andrew J
    Andrew J over 4 years ago

    Nice and detailed.  What's your general thoughts on this?

    • Cancel
    • Vote Up +2 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