Sorry, you need to enable JavaScript to visit this website.

How to re-route PS-GPIO/MIO to EMIO pin in XPS

Unsolved
4 posts / 0 new
ashish_k29's picture
ashish_k29
Junior(0)
How to re-route PS-GPIO/MIO to EMIO pin in XPS

I need to allocate an EMIO pin to be used for the PS GPIO/MIO. What is the process to make this allocation ? where all do the changes need to be made ? It is similar to what has been done in the ZedBoard, just with a different LOC and GPIO pin number. In the ZedBoard, LOC G17 EMIO pin is allocated to PS GPIO 0 and used as a USB PHY reset signal. We need to do something similar, just with a different LOC and GPIO. Please advise.

TroutChaser's picture
TroutChaser
Moderator(18)
Take a look at the Zynq CTT for ZedBoard

Chapter 3 of the Zynq Concepts, Tools and Techniques tutorial for the ZedBoard details how to do exactly that. It connects the external BTNR pushbutton input, connected to the PL logic, to the PS GPIO via the EMIO.
 
http://www.zedboard.org/design/1521/11
 
-Gary

ashish_k29's picture
ashish_k29
Junior(0)
Thanks for the link, I have

Thanks for the link, I have just one query, is it necessary to add the AXI GPIO core to the design ? Can't the GPIO be directly mapped ?

TroutChaser's picture
TroutChaser
Moderator(18)
GPIO can be directly mapped

You can directly map GPIO from the PS or add an AXI GPIO core. The example in chapter 3 of the CTT demonstrates both options. The GPIO connection to the BTNR pushbutton is mapped directly (via EMIO) to the PS GPIO as you would like to do. The BTNU pushbutton is connected to an AXI GPIO core. You don't need to add the AXI GPIO core to use the PS GPIO via the EMIO.
 
-Gary