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
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Blog PYNQ-Z2 Dev Kit - Logictools
  • Blog
  • RoadTest Forum
  • Documents
  • Events
  • RoadTests
  • Reviews
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • RoadTest
  • pynqworkshpch
  • pynq-z2
  • Share
  • Subscribe by email
  • More
  • Cancel
Related
Recommended

PYNQ-Z2 Dev Kit - Logictools

ralphjy
ralphjy
19 Jul 2019

I thought that I'd try out another of the basic overlays before moving on to a neural network application.

 

The PYNQ development software provides a set of logic tools using the logictools overlay.  You can create a digital circuit by specifying its function and IOs with a simple, declarative API in Python.

 

The logictools overlay has 3 function generators plus a trace analyzer to capture generated patterns.

  • Boolean Generator - up to 26 independent Boolean functions of up to 5 inputs each can be specified simultaneously
  • Pattern Generator - uses Wavedrom description language to specify arbitrary digital signals
  • FSM Generator - specify a finite state machine with up to 8 inputs, 19 outputs (not simultaneously).  e.g. FSM with up to 127 states, up to 6 inputs, and up to 14 outputs
  • Trace Analyzer - captures signals and displays waveforms using the Wavedrom application

 

 

I'll go through an example of creating a waveform with Wavedrom and generating the pattern on a set of pins on the Arduino Uno compatible IO connectors.

 

The Wavedrom application uses a straightforward JSON format to specify a waveform.  Syntax is explained here: https://wavedrom.com/tutorial.html

 

For pattern generation the 3 primary keys are 'name' (signal name), 'pin' (hardware pin designator), and 'wave' (pin state at each clock).

 

Here is the 3 bit counter pattern that I'll be demonstrating:

 

And the resulting pattern (the loopback waveform is not captured until the pattern and trace analyzer execute):

 

Short video showing the loopback operation and capture of the output waveform in the analyzer and an external scope:

 

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

 

A picture of the physical setup:

 

 

 

Next for my roadtest I'm going to try some image processing  with neural networks.

Anonymous

Top Comments

  • DAB
    DAB over 2 years ago +1

    Nice post, I had not considered using the FPGA as a signal generator.

     

    DAB

  • genebren
    genebren over 2 years ago

    Nice post and demonstration of the tool set.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • DAB
    DAB over 2 years ago

    Nice post, I had not considered using the FPGA as a signal generator.

     

    DAB

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