Jump to content
  • 0

Zybo example with...


engrpetero

Question

So I've made a pretty simple IP block in a Zybo design that also contains a Zynq processing system IP.  I'm interested in the button presses and slide switches to serve as inputs to both the PL and PS and to control the LEDS - 2 each - from the PL and PS. 

Struggling to figure out how to get the connections for this.  Can anyone point me to a tutorial (or sample project) for the Zybo that does something similar, please?

(I should have mentioned I'm using Vivado 2019.2 and whatever the current Vitis is).

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Hello @engrpetero,

We currently don't have a tutorial in Vivado 2019.2.

Here is a tutorial for controlling the GPIO from the PL with AXI GPIO IP: https://reference.digilentinc.com/learn/programmable-logic/tutorials/zedboard-getting-started-with-zynq/start

If you want to use the GPIO directly from PS (Zynq)  here is a good tutorial: https://www.youtube.com/watch?v=CHsidFIXUEE

I say this for other users who find this thread and if they have other boards with different Zynq part: We must be careful which is the PIN_OFFSET in our case, depending of the Zynq part and at which pin the EMIO bank start.

In our case, if you look into the TRM for Zynq 7000: https://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf at page 385, you can see that Bank 0 has 32 bits and bank 1 has 22 bits => 32 + 22= 54 => Bank 2 starts at 54 => PIN_OFFSET= 54

 

You could have both in your design, GPIO from PS by enabling the GPIO through EMIO from Zynq and from PL by adding the AXI GPIO IP to design.

I haven't worked with Vitis yet, but I assume that the instructions are the same. Please tell me where you find discrepancies.

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...