element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
Project14
  • Challenges & Projects
  • More
Project14
Blog PYNQ Workshop 2
  • Blog
  • Forum
  • Documents
  • Theme Suggestions
  • Polls
  • Members
  • More
  • Cancel
  • New
Join Project14 to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: weiwei2
  • Date Created: 3 Aug 2020 3:11 AM Date Created
  • Views 890 views
  • Likes 0 likes
  • Comments 0 comments
  • pynqrunner
Related
Recommended

PYNQ Workshop 2

weiwei2
weiwei2
3 Aug 2020

By the time i got my board to test it is early July, so it is kind of late

for the session 2, my original aim is to use does overlay on IO to control on/off of water pump to shoot water

image

following the lab book 2 (which is also accessible from Github https://github.com/ATaylorCEngFIET/Element14_PYNQ ) , i encounter first error at 19, which is to run the build_ip.bat

in my folder, there isnn't such folder and file. puzzled, i look at the session 2 recording again, and turns out that i made a silly mistake, navigating the directory wrongly. So one thing nice about this series is

it is step by step with video recording. although i am super late into the real attempt on the board, i hope i can get pass the steps by referring to it again.

 

so, i build my first IP and it takes about 1.5 minutes

image

 

and i added it to the IP repository

image

At this stage, i know at least the proper way to add our own ip. With the added IP, we can then use it in our design

following the lab book, we added the Color Convert, Pixel Pack, VDMA, Test Pattern Generator, and select run automation

image

 

The runs automation connects the IP blocks automatically

image

as illustration, below is before and after running connection automation (step 25)

imageimage

for VDMA, we set to frame buffers 4 with address width 32. VDMA is provided to work in conjunction with the Video Frame Buffer Controller PIM within the Multiport Memory Controller for DMA access.

image

 

then we follow a sequence of connecting IP blocks. However, in step 32, i can't select auto assign address but it seems it has been automated for me anyhow

eventually, i connected few more IP blocks and validate the design. It has no error but does have a warning

image

we then create HDL wrapper and generate bitstream. i got this dialog and a subsequent settings block that is not in the lab book but i am able to move on nonetheless

image

 

Bitstream generation does takes some time (in fact in older xilinx tools up to half and hour), i let it run for

image

it takes 15 minutes on my laptop

image

following the lab book, copy the bitstream file into a new folder manually created

image

also copy these two

image

image

and create a python script

 

Now Let's look at the IO that we want to implement

for the PYNQ-Z2 board it has these peripherals

 

PYNQ-Z2
DeviceZynq Z7020
Memory512MB DDR3
StorageMicroSD
VideoHDMI In & Out
AudioADAU1761 codec with HP + Mic, Line in
Network10/100/1000 Ethernet
ExpansionUSB host (PS)
GPIO1x Arduino Header
2x Pmod*
1x RaspberryPi header*
Other I/O6x user LEDs
4x Pushbuttons
2x Dip switches
Dimensions3.44” x 5.51” (87mm x 140mm)
WebpageTUL PYNQ-Z2 webpage

 

*PYNQ-Z2 RaspberryPi header shares 8 pins with 1 Pmod

 

===> to be continued ....

 

Test

 

Resources

PYNQ-Z2 Workshop: Getting Up and Running with PYNQ (Win a $500 Gift Card for Your Embedded Vision Project!)

session 2

session 3

  • 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