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
      •  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-Z2 Getting Up and Running
  • 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: ralphjy
  • Date Created: 20 May 2020 3:06 AM Date Created
  • Views 925 views
  • Likes 4 likes
  • Comments 1 comment
  • pynq-z2
  • pynq workshop
  • pynqrunner
Related
Recommended

PYNQ-Z2 Getting Up and Running

ralphjy
ralphjy
20 May 2020

Another great workshop with Adam Taylor today.  Adam went through creating a new Pynq overlay in Vivado.  The workshop created an overlay with a VDMA element to interface the TPG (test pattern generator) with the Processing system.

 

The version of the TPG IP used with the 2019.1 tools is v8.0:  https://www.xilinx.com/support/documentation/ip_documentation/v_tpg/v8_0/pg103-v-tpg.pdf

 

It can generate a number of interesting video patterns:

image

 

After the overlay was created it was transferred to the PYNQ-Z2 board and loaded and run via a Jupyter notebook.

 

In the notebook there is a section to configure the VDMA element;

image

 

and to configure the TPG:

image

 

and to display it in the notebook:

image

 

This is the color sweep pattern (0xD) @ 1280x720:

image

 

The pattern is reconfigurable using the BACKGROUND_PATTERN_ID (0x0020) Register of the TPG.  The pattern size is configurable by programming the VideoMode in the VDMA and the ACTIVE_HEIGHT (0x0010) and ACTIVE_WIDTH (0x0018) Registers in the TPG.

 

 

Before you can reconfigure the pattern you need to stop the VDMA and TPG.

image

 

This is the color bars pattern (0x9) @ 640x480:

image

 

The homework assignment is to tweak the overlay, so I'll have to give it some thought.

 

Very fun workshops.  I'm enjoying them.  Thanks Adam image.

  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 5 years ago +2
    I'm a big fan of Jupyter notebooks after discovering them earlier in the year. They are pluggable with different kernels (the engine that runs code), I was looking at the C# and Powershell engines. I think…
  • Workshopshed
    Workshopshed over 5 years ago

    I'm a big fan of Jupyter notebooks after discovering them earlier in the year. They are pluggable with different kernels (the engine that runs code), I was looking at the C# and Powershell engines.

    I think they are a great way to guide a person through some code or a process and I'm thinking of introducing them into things like system monitoring or deployment.

    • 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