element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
FPGA
  • Technologies
  • More
FPGA
Blog Add Pynq-Z2 board to Vivado
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
FPGA requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
Author: Jan Cumps
Date Created: 31 May 2021 7:47 PM
Views: 4538
Likes: 12
Comments: 40
  • zynq
  • xilinx
  • jupyter
  • fpga
  • vivado
  • pynq
Related
Recommended

Add Pynq-Z2 board to Vivado

Jan Cumps
Jan Cumps
31 May 2021

Instructions on how to add the Pynq-Z2Pynq-Z2 board to Vivado.

This allows you to create projects and custom FPGA bit streams for it.

 

image source: customer action video after completing the instruction video of Cathal McCabe listed at the end of this post.

 

In the Vivado project creation wizard, there is a possibility to prime your design from a board definition.

You don't need to find out what the exact FPGA is, and what hardware is available.

There are more project preparation tools. Constraint files and TCL files that fully define the board with all possibilities enabled.

This post focuses on the board definition.

 

Get the board file

 

The files listed on pync.io are not available. I found them here.

 

Install and register the board in Vivado

 

Then there are two options.

  • (deprecated) Directly put the files in the Vivado boards folder: <Xilinx installation directory>\Vivado\<version>\data\boards\board_files.
  • Or (preferred)  put them at a location you decide, and add a line to the Vivado init file, %APPDATA%/Xilinx/Vivado/init.tcl (create it if it does not exist)
    set_param board.repoPaths [list "D:/Xilinx/pynq-z2/A.0"]

I used the 2nd option. You have to restart the editor.

 

The result is that you can now create projects that have the right FPGA info for the Pynq-Z2:

 

My goal for this week is to replicate this exercise from Cathal McCabe from the Pynq community:

You don't have permission to edit metadata of this video.
Edit media
x
Upload Preview

 

I attached the project to this post, and the jupyter notebook.

I changed some things:

32 bit GPIO instead of 64

A reset input for the Johnson Counter module

Translated the Verilog Counter code to VHDL.

 

 

Pynq - Zync - Vivado series
Add Pynq-Z2 board to Vivado
Learning Xilinx Zynq: port a Spartan 6 PWM example to Pynq
Learning Xilinx Zynq: use AXI with a VHDL example in Pynq
VHDL PWM generator with dead time: the design
Learning Xilinx Zynq: use AXI and MMIO with a VHDL example in Pynq
Learning Xilinx Zynq: port Rotary Decoder from Spartan 6 to Vivado and PYNQ
Learning Xilinx Zynq: FPGA based PWM generator with scroll wheel control
Learning Xilinx Zynq: use RAM design for Altera Cyclone on Vivado and PYNQ
Learning Xilinx Zynq: a Quadrature Oscillator - 2 implementations
Learning Xilinx Zynq: a Quadrature Oscillator - variable frequency
Learning Xilinx Zynq: Hardware Accelerated Software
Automate Repeatable Steps in Vivado
Learning Xilinx Zynq: Try to make my own Accelerated OpenCV Function - 1: Vitis HLS
Learning Xilinx Zynq: Try to make my own Accelerated OpenCV Function - 2: Vivado Block Design
Learning Xilinx Zynq: Logic Gates in Vivado
Learning Xilinx Zynq: Interrupt ARM from FPGA fabric
Learning Xilinx Zynq: reuse and combine components to build a multiplexer
PYNQ version 2.7 (Austin) is released
PYNQ and Zynq: the Vitis HLS Accelerator with DMA training - Part 1: Turn C++ code into an FPGA IP
PYNQ and Zynq: the Vitis HLS Accelerator with DMA training - Part 2: Add the Accelerated IP to a Vivado design
PYNQ and Zynq: the Vitis HLS Accelerator with DMA training - Part 3: Use the Hardware Accelerated Code in Software
PYNQ and Zynq: the Vitis HLS Accelerator with DMA training - Deep Dive: the data streams between Accelerator IP and ARM processors
Use the ZYNQ XADC with DMA part 1: bare metal
Use the ZYNQ XADC with DMA part 2: get and show samples in PYNQ
VHDL: Convert a Fixed Module into a Generic Module for Reuse
Attachments:
johnson_counter.zip
johnson_counter_jupyter_notebook.zip
Anonymous

Top Comments

  • Jan Cumps
    Jan Cumps 11 months ago +2

    So far so good ...

  • narrucmot
    narrucmot 11 months ago in reply to Jan Cumps +2

    Very cool!  Glad you got this working!

     

    --Tom

  • drozwood90
    drozwood90 11 months ago in reply to Jan Cumps +2

    Hi Jan,

     

    Can I offer a suggestion?  Please bold "set_param board.repoPaths [list "D:/Xilinx/pynq-z2/A.0"]"

    That is something that so many people miss.  That is really the proper way that Xilinx suggests…

Parents
  • Jan Cumps
    Jan Cumps 11 months ago

    So far so good ...

    • Cancel
    • Up +2 Down
    • Reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps 11 months ago in reply to Jan Cumps

    It works. Custom bitstream running on the board, created in Vivado, named johnson_counter.bit.

     

     

    Result:

     

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
  • narrucmot
    narrucmot 11 months ago in reply to Jan Cumps

    Very cool!  Glad you got this working!

     

    --Tom

    • Cancel
    • Up +2 Down
    • Reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps 11 months ago in reply to narrucmot

    Thank you. My first baby steps with the Zynq family and Vivado.

    I used ISE and Spartan 6 before. That helps to understand the FPGA part (or at least recognise some concepts ).

    First impressions are good.

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
Comment
  • Jan Cumps
    Jan Cumps 11 months ago in reply to narrucmot

    Thank you. My first baby steps with the Zynq family and Vivado.

    I used ISE and Spartan 6 before. That helps to understand the FPGA part (or at least recognise some concepts ).

    First impressions are good.

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
Children
  • drozwood90
    drozwood90 11 months ago in reply to Jan Cumps

    Hi Jan,

     

    Can I offer a suggestion?  Please bold "set_param board.repoPaths [list "D:/Xilinx/pynq-z2/A.0"]"

    That is something that so many people miss.  That is really the proper way that Xilinx suggests as they are moving away from the "drop files into the boards folder"

     

    I'm happy you were able to get this to work!

     

    --Dan

    • Cancel
    • Up +2 Down
    • Reply
    • More
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube