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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Path to Programmable
  • Challenges & Projects
  • Design Challenges
  • Path to Programmable
  • More
  • Cancel
Path to Programmable
Blog Lab 8 - Hardware Debugging Zynq Designs
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mconners
  • Date Created: 27 Nov 2018 1:35 AM Date Created
  • Views 1897 views
  • Likes 5 likes
  • Comments 8 comments
Related
Recommended

Lab 8 - Hardware Debugging Zynq Designs

mconners
mconners
27 Nov 2018

We left off last time after creating new IP and adding some debug ports. We added a PWM module, a logic analyzer, and a JTAG port.

 

image

 

This week we got to exercise those pieces.

 

First thing we did was export the hardware to the SDK workspace and created an empty application.

 

image

 

So we created the LED_Dimmer_Int program. We just added existing source from the provided source files directory. You might be able to make out the PWMIsr method there. This is a console application that we ran through miniterm, any number input between 0-9 would change the brightness of a built in LED. Any non numeric character would call the PWMIsr method. We could interact with the board through a console.

 

 

image

 

So that was really the first test.

 

Secondly, we were able to monitor the signals on the board using a built in logic analyzer:

 

image

 

image

 

We were also able to set a trigger that would detect the interrupt:

 

image

 

That was pretty interesting and I can see where there would be a great deal of usage for this during development.

 

One of the things that was emphasized in this module was the iterative nature of the development. I appreciated this, because as a software developer, I develop my code in much the same manner.

 

image

 

This reminds me of the RED-GREEN-REFACTOR methodology of TDD (Test Driven Development) that I employ. Where you

1) Write a failing test - RED

2) Write just enough code to make it pass - GREEN

3) Refactor the code to clean it up and ensure all the test still pass

 

 

After playing around with the logic analyzer for a while they showed how to use TCL (remember that) to exercise the board through the JTAG port.

 

So in this module, we found 3 different ways to interact with the IP

1) Programmatically, through the SDK and PS (Processing System), which we had been doing all along

2) Through the logic analyzer

3) Through the JTAG interface.

 

At the end of the module they had us remove the JTAG interface through the GUI.

 

This was a very informative module, the final installment of the first set of will be more TCL, I'm assuming we will probably remove the Logic Analyzer using TCL.

 

Randall sent an email today saying he'd be sending the next batch of training materials soon, so I'm glad I paced myself and will be ready for the next batch.

 

Until then ...

  • Sign in to reply

Top Comments

  • Fred27
    Fred27 over 7 years ago +3
    A nice blog post. I've put the Zynq stuff to one side for a bit to concentrate on other stuff like work going crazy (part of the reason I didn't apply for this), but look forward to playing with the inbuilt…
  • DAB
    DAB over 7 years ago +2
    Nice update. DAB
  • shabaz
    shabaz over 7 years ago +2
    Hi Michael, Excellent blog report : ) it looks fantastic that we can enable an integrated logic analyzer! That waveform viewer reminds me of ModelSim (I've not used it much, but did do some simulation…
Parents
  • genebren
    genebren over 7 years ago

    Nice blog.  Keep up the good work as you continue on your path!

     

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mconners
    mconners over 7 years ago in reply to genebren

    Thanks.

     

    Mike

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • mconners
    mconners over 7 years ago in reply to genebren

    Thanks.

     

    Mike

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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